// JavaScript Document AE


<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for 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.StreetAddress.value == "")
  {
    alert("Please enter a value for the \"Street Address\" field.");
    theForm.StreetAddress.focus();
    return (false);
  }

  if (theForm.Suburb.value == "")
  {
    alert("Please enter a value for the \"Suburb\" field.");
    theForm.Suburb.focus();
    return (false);
  }

  if (theForm.State.value == "")
  {
    alert("Please enter a value for the \"Postcode\" field.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.Postcode.value == "")
  {
    alert("Please enter a value for the \"Postcode\" field.");
    theForm.Postcode.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.EventType.selectedIndex < 0)
  {
    alert("Please select one of the \"EventType\" options.");
    theForm.EventType.focus();
    return (false);
  }

  if (theForm.Dates.value == "")
  {
    alert("Please enter a value for the \"Date\" field.");
    theForm.Dates.focus();
    return (false);
  }

  if (theForm.HearAboutUs.selectedIndex < 0)
  {
    alert("Please select one of the \"Hear About Us\" options.");
    theForm.HearAboutUs.focus();
    return (false);
  }
  return (true);
}
