the script looks like this
<div class="DisplayInput"><input type="radio" name="displaytype"
value="decimal" onclick="setdisplayType('decimal');" checked="checked"><a
Without knowing what's happening with your application's error and also not knowing what
setdisplayType looks like, I'm guessing that maybe you're trying to invoke the function
setdisplayType before it's been loaded. Per the MSDN documentation...
InvokeScript(String, Object()) should not be called before the document that implements it has finished loading. You can detect when a document has finished loading by handling the LoadCompleted event.
Maybe you can implement the
LoadCompleted event handler and then invoke your script.
Hope this helps!