<!--
	
	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='dod_d'>");
	} 
	else{
	var gr = document.query.dod_d;
	var valOption = new Option(val);
	var valLen = gr.length;
	gr.options[valLen] = valOption;
	}
	}

	function InitOptions(){
    if (style1=="Month-Year"){
	fixSelect("Date");
	//fixSelect("Udaipur");
    }
   
	if (style1=="September 2011") {
	fixSelect("Date");
	fixSelect("7");
	fixSelect("14");
	fixSelect("21");	
	fixSelect("28");
	}
	
	if (style1=="October 2011") {
	fixSelect("Date");
	fixSelect("5");
	fixSelect("12");
	fixSelect("19");	
	fixSelect("26");
	}
	
	if (style1=="November 2011") {
	fixSelect("Date");
	fixSelect("2");
	fixSelect("9");
	fixSelect("16");	
	fixSelect("23");
	fixSelect("30");
	}
	
	if (style1=="December 2011") {
	fixSelect("Date");
	fixSelect("7");
	fixSelect("14");
	fixSelect("21");	
	fixSelect("28");
	}
	
	 if (style1=="January 2012") {
	fixSelect("Date");
	fixSelect("4");
	fixSelect("11");
	fixSelect("18");
	fixSelect("25");	
	}
	
	if (style1=="February 2012") {
	fixSelect("Date");
	fixSelect("1");
	fixSelect("8");
	fixSelect("15");	
	fixSelect("22");
	fixSelect("29");
	}
	
	if (style1=="March 2012") {
	fixSelect("Date");
	fixSelect("7");
	fixSelect("14");
	fixSelect("21");	
	fixSelect("28");
	}
	
	if (style1=="April 2012") {
	fixSelect("Date");
	fixSelect("4");
	fixSelect("11");
	fixSelect("18");	
	fixSelect("25");
	}
	
	if (style1=="April 2010") {
	fixSelect("Date");
	fixSelect("7");
	fixSelect("14");
	fixSelect("21");	
	fixSelect("28");
	}
	}
	
	function reInitOptions(){

	//var val = document.query.dob_month;
	var val = document.query.dod_my;
	var gr = document.query.dod_d;
	
	//style1 = val.options[val.selectedIndex].text;
	style1 = val.options[val.selectedIndex].value;
	//style2 = val.options[val.selectedIndex].value;
	//style1 = val.value;
	//style1 = document.query.dob_month.value;
	//style2 = val.text;
	
	//alert (style1);
	//alert (style2);
	//gr=6;
	for (i=gr.length;i>0;i--){
	gr.options[0] = null;
	//gr.options[0] = null;
	}
	
	pause = true;
	InitOptions();
	gr.options[0].selected = true;
	return false;
	}



