<!--
	function fixSelect(val){
	if (!pause){
	document.write("<option value="+val+">"+val+"<option>");
	//document.write("<option>"+val);
	//<option value="September - 2002">September - 2002</option>
	//document.write("<select name='t_range'>");
	} 
	else{
	var gr = document.fsearchrange.t_range;
	var valOption = new Option(val);
	var valLen = gr.length;
	gr.options[valLen] = valOption;
	}
	}

	function InitOptions()
	{
	if (style1=="Select"){
	fixSelect("Select Range");
	//fixSelect("Udaipur");
    }
	
    if (style1=="INR"){
	fixSelect("50 - 1000");
	fixSelect("1001 - 2500");
	fixSelect("2501 - 5000");
	fixSelect("5001 - 10000");
	fixSelect("10001 - 35000");
    }
	
    if (style1=="US$")
	{
	fixSelect("1 - 10");
	fixSelect("11 - 30");
	fixSelect("31 - 70");
	fixSelect("71 - 150");
	fixSelect("151 - 300");
    }
	
	}
	
	function reInitOptions(){

	//var val = document.fsearchrange.dob_month;
	//var val = document.fsearchrange.t_currency;
	var val = document.form_currency.t_currency;
	var gr = document.fsearchrange.t_range;
	
	style1 = val.options[val.selectedIndex].text;
	//style2 = val.options[val.selectedIndex].value;
	//style1 = val.value;
	//style1 = document.fsearchrange.dob_month.value;
	//style2 = val.text;
	
	//alert (style1);
	//alert (style2);
	for (i=gr.length;i>0;i--){
	gr.options[i] = null;
	//gr.options[0] = null;
	}
	pause = true;
	InitOptions();
	gr.options[0].selected = true;
	return false;
	
	}

	var whitespace = " \t\n\r";
    var defaultEmptyOK = false;

	function isEmpty(s){ 
	return ((s == null) || (s.length == 0))
	}

	function isWhitespace (s){
	var i;
	// Is s empty?
	if (isEmpty(s)) return true;
	
	// Search through string's characters one by one
	// until we find a non-whitespace character.
	// When we do, return false; if we don't, return true.
 	for (i = 0; i < s.length; i++){   
	// Check that current character isn't whitespace.
	var c = s.charAt(i);
	if (whitespace.indexOf(c) == -1) return false;
	}
	
	// All characters are whitespace.
	return true;
	}
	
	function ValidateHotelCtg(){

	var val = document.form_currency.t_currency;
	
	if (val.options[val.selectedIndex].value == 0){
	alert("Please, Select Your Preferred Currency ! ");
  	document.form_currency.t_currency.focus();
	return false;
	}
	
	document.form_ctg.t_currency.value = val.options[val.selectedIndex].value;
	
	if (document.form_ctg.t_city.selectedIndex == 0){
	alert("Please, Select Your Destination City ! ");
  	document.form_ctg.t_city.focus();
	return false;
	}
	
	if (document.form_ctg.t_ctg.selectedIndex == 0){
	alert("Please, Select Hotel Class ! ");
  	document.form_ctg.t_ctg.focus();
	return false;
	}
	
	return true;
	}
	
	function ValidateHotelRange(){

	var val = document.form_currency.t_currency;
	
	if (val.options[val.selectedIndex].value == 0){
	alert("Please, Select Your Preferred Currency ! ");
  	document.form_currency.t_currency.focus();
	return false;
	}
	
	document.fsearchrange.t_currency.value = val.options[val.selectedIndex].value;
	
	if (document.fsearchrange.t_city.selectedIndex == 0){
	alert("Please, Select Your Destination City ! ");
  	document.fsearchrange.t_city.focus();
	return false;
	}
	
	if (document.fsearchrange.t_pkg_class.selectedIndex == 0){
	alert("Please, Select Package Class ! ");
  	document.fsearchrange.t_pkg_class.focus();
	return false;
	}
	
	return true;
	}
		
//-->
