//Getting parameter name from url starts
var is_input = document.URL.indexOf('?');
var hotel_value = '';
if (is_input != -1)
{
	addr_str = document.URL.substring(is_input+1, document.URL.length);
	strarr = addr_str.split("&");
	var param_name = unescape((strarr[0].split("="))[0]);
	if(param_name == "hotel")
	{
		hotel_value = unescape((strarr[0].split("="))[1]);
		hotel_value = hotel_value.replace(/\+/g," ");
	}
}//Getting parameter name from url ends

//Translater script below
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 translate()
{
	var loc = document.location.toString();
	loc = loc.substring(7,loc.length);
	var idx;
	idx = document.trans.langpair.selectedIndex;
	if (idx<=0) {
		alert("Please select a language.");
		return false;
	}
	else {
		window.open('http://translate.google.com/translate_c?langpair=' + document.trans.langpair.options[idx].value + "&u=" + document.location,"new_trans");
		return false;
	}
}

function openchild_nl(thisurl) 
{
	var windowTop;
	var windowLeft;
	windowTop=(screen.height*(20/100))*0.7;
	windowLeft=screen.width*(19/100);

	var email_val = document.theForm.email.value;
	var from_site_val = document.theForm.from_site.value;
	var is_window_val = document.theForm.is_window.value;
	var org_referer = document.location;
	var thisurl_string = thisurl + "?email=" + email_val + "&from_site=" + from_site_val + "&is_window=" + is_window_val + "&org_referer=" + org_referer;

	if ( CanAnimate ) {
			msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=570,height=260,top='+windowTop+',left='+windowLeft);
			msgWindow.focus();
			msgWindow.location.href = thisurl_string;
	}
	else {
			msgWindow=window.open( thisurl_string,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=570,height=260,top='+windowTop+',left='+windowLeft);
	}
}



function validate_nl(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 getblank_nl(this1)  {
	this1.value = "";
    return true;	
}

function mail(){
	document.location="mailto:webmaster@rajasthan-travel-tours.com?subject="+document.location;
}



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 checkData ()
{
	if (document.form1.choice[0].checked) {
		document.form1.action = "http://www.indiamart.com/cgi/AT-apparelssearch.cgi";
	}
	else {
	    document.form1.action = "http://www.indiamart.com/cgi/AT-india2search.cgi";
	}
	if (document.form1.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.form1.search.focus();
	    return false;
	}
return true;

}


function checkData1 ()
{
	if (document.form2.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.form2.search.focus();
	    return false;
	}
	else{
		return true;
	}

}

function getblank(this1)  {
	if (this1.value = "Your e-mail here") {
		this1.value = "";
	}
    return true;	
}
function convert()

{
var loc = document.location.toString();
loc = loc.substring(7,loc.length);
var idx;
idx = document.trans.langpair.selectedIndex;
if (idx<=0) 
{
alert("Please select a language.");
return false;
}
else{
window.open('http://translate.google.com/translate_c?langpair=' + document.trans.langpair.options[idx].value + "&u=" + document.location,"new_trans");
return false;
}
}

// STOP HIDING FROM OTHER BROWSERS -->