/*	
	var val;
	var style1;
	
	function reInitOptions(){
		val = document.query.dod_my;
		style1 = val.options[val.selectedIndex].value;
		InitOptions();
	}
	
	
	function InitOptions(){
		//alert (style1);	
			str='';
			
			if (style1=="Month-Year") {
				str=str+'<select name=dod_d class=month>';
				str=str+'<option value="Date">Date</option>';
				str=str+'</select>';
			}
			
			if (style1=="April 2006") {
				str=str+'<select name=dod_d class=month>';
				str=str+'<option value="Date">Date</option>';
				str=str+'<option value=3>3</option>';
				str=str+'<option value=10>10</option>';
				str=str+'<option value=17>17</option>';
				str=str+'<option value=24>24</option>';
				str=str+'</select>';
			}
			
			if (style1=="July 2005") {
				str=str+'<select name=dod_d class=month>';
				str=str+'<option value="Date">Date</option>';
				str=str+'<option value=5>5</option>';
				str=str+'<option value=12>12</option>';
				str=str+'<option value=19>19</option>';
				str=str+'<option value=26>26</option>';
				str=str+'</select>';
			}
		
		
					eval("dod_d4.innerHTML='"+str+"'");
}
	
*/	
	
	
	
	function connectMe(ClickValue){

	//alert("Click Value :" +ClickValue)
	obj="document.query."+ClickValue
	obj=obj+".checked = false"
	//alert("Obj Value :" +obj)
	eval(obj)
	}

	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 isEmail (s){
	if (isEmpty(s))
	// is s whitespace?
	if (isWhitespace(s)) return false;
	// there must be >= 1 character before @, so we
	// start looking at character position 1
	// (i.e. second character)
	var i = 1;
	var sLength = s.length;
	// look for @
	while ((i < sLength) && (s.charAt(i) != "@")){
	i++
	}
    
	if ((i >= sLength) || (s.charAt(i) != "@")) 
	return false;
	else i += 2;
 
	// look for .
	while ((i < sLength) && (s.charAt(i) != ".")){
	i++
	}
	
	// there must be at least one character after the .
	if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
	else return true;
	}
	
	
	
	
	function isCharsInBag (s, bag){  
    var i;
    // Search through string's characters one by one.
    // If character is in bag, append to returnString.

    for (i = 0; i < s.length; i++){ 
    // Check that current character isn't whitespace.
    var c = s.charAt(i);
    if (bag.indexOf(c) == -1) return false;
    }
    return true;
	}

	function ValidateFields(){

	//var errMessage="";	
	var email = document.query.t_email.value = document.query.t_email.value.toLowerCase();
	
	
	if (document.query.dod_my.selectedIndex == 0){
	alert('Please, Select Your Departure Month - year');
  	document.query.dod_my.focus();
	return false;
	}
	//alert(document.query.dod_d.text)
	//alert(document.query.dod_d.value)
	//var val = document.query.dod_d;
	//style1 = val.options[val.selectedIndex].value;
	//alert(style1);
	
	if (document.query.dod_d.options[document.query.dod_d.selectedIndex].text == "Date"){
	alert('Please, Select Your Departure Date');
  	document.query.dod_d.focus();
	return false;
	}
	
	if (isWhitespace(document.query.t_fname.value)){
	alert("Please Provide Us Your First Name");
	document.query.t_fname.focus();
	return false;
	}

	if (isWhitespace(document.query.t_lname.value)){
	alert("Please Provide Us Your Last Name");
	document.query.t_lname.focus();
	return false;
	}
	
	if (isWhitespace(document.query.t_age.value)){
	alert("Please Provide Your Age");
	document.query.t_age.focus();
	return false;
	}

	if (document.query.t_age.value != "" && (isNaN(document.query.t_age.value))){
	alert("Please Insert Valid Age !");
	document.query.t_age.select();
	return false;
	}

	if (isWhitespace(document.query.t_addo.value)){
	alert("Please Provide Us Your Address");
	document.query.t_addo.focus();
	return false;
	}

	if (isWhitespace(document.query.t_city.value)){
	alert("Please Provide Us Your City Name");
	document.query.t_city.focus();
	return false;
	}

	if (isWhitespace(document.query.t_country.value)){
	alert('Please, Provide Us Your Country');
  	document.query.t_country.focus();
	return false;
	}

	if (isWhitespace(document.query.t_tel_country_code.value)){
	alert("Please Provide Us Your Telephone Country Code");
	document.query.t_tel_country_code.focus();
	return false;
	}
	
	if (isWhitespace(document.query.t_tel_area_code.value)){
	alert("Please Provide Us Your Telephone Area Code");
	document.query.t_tel_area_code.focus();
	return false;
	}

	if (document.query.t_tel_area_code.value != "" && (isNaN(document.query.t_tel_area_code.value))){
	alert("Please Insert Valid Telephone Area Code!");
	document.query.t_tel_area_code.select();
	return false;
	}

	if (isWhitespace(document.query.t_telno.value)){
	alert("Please Provide Us Your Telephone Number");
	document.query.t_telno.focus();
	return false;
	}

	if (document.query.t_telno.value != "" && (isNaN(document.query.t_telno.value))){
	alert("Please Insert Valid Telephone Number!");
	document.query.t_telno.select();
	return false;
	}

	if (!isEmail(email)){
	alert( "Please Insert A Valid Email Address" );
	document.query.t_email.select();
	return false;
    }
	
	if (document.query.t_no_adult.selectedIndex == 0){
	alert('Please, Select Number Of Adults');
  	document.query.t_no_adult.focus();
	return false;
	}
	
	if (document.query.t_query.value != "" && document.query.t_query.value.length > 500){
   	alert( "Please Write Your Special Request In Less Then 500 Words" );
	document.query.t_query.focus();
	return false;
    }
	return true;
	}

//-->
