<!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

 



if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.indexOf ('@',0) == -1)
  {
    alert("Please verify that your \"Email\"  address is valid.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.indexOf ('.',0) == -1)
  {
    alert("Please verify that your \"Email\"  address is valid.");
    theForm.Email.focus();
    return (false);
  }
  
  if (theForm.Email.value.length < 6)
  {
    alert("Please enter a valid \"Email\" address.");
    theForm.Email.focus();
    return (false);
  }
  
  
  
   {
   var Today = new Date();
   if (Travel_Date_From_Object.picked.date < Today) 
  
  { alert('Cannot select a date in the past.');   
  return (false);}
 
    if (Travel_Date_To_Object.picked.date < Travel_Date_From_Object.picked.date) 
{	alert('Cannot select a date before travel from.');   
     return (false);}
  
   else if (Travel_Date_From_Object.picked.yearValue > 2020) 
    { alert('Cannot select dates beyond 2020.');
	 return (false);}
     
  
}

  
  
  
  {
		var xmlhttp;
		var sReply;
		DataToSend = "action=process&captext=" + escape(theForm.captext.value);
		if (window.XMLHttpRequest) {
			xmlhttp=new XMLHttpRequest();
			xmlhttp.open("POST",'TeassoCaptcha2.0/process.php',false);
			xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlhttp.send(DataToSend);
			sReply = xmlhttp.responseText;
		} else if (window.ActiveXObject) {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			xmlhttp.open("POST",'TeassoCaptcha2.0/process.php',false);
			xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlhttp.send(DataToSend);
			sReply = xmlhttp.responseText;
		}
		if (sReply == "good") {
			alert("Thank you for your reservation request, Please click OK to continue"); return true;
		} else if (sReply == "bad") {
			alert("Captcha Text Not Valid"); return false;
		} else if (sReply == "") {
			alert("You must enter the captcha text"); return false;
		} else {
			alert("Error"); return false;
		}
	}
  
  return (true);
}
//-->