Here's an odd one. I'm trying to use:
document.write ("<input type=\"button\" value=\"Submit JS\" onClick=\"validateFields(this.form.name);\">");
<input type="submit" value="Submit noJS">
It's part of a layer (<div>), has a little VBScript in the page for ASP, and quite a few includes in the page which have other layers and more VBScript in them.
So given all that, any ideas? I've tried writing it out with VBScript with the same result so I'm kinda stuck now.