// Executive Systems Application Form Validation (updated 5/3/00)
<!--
function validate() {

// Name Field
  document.application.elements[2].focus();
  var name = document.application.elements[2].value;
  if (name == "" || name == " ") {
    alert("\nName field is blank.\n\nPlease enter your name.");
    return false;
  }
  for (var i = 0; i < name.length; i++) {
    var ch = name.substring(i, i + 1);
    if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ') {
      alert("\nName field accepts only letters and spaces.\n\nPlease re-enter your name.");
      return false;
    }
  }

// Home Phone Field
  document.application.elements[9].focus();
  var phone = document.application.elements[9].value;
  if (phone == "" || phone == " ") {
    alert("\nHome Phone field is blank.\n\nPlease enter your home phone number.");
    return false;
  }

// Email Address Field
  document.application.elements[10].focus();
  var email = document.application.elements[10].value;
  if (email == "" || email == " ") {
    alert("\nEmail Address is blank.\n\nPlease enter your email.");
    return false;
  }
  if (document.application.elements[10].value.indexOf ('@',0) == -1 || document.application.elements[10].value.indexOf ('.',0) == -1) {
    alert("\nEmail Address requires a \"@\" and \".\"\n\nPlease re-enter a valid email address.");
    return false;
  }

  document.application.elements[26].focus();

}
//-->