Validate EMail JS
Make sure Email Addresses entered into form fields are valid.
function CheckEmail(EMAIL) { //Copyright © 2002 Booshway Enterprises, Inc. all rights reserved v1.0 if (EMAIL.value == "") { alert ("Please enter Your Email Address"); EMAIL.focus(); return(false); } EM = ""; EM = EMAIL.value; if (EM.indexOf('@') == -1) { alert("The Email Address you entered is not valid please try again"); EMAIL.focus(); return(false); } if (EM.indexOf('.') == -1) { alert("The Email Address you entered is not valid please try again"); EMAIL.focus(); return(false); } if (EM.indexOf('@') != EM.lastIndexOf('@')) { alert("The Email Address you entered is not valid please try again"); EMAIL.focus(); return(false); } return(true); }