<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set(){

if (document.dataform.Fecha_de_llegada.value == "")
{
    alert ("Por favor, escribe la fecha de llegada");
	document.dataform.Fecha_de_llegada.focus();
	return (false);
}

if (document.dataform.Fecha_de_salida.value == "")
{
    alert ("Por favor, introduzca su fecha de salida");
	document.dataform.Fecha_de_salida.focus();
	return (false);
}

if (document.dataform.Adultos.selectedIndex == 0)
{
    alert ("Entre el número de adultos");
	document.dataform.Adultos.focus();
    return (false);
}

if (document.dataform.Niños_pequeños.selectedIndex == 0)
{
    alert ("Entre el número de niños");
	document.dataform.Niños_pequeños.focus();
    return (false);
}

if (document.dataform.Descripción.value == "")
{
    alert ("Describa su plan de viaje / Requisitos de");
	document.dataform.Descripción.focus();
	return (false);
}

if (document.dataform.S_nombre.value == "")
{
    alert ("Favor escriba su nombre");
	document.dataform.S_nombre.focus();
	return (false);
}

if (document.dataform.S_email.value == "")
{
    alert ("Introduzca su correo electrónico de identificación");
	document.dataform.S_email.focus();
	return (false);
}

if(document.dataform.S_email.value.indexOf(" ") >= 0)
{
	alert("Please enter your email-id without any white space character.");
	document.dataform.S_email.focus();
	return (false);
}

if ( (document.dataform.S_email.value.indexOf("@") == -1) || (document.dataform.S_email.value.indexOf(".") == -1) )
{
	alert("Please enter a valid email-id"); 
	document.dataform.S_email.focus();
	return (false);
}

BeforeAtRate = document.dataform.S_email.value.substring(0,document.dataform.S_email.value.indexOf("@"));
AfterAtRate = document.dataform.S_email.value.substring(document.dataform.S_email.value.indexOf("@")+1,document.dataform.S_email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("Please enter a valid email-id"); 
	document.dataform.S_email.focus();
	return (false);
}

middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."))
last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
{
	alert("Please enter a valid email-id"); 
	document.dataform.S_email.focus();
	return (false);
}

if (document.dataform.S_ccode.value == "")
{
    alert ("Sírvase introducir su código de país");
	document.dataform.S_ccode.focus();
	return (false);
}

if (document.dataform.S_teléfono.value == "")
{
    alert ("Por favor, introduzca su número de teléfono");
	document.dataform.S_teléfono.focus();
	return (false);
}

if (document.dataform.S_pais.selectedIndex == 0)
{
    alert ("Por favor, indique su país");
	document.dataform.S_pais.focus();
	return (false);
}

if (document.dataform.captcha_text.value.length == 0)  
{
	alert ("Kindly enter security code as shown in image.");
	document.dataform.captcha_text.focus();
	return (false);
}

// Referrer and selfurl
if (document.referrer&&document.referrer!="")
{
	document.dataform.referer.value = document.referrer;
}
	document.dataform.self_url.value = document.location.href;
//

newCookie = document.dataform.S_nombre.value;
newCookie +="|"+document.dataform.S_email.value;
newCookie +="|"+document.dataform.S_teléfono.value;
newCookie +="|"+document.dataform.S_pais.value;
newCookie +="|";
setCookie("newImeshID",newCookie);
return true;
}

var d = new Date();
var epoch_time =(d.getTime()-d.getMilliseconds())/1000;
var randomnumber=Math.floor(Math.random()*9999);
var randomnumber1=Math.floor(Math.random()*9999);
var ran_num=randomnumber+"."+epoch_time+"."+randomnumber1;
var url="/cgi/get_captcha.cgi?cref="+ran_num+"&style=2";

function get()
{
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 3){
		if (document.dataform.S_nombre.value.length == 0) document.dataform.S_nombre.value = Values[0];
		if (document.dataform.S_email.value.length == 0) document.dataform.S_email.value = Values[1];
		if (document.dataform.S_teléfono.value.length == 0) document.dataform.S_teléfono.value = Values[2];
		if (document.dataform.S_pais.value.length == 0) document.dataform.S_pais.value = Values[3];
	}
}
return true;
}
function setCookie(name, value){
if (value.length > 0)
 document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString()+";"
}
function getCookie(Name) {
          var search = Name + "="
          if (document.cookie.length > 0) { // if there are any cookies
                    offset = document.cookie.indexOf(search) 
                    if (offset != -1) { // if cookie exists 
                              offset += search.length 
                              // set index of beginning of value
                              end = document.cookie.indexOf(";", offset) 
                              // set index of end of cookie value
                              if (end == -1) end = document.cookie.length
                              return unescape(document.cookie.substring(offset, end))
                    } 
          }
return "";
}

var is_input = document.URL.indexOf('?');
        var pcode = '';
        var pname = '';

        if (is_input != -1)
        {
                addr_str = document.URL.substring(is_input+1, document.URL.length);
                strarr = addr_str.split("&");
		pname = unescape((strarr[0].split("="))[1]);
		pname = pname.replace(/\+/g," ");
		if(strarr[1])
		{
			pcode_name = unescape((strarr[1].split("="))[0]);
			pcode_value = unescape((strarr[1].split("="))[1]);
		}
		else
		{
			pcode_name = '';
			pcode_value = '';
		}
        }
//Getting parameter name from url ends
// STOP HIDING FROM OTHER BROWSERS -->