function submitForm(){ var emailID=document.frmSubscribe.email; if ((emailID.value==null)||(emailID.value=="")){ alert("Please enter email adddress."); emailID.focus(); return false; } if (echeck(emailID.value)==false){ // emailID.value=""; // emailID.focus(); // return false; } if (document.frmSubscribe.zipcode.value==""){ document.frmSubscribe.zipcode.focus(); alert("Enter zip code."); return false; } document.frmSubscribe.submit(); }