function FormValidator(theForm) {
  if (theForm.name.value == "") {
    alert("Please enter your name.");
    theForm.name.focus();
    return (false);
  }
  if (theForm.email.value == "") {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }
  if (!isEmailAddr(theForm.email.value)) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
    return (false);
  }   
  if (theForm.email.value.length < 3) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.subject.value == "0") {
    alert("Please select a Subject for your message.");
    theForm.subject.focus();
    return (false);
  }
  if (theForm.supportmessage.value == "") {
    alert("Please enter your Support Message Details.");
    theForm.supportmessage.focus();
    return (false);
  }	
  if (theForm.code.value == "") {
    alert("Please enter the form validation code from the displayed image.");
    theForm.code.focus();
    return (false);
  }    
  return (true);
}
