function Validator(theForm)
{
  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Your name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Telephone.value == "")
  {
    alert("Please enter a value for the \"Your telephone number\" field.");
    theForm.Telephone.focus();
    return (false);
  }

  if (theForm.PostalAddress.value == "")
  {
    alert("Please enter a value for the \"Your postal address\" field.");
    theForm.PostalAddress.focus();
    return (false);
  }

  if (theForm.EventDate.value == "")
  {
    alert("Please enter a value for the \"Date of event\" field.");
    theForm.EventDate.focus();
    return (false);
  }

  if (theForm.GuestCount.value == "")
  {
    alert("Please enter a value for the \"How many in your party\" field.");
    theForm.GuestCount.focus();
    return (false);
  }
  return (true);
}
