function FormValidator(theForm)
{

  if (theForm.yourname.value == "")
  {
    alert("Please give us your name.");
    theForm.yourname.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("We need your phone number to contact you.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("We need your e-mail address to contact you.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 100)
  {
    alert("Please enter at most 100 characters in the E-mail field.");
    theForm.email.focus();
    return (false);
  }
  return (true);
}

