function Validator(theForm) {
  if (theForm.firstname.value == "") {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.firstname.focus();
    return (false);
  }
  if (theForm.firstname.value.length < 1) {
    alert("Please enter at least 1 characters in the \"First Name\" field.");
    theForm.firstname.focus();
    return (false);
  }
  if (theForm.firstname.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"First Name\" field.");
    theForm.firstname.focus();
    return (false);
  }
  if (theForm.lastname.value == "") {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lastname.focus();
    return (false);
  }
  if (theForm.lastname.value.length < 1) {
    alert("Please enter at least 1 characters in the \"Last Name\" field.");
    theForm.lastname.focus();
    return (false);
  }
  if (theForm.lastname.value.length > 255) {
    alert("Please enter at most 255 characters in the \"Last Name\" field.");
    theForm.lastname.focus();
    return (false);
  }
  if (theForm.email.value == "") {
    alert("Please enter a value for the \"Email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length < 1) {
    alert("Please enter at least 1 characters in the \"Email Address\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.email.value.length > 255) {
    alert("Please enter at most 50 characters in the \"Email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.product.selectedIndex == 0) {
    alert("Please select a \"Product\" from the drop down box.");
    theForm.product.focus();
    return (false);
  }
  if (theForm.question.value == "") {
    alert("Please enter your question into the \"Question\" field.");
    theForm.question.focus();
    return (false);
  }
  return (true);
}

