Hi,<BR><BR>My HTML page has 3 forms and the fields are linked to a common javascript functions. Though I activate the javascript function using fields from form2 and form3, the script treats it as form1.<BR>Basically this code does&#039;nt seem to be working:<BR>if (document.form1){<BR> alert("this is form1")<BR>}<BR>if (document.form2){<BR> alert("this is form2")<BR>}<BR>if (document.form3){<BR> alert("this is form3")<BR>}<BR>Everytime, I get a "this is form1" message, even though I activate the script using form2 or form3 fields.<BR>How can I access form2 and form3 fields?<BR>Please help. Thanks.