function FormValidator(theForm) {
  if (theForm.name.value == "") {
    alert("Please enter your name.");
    theForm.name.focus();
    return (false);
  }
  if (theForm.address.value == "") {
    alert("Please enter your address.");
    theForm.address.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.phone.value == "") {
    alert("Please enter contact phone number.");
    theForm.phone.focus();
    return (false);
  }
  if (theForm.membership[0].checked == false 
     && theForm.membership[1].checked == false
     && theForm.membership[2].checked == false) {
    alert("Please select membership type.");
    theForm.membership[0].focus();
    return (false);
  }
  if (theForm.agree.checked == false) {
      alert("Please acknowledge agreement to be bound by the club constitution and code of ethics.");
    theForm.agree.focus();
    return (false);
  }  
  return (true);
}