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);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@_-.";
  var checkStr = theForm.Email.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@_-.\" characters in the Email field.");
    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);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@_-.";
  var checkStr = theForm.ConfirmEmail.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@_-.\" characters in the Email field.");
    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.NumberOfPeople.value == "")
  {
    alert("Please enter number of people");
    theForm.NumberOfPeople.focus();
    return (false);
  }


  if (theForm.PhoneCode.value == "")
  {
    alert("Please enter your telephone Phone Code");
    theForm.PhoneCode.focus();
    return (false);
  }
   
  if (theForm.PhoneNumber.value == "")
  {
    alert("Please enter your telephone number");
    theForm.PhoneNumber.focus();
    return (false);
  } 
  
   if (theForm.MobileNumber.value == "")
  {
    alert("Please enter your mobile number");
    theForm.MobileNumber.focus();
    return (false);
  } 



if (theForm.triprequired1.checked == false && theForm.triprequired2.checked == false && theForm.triprequired3.checked== false)		{	

alert ("You did not choose any of the trip required Options!");	
return false;	
}	

if (theForm.TourDay.selectedIndex < 0)
  {
    alert("Please select one of the \"TourDay\" options.");
    theForm.TourDay.focus();
    return (false);
  }

  if (theForm.TourDay.selectedIndex == 0)
  {
    alert("The first \"TourDay\" option is not a valid selection.  Please choose one of the other options.");
    theForm.TourDay.focus();
    return (false);
  }


if (theForm.TourMonth.selectedIndex < 0)
  {
    alert("Please select one of the \"TourMonth\" options.");
    theForm.TourMonth.focus();
    return (false);
  }

  if (theForm.TourMonth.selectedIndex == 0)
  {
    alert("The first \"TourMonth\" option is not a valid selection.  Please choose one of the other options.");
    theForm.TourMonth.focus();
    return (false);
  }




if (theForm.TourYear.selectedIndex < 0)
  {
    alert("Please select one of the \"TourYear\" options.");
    theForm.TourYear.focus();
    return (false);
  }

  if (theForm.TourYear.selectedIndex == 0)
  {
    alert("The first \"TourYear\" option is not a valid selection.  Please choose one of the other options.");
    theForm.TourYear.focus();
    return (false);
  }
  
   if (theForm.SpamCheck.value == "")
  {
    alert("Please enter the white number displayed to the right");
    theForm.SpamCheck.focus();
    return (false);
  } 

  return (true);
 //////////////////////////////////////////////////////////////////

}
