I'm building a web page that has a form. The values of the Form Fields are populated by some ASP statements on page load.

I have an onclick event that grabs the values out of this form and populates another form with the same values.

When the javascript event handler runs, I get the following error:


Code:
document.myform1.num1 is not an object
This struck me as strange, so I investigated, and noticed that my Script Editor doesn't pick up my form objects as objects either. I figured out that the reason this is happening is because I define the value of the field with
ASP as follows:


Code:
<input type="text" name="num1" value="<%=oRS("Source")%>">
If I take out the ASP <%..%> the Script Editor WILL recognize num1 as a Form Object, but with the ASP it DOES NOT!

Has anyone encountered this sort of problem before? How can I get around it?

Thanks

dvst8