

<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set4(){

if ( (document.dataform.S_name.value == "") || (document.dataform.S_email.value == "") || (document.dataform.S_country.value == "") || (document.dataform.interest.value == "") )
{
    alert("Please fill in all the compulsory fields");
    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);
}

newCookie = document.dataform.S_name.value;
newCookie +="|"+document.dataform.S_email.value;
newCookie +="|"+document.dataform.hotel_Name.value;
newCookie +="|"+document.dataform.City_Name.value;
newCookie +="|"+document.dataform.no_of_rooms.value;
newCookie +="|"+document.dataform.budget.value;
newCookie +="|"+document.dataform.other_requirements.value;
newCookie +="|";
setCookie("newImeshID",newCookie);
return true;
}
function get(){
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 7){
		if (document.dataform.S_name.value.length == 0) document.dataform.S_name.value = Values[0];          
		if (document.dataform.S_email.value.length == 0)    document.dataform.S_email.value = Values[1];
if (document.dataform.hotel_Name.value.length == 0)document.dataform.hotel_Name.value = Values[2];
		if (document.dataform.City_Name.value.length == 0)    document.dataform.City_Name.value=Values[3];
		if (document.dataform.no_of_rooms.value.length == 0)      document.dataform.no_of_rooms.value=Values[4];
		if (document.dataform.budget.value.length == 0) document.dataform.budget.value=Values[5];
if (document.dataform.other_requirements.value.length == 0) document.dataform.other_requirements.value=Values[6];	}
}
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=670,height=410,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 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);
	}

}


function openchild_nl(thisurl)
{
	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;

	var email_val = document.theForm.email.value;
	var name_val = document.theForm.name.value;
	var cntry = document.theForm.country.value;
	var cat_val = document.theForm.cat.value;
	var action_val = document.theForm.action.value;
	var city_val = document.theForm.city.value;

	var thisurl_string = thisurl + "?email=" + email_val + "&name="+ name_val + "&city="+ city_val + "&country="+ cntry +  "&cat="+ cat_val +"&action="+action_val;

	if ( CanAnimate ) {
			msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=600,height=250,top=0,left=0');
			msgWindow.focus();
			msgWindow.location.href = thisurl_string;
	}
	else {
		alert('fdgdgd');
			msgWindow=window.open( thisurl_string,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=600,height=250,top=0,left=0');
	}
}

function checkall() {
		if (document.theForm.name.value.length == 0) {
			alert('Kindly fill the Name first.');
			document.theForm.name.focus();
			return false;
		}


		if (document.theForm.email.value.length == 0) {
			alert('Kindly fill the E-Mail first.');
			document.theForm.email.focus();
			return false;
		}
		if (document.theForm.email.value.length != 0) {
			v_mail = document.theForm.email.value;
			v_mail_ln = document.theForm.email.value.length;

		ch = v_mail.charAt(0);
			if (ch == " ")
			{
				alert ("It seems you have inserted blank spaces at the beginning of E-Mail. Please remove them");
				return false;
			}

				var atrate = v_mail.indexOf("@",0);
				var fdot = v_mail.indexOf(".", atrate);
				var ldot = v_mail.lastIndexOf(".");

			if (atrate == "-1" || fdot == "-1")
			{
				alert ("E-mail entered is not valid. Please enter a correct E-mail .");
				document.theForm.email.select();
				document.theForm.email.focus();
				return false;
			}
			else
			{
				gap_at_dot = fdot - atrate;
				gap_last = v_mail_ln - ldot -1;
				if ( (gap_at_dot < 1) || (gap_last < 1) )
				{
					alert ("E-Mail entered is not valid. Please enter a correct E-Mail.");
					document.theForm.email.select();
					document.theForm.email.focus();
					return false;
				}

			}
		}

		if (document.theForm.cat.selectedIndex == 0) {
			alert('Kindly select at least one category');
			document.theForm.cat.focus();
			return false;
		}


		return true;
	  }
function openchild_nl(thisurl)
{
	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;

	var email_val = document.theForm.email.value;
	var name_val = document.theForm.name.value;
	var cntry = document.theForm.country.value;
	var cat_val = document.theForm.cat.value;
	var action_val = document.theForm.action.value;
	var city_val = document.theForm.city.value;

	var thisurl_string = thisurl + "?email=" + email_val + "&name="+ name_val + "&city="+ city_val + "&country="+ cntry +  "&cat="+ cat_val +"&action="+action_val;

	if ( CanAnimate ) {
			msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=600,height=300,top=0,left=0');
			msgWindow.focus();
			msgWindow.location.href = thisurl_string;
	}
	else {
		alert('fdgdgd');
			msgWindow=window.open( thisurl_string,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=600,height=300,top=0,left=0');
	}
}

function checkall() {
		if (document.theForm.name.value.length == 0) {
			alert('Kindly fill the Name first.');
			document.theForm.name.focus();
			return false;
		}


		if (document.theForm.email.value.length == 0) {
			alert('Kindly fill the E-Mail first.');
			document.theForm.email.focus();
			return false;
		}
		if (document.theForm.email.value.length != 0) {
			v_mail = document.theForm.email.value;
			v_mail_ln = document.theForm.email.value.length;

		ch = v_mail.charAt(0);
			if (ch == " ")
			{
				alert ("It seems you have inserted blank spaces at the beginning of E-Mail. Please remove them");
				return false;
			}

				var atrate = v_mail.indexOf("@",0);
				var fdot = v_mail.indexOf(".", atrate);
				var ldot = v_mail.lastIndexOf(".");

			if (atrate == "-1" || fdot == "-1")
			{
				alert ("E-mail entered is not valid. Please enter a correct E-mail .");
				document.theForm.email.select();
				document.theForm.email.focus();
				return false;
			}
			else
			{
				gap_at_dot = fdot - atrate;
				gap_last = v_mail_ln - ldot -1;
				if ( (gap_at_dot < 1) || (gap_last < 1) )
				{
					alert ("E-Mail entered is not valid. Please enter a correct E-Mail.");
					document.theForm.email.select();
					document.theForm.email.focus();
					return false;
				}

			}
		}

		if (document.theForm.cat.selectedIndex == 0) {
			alert('Kindly select at least one category');
			document.theForm.cat.focus();
			return false;
		}


		return true;
	  }
// STOP HIDING FROM OTHER BROWSERS -->

