I am trying to access this text box through javascritp but unable to:

<FORM action="Page2.asp" method=post id=form1 name=form1?

<INPUT id=text1 name=text1 value="<%=Name%>">

</form>

In my javascript I have:

as soon as type form1 and then hit the . key the text1 should appear in the list that appears..


How come it is not?