function  validarTransfer(theForm)
{
 	if (theForm.typeOfTransfer.value == "-1")
      {
        alert("Por favor elija el Tipo de Traslado");
        theForm.typeOfTransfer.focus();
        return (false);
      }
	   	if (theForm.from.value == "")
      {
        alert("Por favor ingrese De");
        theForm.from.focus();
        return (false);
      }
	  	  if (theForm.to.value == "")
      {
        alert("Por favor ingrese Para");
        theForm.to.focus();
        return (false);
      }
	  if (theForm.departureDate.value == "-1")
      {
        alert("Por favor elija el Mes en Fecha de Llegada");
        theForm.departureDate.focus();
        return (false);
      }
	  if (theForm.departureDay.value == "-1")
      {
        alert("Por favor elija el Dia en Fecha de Llegada");
        theForm.departureDate.focus();
        return (false);
      }
	  if (theForm.departureYear.value == "-1")
      {
        alert("Por favor elija el Anio en Fecha de Llegada");
        theForm.departureYear.focus();
        return (false);
      }
     if (theForm.realname.value == "")
      {
        alert("Por favor escriba su Nombre");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Porfavor escriba su correo electronico");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Porfavor revise su correo electronico"
     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("Porfavor confirme su Correo Electronico");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Verifique Su confirmacion de Correo Electronico."
     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("Los Correos Electronicos no Coinciden");
	theForm.confemail.focus();
	return(false);
 }		
 if (theForm.yourTelephone.value == "")
      {
        alert("Por favor ingrese su numero telefonico");
        theForm.yourTelephone.focus();
        return (false);
      }
	if (theForm.yourTelephone.value.length < 6) {
alert('Su telefono debe tener al menos  ' + 6 + ' digitos. pruebe nuevamente.');
theForm.yourTelephone.focus();
return false;
}  
 }
function  validarCar(theForm)
{
	  if (theForm.pickUpDate.value == "-1")
      {
        alert("Por favor elija el Mes de Recoger En");
        theForm.pickUpDate.focus();
        return (false);
      }
	  if (theForm.pickUpDay.value == "-1")
      {
        alert("Por favor elija el Dia de Recoger En");
        theForm.pickUpDay.focus();
        return (false);
      }
	  if (theForm.pickUpYear.value == "-1")
      {
        alert("Por favor elija el Anio de Recoger En");
        theForm.pickUpYear.focus();
        return (false);
      }
 	if (theForm.pickUpTime.value == "")
      {
        alert("Por favor ingrese la hora de Recoger En");
        theForm.pickUpTime.focus();
        return (false);
      }
	   	if (theForm.pickUpLocation.value == "")
      {
        alert("Por favor ingrese el Lugar de Recoger En");
        theForm.pickUpLocation.focus();
        return (false);
      }
	  	  if (theForm.dropOffDate.value == "-1")
      {
        alert("Por favor elija el Mes de Dejar En");
        theForm.dropOffDate.focus();
        return (false);
      }
	  if (theForm.dropOffDay.value == "-1")
      {
        alert("Por favor elija el Dia de Dejar En");
        theForm.dropOffDay.focus();
        return (false);
      }
	  if (theForm.dropOffYear.value == "-1")
      {
        alert("Por favor elija el Anio de Dejar En");
        theForm.dropOffYear.focus();
        return (false);
      }
 	if (theForm.dropOffTime.value == "")
      {
        alert("Por favor indicar la hora  de Dejar En");
        theForm.dropOffTime.focus();
        return (false);
      }
	   	if (theForm.dropOffLocation.value == "")
      {
        alert("Por favor indicar la hora de Dejar En");
        theForm.dropOffLocation.focus();
        return (false);
      }
	if (theForm.realname.value == "")
      {
        alert("Por favor escriba su Nombre");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Porfavor escriba su correo electronico");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Porfavor revise su correo electronico"
     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("Porfavor confirme su Correo Electronico");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Verifique Su confirmacion de Correo Electronico."
     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("Los Correos Electronicos no Coinciden");
	theForm.confemail.focus();
	return(false);
 }			
 if (theForm.yourTelephone.value == "")
      {
        alert("Por favor ingrese su numero telefonico");
        theForm.yourTelephone.focus();
        return (false);
      }
	  if (theForm.yourTelephone.value.length < 6) {
alert('Su telefono debe tener al menos  ' + 6 + ' digitos. pruebe nuevamente.');
theForm.yourTelephone.focus();
return false;
}
 }
