function FrontPage_Form1_Validator(theForm)
{

 if (theForm.FullName.value == "")
  {
    alert("Please enter your name.");
    theForm.FullName.focus();
    return (false);
  }


  if (theForm.Email.value == "")
  {
    alert("Please enter your Email address");
    theForm.Email.focus();
    return (false);
  }

if (theForm.Email.value.length < 6)
  {
    alert("The Email address you entered is invalid");
    theForm.Email.focus();
    return (false);
  }

if (theForm.ConfirmEmail.value == "")
  {
    alert("Please confirm your Email address");
    theForm.ConfirmEmail.focus();
    return (false);
  }

if (theForm.ConfirmEmail.value.length < 6)
  {
    alert("The Email address you entered is invalid");
    theForm.ConfirmEmail.focus();
    return (false);
  }

if (theForm.ConfirmEmail.value != theForm.Email.value)
  {
    alert("Your Email addresses do not match");
    theForm.ConfirmEmail.focus();
    return (false);
  }

if (theForm.DateFrom.value == "dd/mm/yy")
  {
    alert("Please enter your Arrival Date.");
    theForm.DateFrom.focus();
    return (false);
  }

if (theForm.ToDate.value == "dd/mm/yy")
  {
    alert("Please enter your Departure Date.");
    theForm.ToDate.focus();
    return (false);
  }
  

if (theForm.SpamCheck.value == "")
{
 alert("Please enter the red number");
  theForm.SpamCheck.focus();
	return (false);
}
  return (true);
}
