
function Form_Validator(theForm)
{

  if (!validPersonsName(theForm.name, 5, 60, false)) {
  	return (false);
  }

  if (!validEmailAddress(theForm.email)) {
  	return (false);
  }  
  
  if (theForm.number.value != "") {
    if (!validMemberNumber(theForm)) {
      return (false);
    }
  }
  
  if (theForm.category.selectedIndex < 0)
  {
    alert("Please select one of the question categories.");
    theForm.category.focus();
    return (false);
  }
  if (theForm.category.selectedIndex == 0)
  {
    alert("The first \"(select one)\" option is not a valid Category selection.  Please choose one of the other question categories.");
    theForm.category.focus();
    return (false);
  }

  if (theForm.question.value == "")
  {
    alert("Please enter text into the \"question\" area.");
    theForm.question.focus();
    return (false);
  }
  if (theForm.question.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"question\" area.");
    theForm.question.focus();
    return (false);
  }
  if (theForm.question.value.length > 2000)
  {
    alert("Please enter at most 2000 characters in the \"question\" area.");
    theForm.question.focus();
    return (false);
  }
  
  if (!validSecurityCode(theForm)) {
  	return (false);
  }  
  
  return (true);
}
