function AntiSpam(codelist, description, atagattr) {
	var thiscode, thischar;
	var CodeString = new String(codelist);
	var CodedArray = CodeString.split('|');
	var L = CodedArray.length;
	var AddrDecoded = "";
	for (var x=0; x < L; x++) {
		thiscode = CodedArray[x];
		thischar = String.fromCharCode( thiscode - L );
		AddrDecoded += thischar;
	}
	atagattr = atagattr ? ' ' + atagattr : '';
	if (!description) description = AddrDecoded; // if no description supplied, display email address
	var strOutput = '<a href="mailto:'+AddrDecoded+'"' + atagattr+'>' + description + '</a>';
	document.write(strOutput);
}
function  validarPackage(theForm)
{
    if (theForm.packageName.value == "-1")
      {
        alert("Please Choose Name Package");
        theForm.packageName.focus();
        return (false);
      }
	      if (theForm.budget.value == "-1")
      {
        alert("Please Choose Budget");
        theForm.budget.focus();
        return (false);
      }
	  if (theForm.arriveMonth.value == "-1")
      {
        alert("Please Choose the Month on Arrive Date ");
        theForm.arriveMonth.focus();
        return (false);
      }
	  if (theForm.arriveDay.value == "-1")
      {
        alert("Please Choose the Day on Arrive Date ");
        theForm.arriveDay.focus();
        return (false);
      }
	  if (theForm.arriveYear.value == "-1")
      {
        alert("Please Choose the Year on Arrive Date ");
        theForm.arriveYear.focus();
        return (false);
      }
	  if (theForm.departureMonth.value == "-1")
      {
        alert("Please Choose the Month on Departure Date ");
        theForm.departureMonth.focus();
        return (false);
      }
	  if (theForm.departureDay.value == "-1")
      {
        alert("Please Choose the Day on Departure Date ");
        theForm.departureDay.focus();
        return (false);
      }
	  if (theForm.departureYear.value == "-1")
      {
        alert("Please Choose the Year on Departure Date ");
        theForm.departureYear.focus();
        return (false);
      }	  
	if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
	  if ( theForm.confemail.value == "" )
    {
     alert("Please Confirm Your Email Address");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Confirm Email Address."
     var checkStr = theForm.confemail.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.confemail.focus();
       return(false);
     }
    }
 if (!(theForm.email.value == theForm.confemail.value)){
 	alert("E-mails do not match");
	theForm.confemail.focus();
	return(false);
 }
 if (theForm.yourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.yourTelephone.focus();
        return (false);
      }
	   if (theForm.yourTelephone.value.length < 6) {
alert('Your Phone must be at least ' + 6 + ' characters digits. Try again.');
theForm.yourTelephone.focus();
return false;
}
 }

function  validarHotel(theForm)
{
    if (theForm.hotel.value == "Hotel Name" || theForm.hotel.value == "")
      {
        alert("Please Write Hotel Name");
        theForm.hotel.focus();
        return (false);
      }
	if (theForm.roomType.value == "-1")
      {
        alert("Please Write the Room Type");
        theForm.roomType.focus();
        return (false);
      }
	if (theForm.noOfRooms.value == "-1")
      {
        alert("Please Write the Number of Rooms");
        theForm.noOfRooms.focus();
        return (false);
      }
	  if (theForm.checkInDate.value == "-1")
      {
        alert("Please Choose the Month of Check In");
        theForm.checkInDate.focus();
        return (false);
      }
	  if (theForm.checkInDay.value == "-1")
      {
        alert("Please Choose the Day of Check In");
        theForm.checkInDay.focus();
        return (false);
      }
	  if (theForm.checkInYear.value == "-1")
      {
        alert("Please Choose the Year of Check In");
        theForm.checkInYear.focus();
        return (false);
      }
      if (theForm.checkOutDate.value == "-1")
      {
        alert("Please Choose the Month of Check Out");
        theForm.checkOutDate.focus();
        return (false);
      }
	 if (theForm.checkOutDay.value == "-1")
      {
        alert("Please Choose the Day of Check Out");
        theForm.checkOutDay.focus();
        return (false);
      }
	  if (theForm.checkOutYear.value == "-1")
      {
        alert("Please Choose the Year of Check Out");
        theForm.checkOutYear.focus();
        return (false);
      }
	if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
	  if ( theForm.confemail.value == "" )
    {
     alert("Please Confirm Your Email Address");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Confirm Email Address."
     var checkStr = theForm.confemail.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.confemail.focus();
       return(false);
     }
    }
 if (!(theForm.email.value == theForm.confemail.value)){
 	alert("E-mails do not match");
	theForm.confemail.focus();
	return(false);
 }
 if (theForm.yourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.yourTelephone.focus();
        return (false);
      }
	  if (theForm.yourTelephone.value.length < 6) {
alert('Your Phone must be at least ' + 6 + ' characters digits. Try again.');
theForm.yourTelephone.focus();
return false;
}
 }
