

<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set2(){

if ( (document.dataform2.S_name.value == "") || (document.dataform2.S_email.value == "") || (document.dataform2.City_Name.value == "") || (document.dataform2.Date_Check_In.value == "")  || (document.dataform2.Date_Check_Out.value == "")  || (document.dataform2.no_of_rooms.value == "") || (document.dataform2.budget.value == "")  || (document.dataform2.other_requirements.value == "") )
{
    alert("Please fill in all the compulsory fields");
    return (false);
}


if(document.dataform2.S_email.value.indexOf(" ") >= 0)
{
	alert("Please enter your email-id without any white space character.");
	document.dataform2.S_email.focus();
	return (false);
}
if ( (document.dataform2.S_email.value.indexOf("@") == -1) || (document.dataform2.S_email.value.indexOf(".") == -1) )
{
	alert("Please enter a valid email-id"); 
	document.dataform2.S_email.focus();
	return (false);
}


BeforeAtRate = document.dataform2.S_email.value.substring(0,document.dataform2.S_email.value.indexOf("@"));
AfterAtRate = document.dataform2.S_email.value.substring(document.dataform2.S_email.value.indexOf("@")+1,document.dataform2.S_email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("Please enter a valid email-id"); 
	document.dataform2.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.dataform2.S_email.focus();
	return (false);
}
/*
cim = document.dataform2.checkinMonth.selectedIndex;
cid = document.dataform2.checkinDay.selectedIndex;
ciy = document.dataform2.checkinYear.selectedIndex;
com = document.dataform2.checkoutMonth.selectedIndex;
cod = document.dataform2.checkoutDay.selectedIndex;
coy = document.dataform2.checkoutYear.selectedIndex;

if((cim == 0) || (cid == 0) || (ciy == 0))
	{
alert("Please select the arrival date");
return false;
	}
if((com == 0) || (cod == 0) || (coy == 0))
	{
alert("Please select the departure date");
return false;
	}
*/
if (document.dataform2.captcha_text.value.length == 0)  {
		alert ("Kindly enter security code as shown in image.");
		document.dataform2.captcha_text.focus();
		return false;
	}

newCookie = document.dataform2.S_name.value;
newCookie +="|"+document.dataform2.S_email.value;
newCookie +="|"+document.dataform2.City_Name.value;
newCookie +="|"+document.dataform2.Date_Check_In.value;
newCookie +="|"+document.dataform2.Date_Check_Out.value;
newCookie +="|"+document.dataform2.no_of_rooms.value;
newCookie +="|"+document.dataform2.budget.value;
newCookie +="|"+document.dataform2.other_requirements.value;
newCookie +="|";
setCookie("newImeshIDnew",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 get2(){
if( (cookie = getCookie("newImeshIDnew")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 2){
		if (document.dataform2.S_name.value.length == 0) document.dataform2.S_name.value = Values[0];          
		if (document.dataform2.S_email.value.length == 0)    document.dataform2.S_email.value = Values[1];
		if (document.dataform2.City_Name.value.length == 0)    document.dataform2.City_Name.value=Values[2];
		if (document.dataform2.budget.value.length == 0) document.dataform2.Date_Check_In.value=Values[3];
		if (document.dataform2.budget.value.length == 0) document.dataform2.Date_Check_Out.value=Values[4];
		if (document.dataform2.no_of_rooms.value.length == 0)      document.dataform2.no_of_rooms.value=Values[5];
		if (document.dataform2.budget.value.length == 0) document.dataform2.budget.value=Values[6];
		if (document.dataform2.budget.value.length == 0) document.dataform2.other_requirements.value=Values[7];
}
}
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 "";
}


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) ||  ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ) ; if (condition == true  )
    CanAnimate = true;
else
    CanAnimate = false;function openchild(thisurl){
if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,width=300,height=110,left=250,top=0');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=200,height=110');
}       }


function getit(){
if (document.menuForm.url.selectedIndex != 0) parent.location=document.menuForm.url.options[document.menuForm.url.selectedIndex].value;
}

function getit2(){
if (document.menuForm2.url.selectedIndex != 0)
	{
	parent.location=document.menuForm2.url.options[document.menuForm2.url.selectedIndex].value;
	}
}

function validateit(theForm) {
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(theForm.email.value)))
	{
		alert("Invalid Email ID. Kindly enter the correct ID.");
		theForm.email.focus();
		return (false);
	}

}
// STOP HIDING FROM OTHER BROWSERS -->

