I have a form that onsubmit calls the following function, but have a slight problem when adding further validation (as seen at the bottom of my text).<BR><BR>&#060;Script Language="JavaScript"&#062;<BR> var go;<BR><BR> function ErrorCheck()<BR> <BR> { <BR> go = true;<BR><BR> if (document.frmRegister.email1.value ==&#039;&#039; )<BR> {alert("A valid Email Address is required!");<BR> go = false;<BR> document.frmRegister.email1.focus();}<BR> <BR> <BR> else {<BR> if (document.frmRegister.email1.value != document.frmRegister.email2.value )<BR> {alert("Please confirm your Email Address entries!");<BR> go = false;<BR> document.frmRegister.email2.focus();}<BR> <BR> <BR> else {<BR> if (document.frmRegister.firstname.value ==&#039;&#039; )<BR> {alert("A valid First Name is required!");<BR> go = false;<BR> document.frmRegister.firstname.focus();}<BR><BR> <BR><BR> else {<BR> if (document.frmRegister.lastname.value ==&#039;&#039; )<BR> {alert("A valid Last Name is required!");<BR> go = false;<BR> document.frmRegister.lastname.focus();}<BR> <BR> <BR><BR> else {<BR> if (document.frmRegister.phone.value ==&#039;&#039; )<BR> {alert("A valid Phone Number is required!");<BR> go = false;<BR> document.frmRegister.phone.focus();} <BR> <BR> }}}}<BR><BR> if (go == true) <BR> {document.frmRegister.submit();} <BR> }<BR> &#060;/script&#062; <BR><BR><BR>I need to further validate the email address for correctness. How can I implement the code found at http://www.4guysfromrolla.com/webtech/052899-1.shtml<BR><BR>I really like the functionality of what he&#039;s done w/ this.<BR>