function validarNewsletter(theForm)
{
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
}
function  validarTransfer(theForm)
{
 	if (theForm.typeOfTransfer.value == "-1")
      {
        alert("Please Choose the Type of Transfer");
        theForm.typeOfTransfer.focus();
        return (false);
      }
	   	if (theForm.from.value == "")
      {
        alert("Please Write From");
        theForm.from.focus();
        return (false);
      }
	  	  if (theForm.to.value == "")
      {
        alert("Please Write To");
        theForm.to.focus();
        return (false);
      }
	  if (theForm.departureDate.value == "-1")
      {
        alert("Please Choose the Month in Departure Date");
        theForm.departureDate.focus();
        return (false);
      }
	  if (theForm.departureDay.value == "-1")
      {
        alert("Please Choose the Day in Departure Date");
        theForm.departureDate.focus();
        return (false);
      }
	  if (theForm.departureYear.value == "-1")
      {
        alert("Please Choose the Year in Departure Date");
        theForm.departureYear.focus();
        return (false);
      }
     if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
	  if ( theForm.confemail.value == "" )
    {
     alert("Please Confirm Your Email Address");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Confirm Email Address."
     var checkStr = theForm.confemail.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.confemail.focus();
       return(false);
     }
    }
 if (!(theForm.email.value == theForm.confemail.value)){
 	alert("E-mails do not match");
	theForm.confemail.focus();
	return(false);
 }	
 if (theForm.yourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.yourTelephone.focus();
        return (false);
      }
	if (theForm.yourTelephone.value.length < 6) {
alert('Your Phone must be at least ' + 6 + ' characters digits. Try again.');
theForm.yourTelephone.focus();
return false;
}  
 }
function  validarCar(theForm)
{
	  if (theForm.pickUpDate.value == "-1")
      {
        alert("Please Choose the Month of Pick Up");
        theForm.pickUpDate.focus();
        return (false);
      }
	  if (theForm.pickUpDay.value == "-1")
      {
        alert("Please Choose the Day of Pick Up");
        theForm.pickUpDay.focus();
        return (false);
      }
	  if (theForm.pickUpYear.value == "-1")
      {
        alert("Please Choose the Year of Pick Up");
        theForm.pickUpYear.focus();
        return (false);
      }
 	if (theForm.pickUpTime.value == "")
      {
        alert("Please Write Time of Pick Up");
        theForm.pickUpTime.focus();
        return (false);
      }
	   	if (theForm.pickUpLocation.value == "")
      {
        alert("Please Write Location of Pick Up");
        theForm.pickUpLocation.focus();
        return (false);
      }
	  	  if (theForm.dropOffDate.value == "-1")
      {
        alert("Please Choose the Month of Drop Off");
        theForm.dropOffDate.focus();
        return (false);
      }
	  if (theForm.dropOffDay.value == "-1")
      {
        alert("Please Choose the Day of Drop Off");
        theForm.dropOffDay.focus();
        return (false);
      }
	  if (theForm.dropOffYear.value == "-1")
      {
        alert("Please Choose the Year of Drop Off");
        theForm.dropOffYear.focus();
        return (false);
      }
 	if (theForm.dropOffTime.value == "")
      {
        alert("Please Write Time of Drop Off");
        theForm.dropOffTime.focus();
        return (false);
      }
	   	if (theForm.dropOffLocation.value == "")
      {
        alert("Please Write Location of Drop Off");
        theForm.dropOffLocation.focus();
        return (false);
      }
	   if (theForm.typeOfCar.value == "-1")
      {
        alert("Please Choose Type Car");
        theForm.typeOfCar.focus();
        return (false);
      }
	if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
	  if ( theForm.confemail.value == "" )
    {
     alert("Please Confirm Your Email Address");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Confirm Email Address."
     var checkStr = theForm.confemail.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.confemail.focus();
       return(false);
     }
    }
 if (!(theForm.email.value == theForm.confemail.value)){
 	alert("E-mails do not match");
	theForm.confemail.focus();
	return(false);
 }	
 if (theForm.yourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.yourTelephone.focus();
        return (false);
      }
	  if (theForm.yourTelephone.value.length < 6) {
alert('Your Phone must be at least ' + 6 + ' characters digits. Try again.');
theForm.yourTelephone.focus();
return false;
}
 }
function  validarTour(theForm)
{
    if (theForm.tourType.value == "-1")
      {
        alert("Please Choose Name Tour");
        theForm.tourType.focus();
        return (false);
      }
	      if (theForm.budget.value == "-1")
      {
        alert("Please Choose Budget");
        theForm.budget.focus();
        return (false);
      }
	  if (theForm.dayDate.value == "-1")
      {
        alert("Please Choose the Month ");
        theForm.dayDate.focus();
        return (false);
      }
	  if (theForm.dayDay.value == "-1")
      {
        alert("Please Choose the Day ");
        theForm.dayDay.focus();
        return (false);
      }
	  if (theForm.dayYear.value == "-1")
      {
        alert("Please Choose the Year ");
        theForm.dayYear.focus();
        return (false);
      }
	if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
	  if ( theForm.confemail.value == "" )
    {
     alert("Please Confirm Your Email Address");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Confirm Email Address."
     var checkStr = theForm.confemail.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.confemail.focus();
       return(false);
     }
    }
 if (!(theForm.email.value == theForm.confemail.value)){
 	alert("E-mails do not match");
	theForm.confemail.focus();
	return(false);
 }		
 if (theForm.yourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.yourTelephone.focus();
        return (false);
      }
	  if (theForm.yourTelephone.value.length < 6) {
alert('Your Phone must be at least ' + 6 + ' characters digits. Try again.');
theForm.yourTelephone.focus();
return false;
}
 }
function  Validar(theForm)
{
    if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
 if (theForm.YourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.YourTelephone.focus();
        return (false);
      }
	  if (theForm.YourTelephone.value.length < 6) {
alert('Your Phone must be at least ' + 6 + ' characters digits. Try again.');
theForm.YourTelephone.focus();
return false;
}
 }