var signupForm1069 = document.getElementById('signupForm1069'); var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
function validateSignUpForm1069() { if (signupForm1069['EmailAddress'].value == '') { alert('Email Address is required.'); signupForm1069['EmailAddress'].focus(); return false; } if(reg.test(signupForm1069['EmailAddress'].value) == false) { alert('Invalid Email Address format.'); return false; }return true; }