function  validarTour(theForm)
{
    if (theForm.tourType.value == "-1")
      {
        alert("Por favor elija Nombre del Tour");
        theForm.tourType.focus();
        return (false);
      }
	  if (theForm.dayDate.value == "-1")
      {
        alert("Por favor elija el Mes ");
        theForm.dayDate.focus();
        return (false);
      }
	  if (theForm.dayDay.value == "-1")
      {
        alert("Por favor elija el Dia ");
        theForm.dayDay.focus();
        return (false);
      }
	  if (theForm.dayYear.value == "-1")
      {
        alert("Por favor elija el Anio ");
        theForm.dayYear.focus();
        return (false);
      }
	if (theForm.realname.value == "")
      {
        alert("Por favor escriba su Nombre");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Porfavor escriba su correo electronico");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Porfavor revise su correo electronico"
     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("Porfavor confirme su Correo Electronico");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Verifique Su confirmacion de Correo Electronico."
     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("Los Correos Electronicos no Coinciden");
	theForm.confemail.focus();
	return(false);
 }			
 if (theForm.yourTelephone.value == "")
      {
        alert("Por favor ingrese su numero telefonico");
        theForm.yourTelephone.focus();
        return (false);
      }
	  if (theForm.yourTelephone.value.length < 6) {
alert('Su telefono debe tener al menos  ' + 6 + ' digitos. pruebe nuevamente.');
theForm.yourTelephone.focus();
return false;
}
 }

function  validarHotel(theForm)
{
    if (theForm.hotel.value == "Nombre del Hotel" || theForm.hotel.value == "")
      {
        alert("Escriba el nombre del Hotel");
        theForm.hotel.focus();
        return (false);
      }
	if (theForm.noOfRooms.value == "-1")
      {
        alert("Elija el numero de habitaciones");
        theForm.noOfRooms.focus();
        return (false);
      }
	  if (theForm.checkInDate.value == "-1")
      {
        alert("Por favor elija el mes en la fecha de entrada");
        theForm.checkInDate.focus();
        return (false);
      }
	  if (theForm.checkInDay.value == "-1")
      {
        alert("Por favor elija el dia en la fecha de entrada");
        theForm.checkInDay.focus();
        return (false);
      }
	  if (theForm.checkInYear.value == "-1")
      {
        alert("Por favor elija el anio en la fecha de entrada");
        theForm.checkInYear.focus();
        return (false);
      }
      if (theForm.checkOutDate.value == "-1")
      {
        alert("Por favor elija el mes en la fecha de salida");
        theForm.checkOutDate.focus();
        return (false);
      }
	 if (theForm.checkOutDay.value == "-1")
      {
        alert("Por favor elija el dia en la fecha de salida");
        theForm.checkOutDay.focus();
        return (false);
      }
	  if (theForm.checkOutYear.value == "-1")
      {
        alert("Por favor elija el anio en la fecha de salida");
        theForm.checkOutYear.focus();
        return (false);
      }
	if (theForm.realname.value == "")
      {
        alert("Por favor escriba su Nombre");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Porfavor escriba su correo electronico");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Porfavor revise su correo electronico"
     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("Porfavor confirme su Correo Electronico");
     theForm.confemail.focus();
     return (false);
    }
    else
    {
     var Reason  = "Verifique Su confirmacion de Correo Electronico."
     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("Los Correos Electronicos no Coinciden");
	theForm.confemail.focus();
	return(false);
 }			
 if (theForm.yourTelephone.value == "")
      {
        alert("Por favor ingrese su numero telefonico");
        theForm.yourTelephone.focus();
        return (false);
      }
	  if (theForm.yourTelephone.value.length < 6) {
alert('Su telefono debe tener al menos  ' + 6 + ' digitos. pruebe nuevamente.');
theForm.yourTelephone.focus();
return false;
}
 }
function  Validar(theForm)
{
    if (theForm.realname.value == "")
      {
        alert("Por favor escriba su Nombre");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Porfavor escriba su correo electronico");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Porfavor revise su correo electronico"
     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("Por favor ingrese su numero telefonico");
        theForm.YourTelephone.focus();
        return (false);
      }
 }
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);
}
