// This is the validation subroutine for the EHS "Contact Us" form. 12Aug04

function f_focus() {
  document.form1.realname.focus();
}

function VerifyData() {
  if (document.form1.realname.value.length == 0) {
    alert("Please enter your Name so we can contact you.");
    document.form1.realname.focus();
    return false;
  }
  if ((document.form1.email.value.length == 0)
      && (document.form1.usertel.value.length == 0)) {
    alert("Please enter your E-mail address and/or your Telephone number so we can contact you.");
    document.form1.email.focus();
    return false;
  }
  if (document.form1.comment_type.value == "Unknown") {
    alert("Please select the Type of Feedback.");
    document.form1.comment_type.focus();
    return false;
  }
  if (document.form1.comment_on.value == "Unknown") {
    alert("Please select a Category.");
    document.form1.comment_on.focus();
    return false;
  }
  if (document.form1.comments.value.length == 0) {
    alert("Please enter your Feedback.");
    document.form1.comments.focus();
    return false;
  }

  return true;
}
