<!--
function validate(frm) {
    //
    // Creating variables for FIELD NAMES
    //
      var email = document.getElementById('email');
    //
    // Check Email Validation
    //
 
    {
    var check = email.value.indexOf("@");
    var check2 = email.value.lastIndexOf(".");
    var check3 = (check2 - check);
    var check4 = email.value.length -check2;
    
    if (check < 2) { 
      alert("Please fill in the field EMAIL before submitting this form. A valid email address is required. Thank you.")
      email.focus()
      return false; }
    if (check3 < 3) { 
      alert("Please fill in the field EMAIL before submitting this form. A valid email address is required. Thank you.")
      email.focus()
      return false; }
    if (check4 < 3) { 
      alert("Please fill in the field EMAIL before submitting this form. A valid email address is required. Thank you.")
      email.focus()
      return false; }
  }
}