

function createHiddenfield_Hotel(w_date2,w_date3,w_date4)
{
	
	var field0 = document.createElement("input");
	field0.setAttribute("type","hidden");
	field0.setAttribute("value","");
	field0.setAttribute("name","URL");
	field0.setAttribute("id","URL");
	document.getElementById("searchform").appendChild(field0);
	
	var field1 = document.createElement("input");
	field1.setAttribute("type","hidden");
	field1.setAttribute("value",w_date2);
	field1.setAttribute("name","currentdate_hotel");
	field1.setAttribute("id","currentdate_hotel");
	document.getElementById("searchform").appendChild(field1);
	
	var field2 = document.createElement("input");
	field2.setAttribute("type","hidden");
	field2.setAttribute("value",w_date4);
	field2.setAttribute("name","check_InHotel");
	field2.setAttribute("id","check_InHotel");
	document.getElementById("searchform").appendChild(field2);
	
	var field3 = document.createElement("input");
	field3.setAttribute("type","hidden");
	field3.setAttribute("value",w_date3);
	field3.setAttribute("name","check_OutHotel");
	field3.setAttribute("id","check_OutHotel");
	document.getElementById("searchform").appendChild(field3);
	
	var field4 = document.createElement("input");
	field4.setAttribute("type","hidden");
	field4.setAttribute("value","ARZ");
	field4.setAttribute("name","GroupId");
	field4.setAttribute("id","GroupId");
	document.getElementById("searchform").appendChild(field4);
	
	var field5 = document.createElement("input");
	field5.setAttribute("type","hidden");
	field5.setAttribute("value","00000032");
	field5.setAttribute("name","AffiliateId");
	field5.setAttribute("id","AffiliateId");
	document.getElementById("searchform").appendChild(field5);
	
	var field6 = document.createElement("input");
	field6.setAttribute("type","hidden");
	field6.setAttribute("value","");
	field6.setAttribute("name","strcity");
	field6.setAttribute("id","strcity");
	document.getElementById("searchform").appendChild(field6);
	
	var field7 = document.createElement("input");
	field7.setAttribute("type","hidden");
	field7.setAttribute("value","");
	field7.setAttribute("name","CheckInDate");
	field7.setAttribute("id","CheckInDate");
	document.getElementById("searchform").appendChild(field7);
	
	var field8 = document.createElement("input");
	field8.setAttribute("type","hidden");
	field8.setAttribute("value","");
	field8.setAttribute("name","CheckInMonth");
	field8.setAttribute("id","CheckInMonth");
	document.getElementById("searchform").appendChild(field8);
	
	var field9 = document.createElement("input");
	field9.setAttribute("type","hidden");
	field9.setAttribute("value","");
	field9.setAttribute("name","CheckInYear");
	field9.setAttribute("id","CheckInYear");
	document.getElementById("searchform").appendChild(field9);
	
	var field10 = document.createElement("input");
	field10.setAttribute("type","hidden");
	field10.setAttribute("value","");
	field10.setAttribute("name","CheckOutDate");
	field10.setAttribute("id","CheckOutDate");
	document.getElementById("searchform").appendChild(field10);
	
	var field11 = document.createElement("input");
	field11.setAttribute("type","hidden");
	field11.setAttribute("value","");
	field11.setAttribute("name","CheckOutMonth");
	field11.setAttribute("id","CheckOutMonth");
	document.getElementById("searchform").appendChild(field11);
	
	var field12 = document.createElement("input");
	field12.setAttribute("type","hidden");
	field12.setAttribute("value","");
	field12.setAttribute("name","CheckOutYear");
	field12.setAttribute("id","CheckOutYear");
	document.getElementById("searchform").appendChild(field12);
	
	var field13 = document.createElement("input");
	field13.setAttribute("type","hidden");
	field13.setAttribute("value","");
	field13.setAttribute("name","Check_In");
	field13.setAttribute("id","Check_In");
	document.getElementById("searchform").appendChild(field13);
	
	var field14 = document.createElement("input");
	field14.setAttribute("type","hidden");
	field14.setAttribute("value","");
	field14.setAttribute("name","strCheckindate");
	field14.setAttribute("id","strCheckindate");
	document.getElementById("searchform").appendChild(field14);
	
	var field15 = document.createElement("input");
	field15.setAttribute("type","hidden");
	field15.setAttribute("value","");
	field15.setAttribute("name","strCheckinmonth");
	field15.setAttribute("id","strCheckinmonth");
	document.getElementById("searchform").appendChild(field15);
	
	var field16 = document.createElement("input");
	field16.setAttribute("type","hidden");
	field16.setAttribute("value","");
	field16.setAttribute("name","strCheckinyear");
	field16.setAttribute("id","strCheckinyear");
	document.getElementById("searchform").appendChild(field16);
	
	var field17 = document.createElement("input");
	field17.setAttribute("type","hidden");
	field17.setAttribute("value","");
	field17.setAttribute("name","strCheckoutdate");
	field17.setAttribute("id","strCheckoutdate");
	document.getElementById("searchform").appendChild(field17);
	
	var field18 = document.createElement("input");
	field18.setAttribute("type","hidden");
	field18.setAttribute("value","");
	field18.setAttribute("name","strCheckoutmonth");
	field18.setAttribute("id","strCheckoutmonth");
	document.getElementById("searchform").appendChild(field18);
	
	var field19 = document.createElement("input");
	field19.setAttribute("type","hidden");
	field19.setAttribute("value","");
	field19.setAttribute("name","strCheckoutyear");
	field19.setAttribute("id","strCheckoutyear");
	document.getElementById("searchform").appendChild(field19);
	
	var field20 = document.createElement("input");
	field20.setAttribute("type","hidden");
	field20.setAttribute("value","");
	field20.setAttribute("name","strOtherCity");
	field20.setAttribute("id","strOtherCity");
	document.getElementById("searchform").appendChild(field20);
	
	var field21 = document.createElement("input");
	field21.setAttribute("type","hidden");
	field21.setAttribute("value","Mumbai");
	field21.setAttribute("name","hotelCity");
	field21.setAttribute("id","hotelCity");
	document.getElementById("searchform").appendChild(field21);
	
	var field22 = document.createElement("input");
	field22.setAttribute("type","hidden");
	field22.setAttribute("value","");
	field22.setAttribute("name","checkIn");
	field22.setAttribute("id","checkIn");
	document.getElementById("searchform").appendChild(field22);
	
	var field23 = document.createElement("input");
	field23.setAttribute("type","hidden");
	field23.setAttribute("value","");
	field23.setAttribute("name","checkOut");
	field23.setAttribute("id","checkOut");
	document.getElementById("searchform").appendChild(field23);
	
	var field24 = document.createElement("input");
	field24.setAttribute("type","hidden");
	field24.setAttribute("value","D");
	field24.setAttribute("name","strType");
	field24.setAttribute("id","strType");
	document.getElementById("searchform").appendChild(field24);
	
	var field25 = document.createElement("input");
	field25.setAttribute("type","hidden");
	field25.setAttribute("value",w_date4);
	field25.setAttribute("name","depart1");
	field25.setAttribute("id","depart1");
	document.getElementById("searchform").appendChild(field25);
	
	var field26 = document.createElement("input");
	field26.setAttribute("type","hidden");
	field26.setAttribute("value",w_date3);
	field26.setAttribute("name","return1");
	field26.setAttribute("id","return1");
	document.getElementById("searchform").appendChild(field26);
	
	var field27 = document.createElement("input");
	field27.setAttribute("type","hidden");
	field27.setAttribute("value",w_date4);
	field27.setAttribute("name","check_Inhotel");
	field27.setAttribute("id","check_Inhotel");
	document.getElementById("searchform").appendChild(field27);
	
	var field28 = document.createElement("input");
	field28.setAttribute("type","hidden");
	field28.setAttribute("value",w_date3);
	field28.setAttribute("name","check_Outhotel");
	field28.setAttribute("id","check_Outhotel");
	document.getElementById("searchform").appendChild(field28);
	
	var field29 = document.createElement("input");
	field29.setAttribute("type","hidden");
	field29.setAttribute("value","1001");
	field29.setAttribute("name","partnerid");
	field29.setAttribute("id","partnerid");
	document.getElementById("searchform").appendChild(field29);
	
	var field30 = document.createElement("input");
	field30.setAttribute("type","hidden");
	field30.setAttribute("value","");
	field30.setAttribute("name","no_ofrooms");
	field30.setAttribute("id","no_ofrooms");
	document.getElementById("searchform").appendChild(field30);
	
	var field31 = document.createElement("input");
	field31.setAttribute("type","hidden");
	field31.setAttribute("value","");
	field31.setAttribute("name","str_AdultsRoom1");
	field31.setAttribute("id","str_AdultsRoom1");
	document.getElementById("searchform").appendChild(field31);
	
	var field32 = document.createElement("input");
	field32.setAttribute("type","hidden");
	field32.setAttribute("value","");
	field32.setAttribute("name","str_ChildrenRoom1");
	field32.setAttribute("id","str_ChildrenRoom1");
	document.getElementById("searchform").appendChild(field32);
	
	var field33 = document.createElement("input");
	field33.setAttribute("type","hidden");
	field33.setAttribute("value","");
	field33.setAttribute("name","str_AgeChild1Room1");
	field33.setAttribute("id","str_AgeChild1Room1");
	document.getElementById("searchform").appendChild(field33);
	
	var field34 = document.createElement("input");
	field34.setAttribute("type","hidden");
	field34.setAttribute("value","");
	field34.setAttribute("name","str_AgeChild2Room1");
	field34.setAttribute("id","str_AgeChild2Room1");
	document.getElementById("searchform").appendChild(field34);
	
	var field35 = document.createElement("input");
	field35.setAttribute("type","hidden");
	field35.setAttribute("value","");
	field35.setAttribute("name","str_AdultsRoom2");
	field35.setAttribute("id","str_AdultsRoom2");
	document.getElementById("searchform").appendChild(field35);
	
	var field36 = document.createElement("input");
	field36.setAttribute("type","hidden");
	field36.setAttribute("value","");
	field36.setAttribute("name","str_ChildrenRoom2");
	field36.setAttribute("id","str_ChildrenRoom2");
	document.getElementById("searchform").appendChild(field36);
	
	var field37 = document.createElement("input");
	field37.setAttribute("type","hidden");
	field37.setAttribute("value","");
	field37.setAttribute("name","str_AgeChild1Room2");
	field37.setAttribute("id","str_AgeChild1Room2");
	document.getElementById("searchform").appendChild(field37);
	
	var field38 = document.createElement("input");
	field38.setAttribute("type","hidden");
	field38.setAttribute("value","");
	field38.setAttribute("name","str_AgeChild2Room2");
	field38.setAttribute("id","str_AgeChild2Room2");
	document.getElementById("searchform").appendChild(field38);
	
	var field39 = document.createElement("input");
	field39.setAttribute("type","hidden");
	field39.setAttribute("value","");
	field39.setAttribute("name","str_AdultsRoom3");
	field39.setAttribute("id","str_AdultsRoom3");
	document.getElementById("searchform").appendChild(field39);
	
	var field40 = document.createElement("input");
	field40.setAttribute("type","hidden");
	field40.setAttribute("value","");
	field40.setAttribute("name","str_ChildrenRoom3");
	field40.setAttribute("id","str_ChildrenRoom3");
	document.getElementById("searchform").appendChild(field40);
	
	var field41 = document.createElement("input");
	field41.setAttribute("type","hidden");
	field41.setAttribute("value","");
	field41.setAttribute("name","str_AgeChild1Room3");
	field41.setAttribute("id","str_AgeChild1Room3");
	document.getElementById("searchform").appendChild(field41);
	
	var field42 = document.createElement("input");
	field42.setAttribute("type","hidden");
	field42.setAttribute("value","");
	field42.setAttribute("name","str_AgeChild2Room3");
	field42.setAttribute("id","str_AgeChild2Room3");
	document.getElementById("searchform").appendChild(field42);
	
	var field43 = document.createElement("input");
	field43.setAttribute("type","hidden");
	field43.setAttribute("value","");
	field43.setAttribute("name","str_AdultsRoom4");
	field43.setAttribute("id","str_AdultsRoom4");
	document.getElementById("searchform").appendChild(field43);
	
	var field44 = document.createElement("input");
	field44.setAttribute("type","hidden");
	field44.setAttribute("value","");
	field44.setAttribute("name","str_ChildrenRoom4");
	field44.setAttribute("id","str_ChildrenRoom4");
	document.getElementById("searchform").appendChild(field44);
	
	var field45 = document.createElement("input");
	field45.setAttribute("type","hidden");
	field45.setAttribute("value","");
	field45.setAttribute("name","str_AgeChild1Room4");
	field45.setAttribute("id","str_AgeChild1Room4");
	document.getElementById("searchform").appendChild(field45);
	
	var field46 = document.createElement("input");
	field46.setAttribute("type","hidden");
	field46.setAttribute("value","");
	field46.setAttribute("name","str_AgeChild2Room4");
	field46.setAttribute("id","str_AgeChild2Room4");
	document.getElementById("searchform").appendChild(field46);
	
	var field47 = document.createElement("input");
	field47.setAttribute("type","hidden");
	field47.setAttribute("value","");
	field47.setAttribute("name","c_urrency");
	field47.setAttribute("id","c_urrency");
	document.getElementById("searchform").appendChild(field47);
	
	var field48 = document.createElement("input");
	field48.setAttribute("type","hidden");
	field48.setAttribute("value","INR");
	field48.setAttribute("name","currency");
	field48.setAttribute("id","currency");
	document.getElementById("searchform").appendChild(field48);

}

function getUserHiddenParam_Hotel(userdelparam)
{
	if(userdelparam != "")
	{
		var UserParamSplit = userdelparam.split("<comma>");
		//alert("hotel "+UserParamSplit);
		var field49 = document.createElement("input");
		field49.setAttribute("type","hidden");
		field49.setAttribute("value",UserParamSplit[0]);
		field49.setAttribute("name","prtnr_user_id");
		field49.setAttribute("id","prtnr_user_id");
		document.getElementById("searchform").appendChild(field49);
		document.getElementById("prtnr_user_id").value = document.getElementById("prtnr_user_id").value;
		
		var field50 = document.createElement("input");
		field50.setAttribute("type","hidden");
		field50.setAttribute("value",UserParamSplit[1]);
		field50.setAttribute("name","fname");
		field50.setAttribute("id","fname");
		document.getElementById("searchform").appendChild(field50);
		document.getElementById("fname").value = document.getElementById("fname").value;
		
		var field51 = document.createElement("input");
		field51.setAttribute("type","hidden");
		field51.setAttribute("value",UserParamSplit[2]);
		field51.setAttribute("name","lname");
		field51.setAttribute("id","lname");
		document.getElementById("searchform").appendChild(field51);
		document.getElementById("lname").value = document.getElementById("lname").value;
		
		var field52 = document.createElement("input");
		field52.setAttribute("type","hidden");
		field52.setAttribute("value",UserParamSplit[3]);
		field52.setAttribute("name","email");
		field52.setAttribute("id","email");
		document.getElementById("searchform").appendChild(field52);
		document.getElementById("email").value = document.getElementById("email").value;
		
		var field53 = document.createElement("input");
		field53.setAttribute("type","hidden");
		field53.setAttribute("value",UserParamSplit[4]);
		field53.setAttribute("name","add");
		field53.setAttribute("id","add");
		document.getElementById("searchform").appendChild(field53);
		document.getElementById("add").value = document.getElementById("add").value;
		
		var field54 = document.createElement("input");
		field54.setAttribute("type","hidden");
		field54.setAttribute("value",UserParamSplit[5]);
		field54.setAttribute("name","pin");
		field54.setAttribute("id","pin");
		document.getElementById("searchform").appendChild(field54);
		document.getElementById("pin").value = document.getElementById("pin").value;
		
		var field55 = document.createElement("input");
		field55.setAttribute("type","hidden");
		field55.setAttribute("value",UserParamSplit[6]);
		field55.setAttribute("name","city");
		field55.setAttribute("id","city");
		document.getElementById("searchform").appendChild(field55);
		document.getElementById("city").value = document.getElementById("city").value;
		
		var field56 = document.createElement("input");
		field56.setAttribute("type","hidden");
		field56.setAttribute("value",UserParamSplit[7]);
		field56.setAttribute("name","state");
		field56.setAttribute("id","state");
		document.getElementById("searchform").appendChild(field56);
		document.getElementById("state").value = document.getElementById("state").value;
		
		var field57 = document.createElement("input");
		field57.setAttribute("type","hidden");
		field57.setAttribute("value",UserParamSplit[8]);
		field57.setAttribute("name","phone");
		field57.setAttribute("id","phone");
		document.getElementById("searchform").appendChild(field57);
		document.getElementById("phone").value = document.getElementById("phone").value;
		
		var field58 = document.createElement("input");
		field58.setAttribute("type","hidden");
		field58.setAttribute("value",UserParamSplit[9]);
		field58.setAttribute("name","mobile");
		field58.setAttribute("id","mobile");
		document.getElementById("searchform").appendChild(field58);
		document.getElementById("mobile").value = document.getElementById("mobile").value;
		
		var field59 = document.createElement("input");
		field59.setAttribute("type","hidden");
		field59.setAttribute("value",UserParamSplit[10]);
		field59.setAttribute("name","username");
		field59.setAttribute("id","username");
		document.getElementById("searchform").appendChild(field59);
		document.getElementById("username").value = document.getElementById("username").value;
	}
}

function dateStatusHandler_Hotel(date, y, m, d) 
			{
			    var dt = new Date();
				var time = date.getTime();
				var currtime = dt.getTime();// +(Date.DAY+1);
				if (time >= currtime)
					return false;
				else
					return true;
			    // return true above if you want to disable other dates
			}
			
function dateStatusHandler_Hotel_Checkout(date, y, m, d) 
{
    var dt = new Date();
	var time = date.getTime();
	var currtime = dt.getTime() + (Date.DAY+1);
	if (time >= currtime)
		return false;
	else
		return true;
    // return true above if you want to disable other dates
}

function catcalc_Hotel(cal) 
		   	{
		        var date = cal.date;
		        var time = date.getTime();
		        // use the _other_ field
		        var field = document.getElementById("checkout_date");
		        
		        if (field == cal.params.inputField) {
		            field = document.getElementById("checkin_date");
		           time += (Date.DAY + 1); // substract one day
		        } else {
		           time += Date.DAY; // add one week
					var date2 = new Date(time);
		            field.value = date2.print("%d-%b-%Y");
		        }
	     	}
		   	
function catcalc_Hotel_Checkout(cal) 
{
     var date = cal.date;
     var time = date.getTime()
     // use the _other_ field
     var field = document.getElementById("checkout_date");
     if (field == cal.params.inputField) {
         field = document.getElementById("checkin_date");
         //time += (Date.DAY + 1); // substract one day
     } else {
         //time += Date.DAY; // add one week
		var date2 = new Date(time);
         field.value = date2.print("%d-%b-%Y");
     }
     
 }
 
 function hotelsource()
{
//alert(w_date3+"##"+w_date4)
	var check_In = document.getElementById("check_InHotel").value;
	var check_Out = document.getElementById("check_OutHotel").value;
	//alert(check_In+"  "+check_Out);
	//var hotelsrc = "<tr><td height='48' background='images/top.gif'><img src='images/blk.gif' width='15' height='1' /><a href='#' onclick=hearderOption('Flight')><img src='images/flight01.gif' width='65' height='48' border='0' /></a><img src='images/blk.gif' width='10' height='1' /><img src='images/hotel02.gif' width='65' height='48' border='0'/><img src='images/blk.gif' width='10' height='1' /><a href='#' onclick=hearderOption('Car')><img src='images/car01.gif' width='65' height='48' border='0' /></a></td></tr>";
	var hotelsrc = "<table width='340' border='0' cellspacing='0' cellpadding='0' ><tr><td width='75' height='25' align='left' class='L1' style='font-size:11px;'>City</td><td width='5' height='25' align='center' class='L1' style='font-size:11px;'>:</td><td height='25' width='260' colspan='4' align='left' class='L1'>";
	hotelsrc = hotelsrc + "<select name='cityName' tabindex='1' Class='L11'><option value=''>--Select City--</option><option value='NEW DELHI'>NEW DELHI</option><option value='MUMBAI' name='strcity'>MUMBAI / BOMBAY</option><option value='JAIPUR'>JAIPUR</option><option value='AGRA'>AGRA</option><option value='GOA'>GOA</option><option value='BANGALORE'>BANGALORE</option><option value='CHENNAI'>CHENNAI</option><option value='KOLKATA'>KOLKATA</option><option value='line'>--------------</option><option value='AGARTALA'>AGARTALA</option><option value='AGRA'>AGRA</option><option value='AHMEDABAD'>AHMEDABAD</option> <option value='AIZAWL'>AIZAWL</option><option value='AJMER'>AJMER</option><option value='AKOLA'>AKOLA</option><option value='ALIBAG'>ALIBAG</option>";
	hotelsrc = hotelsrc + "<option value='ALLAHABAD'>ALLAHABAD</option><option value='ALLEPPEY'>ALLEPPEY</option><option value='ALMORA'>ALMORA</option><option value='ALSISAR'>ALSISAR</option><option value='ALWAR'>ALWAR</option><option value='AMBALA'>AMBALA</option><option value='AMLA'>AMLA</option><option value='AMRITSAR'>AMRITSAR</option><option value='ANAND'>ANAND</option><option value='ANKLESWAR'>ANKLESWAR</option><option value='ARONDA'>ARONDA</option><option value='ASHTAMUDI'>ASHTAMUDI</option><option value='AULI'>AULI</option><option value='AUNDH'>AUNDH</option><option value='AURANGABAD'>AURANGABAD</option><option value='BADAMI'>BADAMI</option><option value='BADDI'>BADDI</option><option value='BADRINATH'>BADRINATH</option><option value='BALASINOR'>BALASINOR</option>";
	hotelsrc = hotelsrc + "<option value='BALRAMPUR'>BALRAMPUR</option><option value='BAMBORA'>BAMBORA</option><option value='BANDHAVGARH'>BANDHAVGARH</option><option value='BANDIPUR'>BANDIPUR</option><option value='BANGALORE'>BANGALORE</option><option value='BARBIL'>BARBIL</option><option value='BAREILY'>BAREILY</option><option value='BARKOT'>BARKOT</option><option value='BARODA'>BARODA</option><option value='BATHINDA'>BATHINDA</option><option value='BEHROR'>BEHROR</option><option value='BELGAUM'>BELGAUM</option><option value='BERHAMPUR'>BERHAMPUR</option><option value='BETALGHAT'>BETALGHAT</option><option value='BHANDARDARA'>BHANDARDARA</option><option value='BHARATPUR'>BHARATPUR</option><option value='BHARUCH'>BHARUCH</option><option value='BHAVANGADH'>BHAVANGADH</option>";
	hotelsrc = hotelsrc + "<option value='BHAVNAGAR'>BHAVNAGAR</option><option value='BHILAI'>BHILAI</option><option value='BHILWARA'>BHILWARA</option><option value='BHIMTAL'>BHIMTAL</option><option value='BHOPAL'>BHOPAL</option><option value='BHUBANESHWAR'>BHUBANESHWAR</option><option value='BHUJ'>BHUJ</option><option value='BIKANER'>BIKANER</option><option value='BINSAR'>BINSAR</option><option value='BODHGAYA'>BODHGAYA</option><option value='BUNDI'>BUNDI</option><option value='CALICUT'>CALICUT</option><option value='CHAIL'>CHAIL</option><option value='CHAMBA'>CHAMBA</option><option value='CHAMUNDA DEVI'>CHAMUNDA DEVI</option><option value='CHANDIGARH'>CHANDIGARH</option><option value='CHENNAI'>CHENNAI</option><option value='CHHOTA UDEPUR'>CHHOTA UDEPUR</option>";
	hotelsrc = hotelsrc + "<option value='CHICKMAGALUR'>CHICKMAGALUR</option><option value='CHIDAMBARAM'>CHIDAMBARAM</option><option value='CHIPLUN'>CHIPLUN</option><option value='CHITRAKOOT'>CHITRAKOOT</option><option value='CHITTORGARH'>CHITTORGARH</option><option value='COIMBATORE'>COIMBATORE</option><option value='COONOOR'>COONOOR</option><option value='COORG'>COORG</option><option value='CORBETT'>CORBETT</option><option value='CUTTACK'>CUTTACK</option><option value='DABHOSA'>DABHOSA</option><option value='DALHOUSIE'>DALHOUSIE</option><option value='DAMAN'>DAMAN</option><option value='DANDELI'>DANDELI</option><option value='DAPOLI'>DAPOLI</option><option value='DARJEELING'>DARJEELING</option><option value='DASADA'>DASADA</option><option value='DAUSA'>DAUSA</option>";
	hotelsrc = hotelsrc + "<option value='DEHRADUN'>DEHRADUN</option><option value='DEOGARH'>DEOGARH</option><option value='DHARAMSHALA'>DHARAMSHALA</option><option value='DISTT. SEONI'>DISTT. SEONI</option><option value='DISTT. UMARIA'>DISTT. UMARIA</option><option value='DHOLPUR'>DHOLPUR</option><option value='DIBRUGARH'>DIBRUGARH</option><option value='DIGHA'>DIGHA</option><option value='DIU'>DIU</option><option value='DIVE AGAR'>DIVE AGAR</option><option value='DOOARS'>DOOARS</option><option value='DUNGARPUR'>DUNGARPUR</option><option value='DURGAPUR'>DURGAPUR</option><option value='DURSHET'>DURSHET</option><option value='DWARKA'>DWARKA</option><option value='FARIDABAD'>FARIDABAD</option><option value='FIROZABAD'>FIROZABAD</option><option value='GANDHIDHAM'>GANDHIDHAM</option>";
	hotelsrc = hotelsrc + "<option value='GANDHINAGAR'>GANDHINAGAR</option><option value='GANGOTRI'>GANGOTRI</option><option value='GANGTOK'>GANGTOK</option><option value='GANPATIPULE'>GANPATIPULE</option><option value='GARHMUKTESHWAR'>GARHMUKTESHWAR</option><option value='GARHWAL'>GARHWAL</option><option value='GAYA'>GAYA</option><option value='GHANERAO'>GHANERAO</option><option value='GHANGARIA'>GHANGARIA</option><option value='GHAZIABAD'>GHAZIABAD</option><option value='GOA'>GOA</option><option value='GOKARNA'>GOKARNA</option><option value='GONDAL'>GONDAL</option><option value='GOPALPUR'>GOPALPUR</option><option value='GORAKHPUR'>GORAKHPUR</option><option value='GULMARG'>GULMARG</option><option value='GURGAON'>GURGAON</option><option value='GURUVAYOOR'>GURUVAYOOR</option>";
	hotelsrc = hotelsrc + "<option value='GUWAHATI'>GUWAHATI</option><option value='GWALIOR'>GWALIOR</option><option value='HALDWANI'>HALDWANI</option><option value='HAMPI'>HAMPI</option><option value='HANSI'>HANSI</option><option value='HARIDWAR'>HARIDWAR</option><option value='HASSAN'>HASSAN</option><option value='HISSAR'>HISSAR</option><option value='HOSPET'>HOSPET</option><option value='HOSUR'>HOSUR</option><option value='HUBLI'>HUBLI</option><option value='HYDERABAD'>HYDERABAD</option><option value='IDUKKI'>IDUKKI</option><option value='IGATPURI'>IGATPURI</option><option value='IMPHAL'>IMPHAL</option><option value='INDORE'>INDORE</option><option value='JABALPUR'>JABALPUR</option><option value='JAGDALPUR'>JAGDALPUR</option><option value='JAIPUR'>JAIPUR</option>";
	hotelsrc = hotelsrc + "<option value='JAISALMER'>JAISALMER</option><option value='JAISAMAND'>JAISAMAND</option><option value='JALANDHAR'>JALANDHAR</option><option value='JALGAON'>JALGAON</option><option value='JAMBUGODHA'>JAMBUGODHA</option><option value='JAMMU'>JAMMU</option><option value='JAMNAGAR'>JAMNAGAR</option><option value='JAMSHEDPUR'>JAMSHEDPUR</option><option value='JHANSI'>JHANSI</option><option value='JODHPUR'>JODHPUR</option><option value='JOJAWAR'>JOJAWAR</option><option value='JORHAT'>JORHAT</option><option value='JOSHIMATH'>JOSHIMATH</option><option value='JUNAGADH'>JUNAGADH</option><option value='KALIMPONG'>KALIMPONG</option><option value='KANAM'>KANAM</option><option value='KANATAL'>KANATAL</option><option value='KANCHIPURAM'>KANCHIPURAM</option>";
	hotelsrc = hotelsrc + "<option value='KANHA'>KANHA</option><option value='KANPUR'>KANPUR</option><option value='KANHA'>KANHA</option><option value='KANNUR'>KANNUR</option><option value='KANPUR'>KANPUR</option><option value='KANYAKUMARI'>KANYAKUMARI</option><option value='KARAULI'>KARAULI</option><option value='KARGIL'>KARGIL</option><option value='KARWAR'>KARWAR</option><option value='KASAULI'>KASAULI</option><option value='KASHID'>KASHID</option><option value='KASHIPUR'>KASHIPUR</option><option value='KATRA'>KATRA</option><option value='KALIMPONG'>KALIMPONG</option><option value='KAUSANI'>KAUSANI</option><option value='KAZA'>KAZA</option><option value='KAZIRANGA'>KAZIRANGA</option><option value='KEDARNATH'>KEDARNATH</option><option value='KHAJURAHO'>KHAJURAHO</option>";
	hotelsrc = hotelsrc + "<option value='KHANDALA'>KHANDALA</option><option value='KHAJIAR'>KHAJIAR</option><option value='KHARAPUR'>KHARAPUR</option><option value='KHEJARLA'>KHEJARLA</option><option value='KHIMSAR'>KHIMSAR</option><option value='KOCHI'>KOCHI</option><option value='KOCHIN'>KOCHIN</option><option value='KODAIKANAL'>KODAIKANAL</option><option value='KOLHAPUR'>KOLHAPUR</option><option value='KOLKATA'>KOLKATA</option><option value='KOLLAM'>KOLLAM</option><option value='KONNI'>KONNI</option><option value='KOSI'>KOSI</option><option value='KOTA'>KOTA</option><option value='KOVALAM'>KOVALAM</option><option value='KOTAGIRI'>KOTAGIRI</option><option value='KOTTAYAM'>KOTTAYAM</option><option value='KOZHIKODE / CALICUT'>KOZHIKODE / CALICUT</option><option value='KULLU'>KULLU</option>";
	hotelsrc = hotelsrc + "<option value='KUMARAKOM'>KUMARAKOM</option><option value='KUMBAKONAM'>KUMBAKONAM</option><option value='KUMBALGARH'>KUMBALGARH</option>';				hotelsrc = hotelsrc + '<option value='KURSEONG'>KURSEONG</option><option value='KURUMBADI'>KURUMBADI</option><option value='KUTCH'>KUTCH</option><option value='KUSHINAGAR'>KUSHINAGAR</option><option value='LACHUNG'>LACHUNG</option><option value='LAKSHADWEEP'>LAKSHADWEEP</option><option value='LEH'>LEH</option><option value='LONAVALA'>LONAVALA</option><option value='LOTHAL'>LOTHAL</option><option value='LUCKNOW'>LUCKNOW</option><option value='LUDHIANA'>LUDHIANA</option><option value='MADURAI'>MADURAI</option><option value='MAHABALESHWAR'>MAHABALESHWAR</option><option value='MAHABALIPURAM'>MAHABALIPURAM</option><option value='MALSHEJ GHAT'>MALSHEJ GHAT</option><option value='MALVAN'>MALVAN</option><option value='MAMALLAPURAM'>MAMALLAPURAM</option>";
	hotelsrc = hotelsrc + "<option value='MANALI'>MANALI</option><option value='MANDAVI'>MANDAVI</option><option value='MANDAWA'>MANDAWA</option><option value='MANDI'>MANDI</option><option value='MANDORMONI'>MANDORMONI</option><option value='MANDU'>MANDU</option><option value='MANESAR'>MANESAR</option><option value='MANGALORE'>MANGALORE</option><option value='MANIPAL'>MANIPAL</option><option value='MANVAR'>MANVAR</option><option value='MARCHULA'>MARCHULA</option><option value='MASHOBRA'>MASHOBRA</option><option value='MATHERAN'>MATHERAN</option><option value='MATHURA'>MATHURA</option><option value='MCLEODGANJ'>MCLEODGANJ</option><option value='MEERUT'>MEERUT</option><option value='MOHALI'>MOHALI</option><option value='MORADABAD'>MORADABAD</option>";
	hotelsrc = hotelsrc + "<option value='MOUNT ABU'>MOUNT ABU</option><option value='MUKTESHWAR'>MUKTESHWAR</option><option value='MUKUNDGARH'>MUKUNDGARH</option><option value='MUMBAI'>MUMBAI / BOMBAY</option><option value='MUNDRA'>MUNDRA</option><option value='MUNNAR'>MUNNAR</option><option value='MURUD'>MURUD</option><option value='MURUD JANJIRA'>MURUD JANJIRA</option><option value='MUSSOORIE'>MUSSOORIE</option><option value='MYSORE'>MYSORE</option><option value='NADUKANI'>NADUKANI</option><option value='NAGAPATTINAM'>NAGAPATTINAM</option><option value='NAGAUR'>NAGAUR</option><option value='NAGARHOLE'>NAGARHOLE</option><option value='NAGAUR FORT'>NAGAUR FORT</option><option value='NAGPUR'>NAGPUR</option><option value='NAINITAL'>NAINITAL</option>";
	hotelsrc = hotelsrc + "<option value='NALAGARH'>NALAGARH</option><option value='NALDEHRA'>NALDEHRA</option><option value='NANDED'>NANDED</option><option value='NAPNE'>NAPNE</option><option value='NARLAI'>NARLAI</option><option value='NASIK'>NASIK</option><option value='NATHDWARA'>NATHDWARA</option><option value='NAUKUCHIYATAL'>NAUKUCHIYATAL</option><option value='NAVI MUMBAI'>NAVI MUMBAI</option><option value='NERAL'>NERAL</option><option value='NEW DELHI'>NEW DELHI</option><option value='NILGIRI'>NILGIRI</option><option value='NOIDA'>NOIDA</option><option value='OOTY'>OOTY</option><option value='ORCHHA'>ORCHHA</option><option value='PACHEWAR'>PACHEWAR</option><option value='PACHMARHI'>PACHMARHI</option><option value='PAHALGAM'>PAHALGAM</option>";
	hotelsrc = hotelsrc + "<option value='PALAKKAD'>PALAKKAD</option><option value='PALAMPUR'>PALAMPUR</option><option value='PALANPUR'>PALANPUR</option><option value='PALI'>PALI</option><option value='PALITANA'>PALITANA</option><option value='PANCHGANI'>PANCHGANI</option><option value='PANCHKULA'>PANCHKULA</option><option value='PANCHMARHI'>PANCHMARHI</option><option value='PANHALA'>PANHALA</option>";
	hotelsrc = hotelsrc + "<option value='PANNA'>PANNA</option><option value='PANTNAGAR'>PANTNAGAR</option><option value='PANVEL'>PANVEL</option><option value='PARADEEP'>PARADEEP</option><option value='PARWANOO'>PARWANOO</option><option value='PATHANKOT'>PATHANKOT</option><option value='PATIALA'>PATIALA</option><option value='PATNA'>PATNA</option><option value='PATNITOP'>PATNITOP</option><option value='PELLING'>PELLING</option><option value='PENCH'>PENCH</option><option value='PERIYAR'>PERIYAR</option><option value='PHAGWARA'>PHAGWARA</option><option value='PHALODI'>PHALODI</option><option value='PINJORE'>PINJORE</option><option value='PONDICHERRY'>PONDICHERRY</option><option value='POOVAR'>POOVAR</option>";
	hotelsrc = hotelsrc + "<option value='PORBANDAR'>PORBANDAR</option><option value='PORT BLAIR'>PORT BLAIR</option><option value='POSHINA'>POSHINA</option><option value='PRAGPUR'>PRAGPUR</option><option value='PUNE'>PUNE</option><option value='PURI'>PURI</option><option value='PUSKHAR'>PUSKHAR</option><option value='PUTTAPURTHY'>PUTTAPURTHY</option><option value='RAIBARELLY'>RAIBARELLY</option><option value='RAICHAK'>RAICHAK</option><option value='RAIPUR'>RAIPUR</option><option value='RAJAMUNDRY'>RAJAMUNDRY</option><option value='RAJASTHAN'>RAJASTHAN</option><option value='RAJGIR'>RAJGIR</option><option value='RAJKOT'>RAJKOT</option><option value='RAJPIPLA'>RAJPIPLA</option><option value='RAJSAMAND'>RAJSAMAND</option>";
	hotelsrc = hotelsrc + "<option value='RAM NAGAR'>RAM NAGAR</option><option value='RAMESHWARAM'>RAMESHWARAM</option><option value='RAMGARH'>RAMGARH</option><option value='RANAKPUR'>RANAKPUR</option><option value='RANCHI'>RANCHI</option><option value='RANIKHET'>RANIKHET</option><option value='RANNY'>RANNY</option><option value='RANTHAMBORE'>RANTHAMBORE</option><option value='RATNAGIRI'>RATNAGIRI</option><option value='RAVANGLA'>RAVANGLA</option><option value='RISHIKESH'>RISHIKESH</option><option value='RISHYAP'>RISHYAP</option><option value='ROHETGARH'>ROHETGARH</option><option value='ROPAR'>ROPAR</option><option value='ROURKELA'>ROURKELA</option><option value='RUDRAPRAYAG'>RUDRAPRAYAG</option><option value='SAJAN'>SAJAN</option>";
	hotelsrc = hotelsrc + "<option value='SALEM'>SALEM</option><option value='SAMODE'>SAMODE</option><option value='SAPUTARA'>SAPUTARA</option><option value='SARISKA'>SARISKA</option><option value='SASAN GIR'>SASAN GIR</option><option value='SATTAL'>SATTAL</option><option value='SAWAI MADHOPUR'>SAWAI MADHOPUR</option><option value='SAWANTWADI'>SAWANTWADI</option><option value='SECUNDERABAD'>SECUNDERABAD</option><option value='SERVICE ISSUE'>SERVICE ISSUE</option><option value='SHEKAVATI'>SHEKAVATI</option><option value='SHILLONG'>SHILLONG</option><option value='SHIMLA'>SHIMLA</option><option value='SHIRDI'>SHIRDI</option><option value='SIANA'>SIANA</option><option value='SILIGURI'>SILIGURI</option>";
	hotelsrc = hotelsrc + "<option value='SILVASSA'>SILVASSA</option><option value='SIVAGANGA DISTRICT'>SIVAGANGA DISTRICT</option><option value='SOLAN'>SOLAN</option><option value='SONAULI'>SONAULI</option><option value='SRAVASTI'>SRAVASTI</option><option value='SRINAGAR'>SRINAGAR</option><option value='STARCRUISE'>STARCRUISE</option><option value='SUNDERBAN'>SUNDERBAN</option><option value='SURAT'>SURAT</option><option value='TAPOLA'>TAPOLA</option><option value='TARAPITH'>TARAPITH</option><option value='THANE'>THANE</option><option value='THANJAVUR'>THANJAVUR</option><option value='THATTEKKAD'>THATTEKKAD</option><option value='THEKKADY'>THEKKADY</option><option value='THIRUVANNAMALAI'>THIRUVANNAMALAI</option>";
	hotelsrc = hotelsrc + "<option value='TIRUCHIRAPALLI'>TIRUCHIRAPALLI</option><option value='THIRUVANANTHAPURAM'>THIRUVANANTHAPURAM</option><option value='TIRUPATI'>TIRUPATI</option><option value='TIRUPUR'>TIRUPUR</option><option value='TRICHUR / THRISSUR'>TRICHUR / THRISSUR</option><option value='UDHAMPUR'>UDHAMPUR</option><option value='UDAIPUR'>UDAIPUR</option><option value='UJJAIN'>UJJAIN</option><option value='VADODARA'>VADODARA</option><option value='VAGAMON'>VAGAMON</option><option value='VALSAD'>VALSAD</option><option value='VAPI'>VAPI</option><option value='VARANASI'>VARANASI</option><option value='VARKALA'>VARKALA</option><option value='VELANKANNI'>VELANKANNI</option><option value='VELLORE'>VELLORE</option><option value='VERAVAL'>VERAVAL</option>";
	hotelsrc = hotelsrc + "<option value='VIJAYAWADA'>VIJAYAWADA</option><option value='VIKRAMGADH'>VIKRAMGADH</option><option value='VILLAGE TIPPI'>VILLAGE TIPPI</option><option value='VISHAKAPATNAM'>VISHAKAPATNAM</option><option value='WANKANER'>WANKANER</option><option value='WAYANAD'>WAYANAD</option><option value='WEST KEMENG'>WEST KEMENG</option><option value='YAMUNOTRI'>YAMUNOTRI</option><option value='YERCAUD'>YERCAUD</option><option value='YUKSOM'>YUKSOM</option></select></td></tr>";
	hotelsrc = hotelsrc + "<tr><td height='25' align='left' class='L1' style='font-size:11px;'>Check-in </td><td height='25' align='center' class='L1'>:</td><td width='83' height='25' align='left' class='L1'><input class='L11' size='13' type='text' name='checkin_date' onFocus=this.blur() id='checkin_date' value='"+check_In+"' />";
	hotelsrc = hotelsrc + "</td><td width='64' height='25' align='left' class='L1' style='font-size:11px;'>Check-out </td><td width='5' height='25' align='center' class='L1'>:</td><td width='85' height='25' align='left' class='L1'><input type='text' size='13' class='L11' onFocus=this.blur() name='checkout_date' id='checkout_date' value='"+check_Out+"' /> </td></tr>";
	hotelsrc = hotelsrc + "<tr><td height='25' align='left' class='L1' style='font-size:11px;'>Room(s)</td><td height='25' align='center' class='L1'>:</td><td width='83' height='25' align='left' class='L1'><select size='1' tabindex='2' name='strRooms' onChange=javascript:changeRows() class='L11' ><option value='1' SELECTED>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option></select></td><td width='64' height='25' align='left' class='L1' style='font-size:11px;'>Hotel Class</td><td width='5' height='25' align='center' class='L1'>:</td><td width='85' height='25' align='left' class='L1'><select Class='L11' tabindex='3' name='hotelPreference'><option value='0' >Show all</option><option value='5' >5* or more</option><option value='4'>4* or more</option><option value='3'>3* or more </option><option value='2'>2* or more</option></select></td></tr>";
	hotelsrc = hotelsrc + "<tr valign='top'><td height='140' width='340' colspan='6' align='center' class='L1' ><table width='340' border='0' cellspacing='0' cellpadding='0'><tr><td width='60' class='L1'><table width='60' align='center' border='0'><tr><td class='L1' align='center' valign='bottom'></td></tr></table></td><td width='65' class='L1'><table width='65' align='center' border='0'><tr><td class='L1' align='center' valign='bottom' style='font-size:11px;'>Adult(s)<br>(12+)</td></tr></table></td><td width='65' class='L1'><table width='65' align='center' border='0'><tr><td class='L1' align='center' style='font-size:11px;'>Children<br>(0-12)</td></tr></table></td><td width='65' align='center' ><table width='65' align='center' border='0'><tr><td align='center' id='chld1' nowrap class='L1'>Child 1<br />(Age)</td></tr></table></td>";
	hotelsrc = hotelsrc + "<td width='65' align='center' ><table width='65' align='center' border='0'><tr><td align='center' id='chld2' nowrap class='L1'>Child 2<br />(Age)</td></tr></table></td></tr><tr id='row1' ><td height='25' align='center' nowrap class='L1' style='font-size:11px;'>Room 1</td><td height='25' align='center'><select class='L11' tabindex='4' size='1' name='strAdultsRoom1'><option value='1' checked>1</option><option value='2'>2</option><option value='3'>3</option></select></td><td height='25' align='center'><select size='1' tabindex='5' class='L11' onChange=javascript:showRoomsChildren1() name='strChildrenRoom1' ><option value='0' checked>0</option><option value='1'>1</option><option value='2'>2</option></select></td><td align='center' ><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'>";
	hotelsrc = hotelsrc + "<tr><td align='center'  id='child11' width='50%'><select size='1' name='strAgeChild1Room1' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td><td align='center' ><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'><tr><td align='center'  id='child12' ><select size='1' name='strAgeChild2Room1' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option>";																
												
	hotelsrc = hotelsrc + "<option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td></tr><tr id='row2'><td height='25' align='center' nowrap class='L1' style='font-size:11px;'>Room 2</td><td height='25' align='center'><select size='1' name='strAdultsRoom2' class='L11'><option value='1' checked>1</option><option value='2'>2</option><option value='3'>3</option></select></td><td height='25' align='center'><select size='1' class='L11' onChange=javascript:showRoomsChildren2() name='strChildrenRoom2' ><option value='0' checked>0</option><option value='1'>1</option><option value='2'>2</option></select></td><td align='center' ><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'>";
	hotelsrc = hotelsrc + "<tr><td align='center'  id='child21' ><select size='1' name='strAgeChild1Room2' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td><td align='center' ><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'><tr><td align='center' id='child22' ><select size='1' name='strAgeChild2Room2' class='L11'><option value='-1'>--</option><option value='0'><1</option>";
	hotelsrc = hotelsrc + "<option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td></tr><tr id='row3'><td height='25' align='center' nowrap class='L1' style='font-size:11px;'>Room 3</td><td height='25' align='center'><select size='1' name='strAdultsRoom3' class='L11'><option value='1' checked>1</option><option value='2'>2</option><option value='3'>3</option></select></td><td height='25' align='center'><select class='L11' size='1' onChange=javascript:showRoomsChildren3(); name='strChildrenRoom3' ><option value='0' checked>0</option>";
	hotelsrc = hotelsrc + "<option value='1'>1</option><option value='2'>2</option></select></td><td align='center' ><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'><tr><td align='center' id='child31' ><select size='1' name='strAgeChild1Room3' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td><td align='center' ><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'>";
	hotelsrc = hotelsrc + "<tr><td align='center' id='child32' ><select size='1' name='strAgeChild2Room3' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td></tr><tr id='row4'><td height='25' align='center' nowrap  class='L1' style='font-size:11px;'>Room 4</td><td height='25' align='center'><select size='1' name='strAdultsRoom4' class='L11'><option value='1' checked>1</option><option value='2'>2</option><option value='3'>3</option></select></td><td height='25' align='center'>";
	hotelsrc = hotelsrc + "<select class='L11' size='1' onChange=javascript:showRoomsChildren4()  name='strChildrenRoom4' ><option value='0' checked>0</option><option value='1'>1</option><option value='2'>2</option></select></td><td align='center'><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'><tr><td align='center' id='child41' ><select size='1' name='strAgeChild1Room4' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td>";
	hotelsrc = hotelsrc + "<td align='center'><table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-collapse:collapse'><tr><td align='center' id='child42' ><select size='1' name='strAgeChild2Room4' class='L11'><option value='-1'>--</option><option value='0'><1</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option></select></td></tr></table></td></tr></table></td></tr>";
	hotelsrc = hotelsrc + "<tr id='hotel_bottom'><td align='center' colspan='7'><img src='images/search-button.gif' width='89' onClick=startsearch() height='22'  /></td></tr></table>";
	//"</td></tr><tr><td><img src='images/bottom.gif' width='369' height='13' /></td></tr>";				
	document.getElementById("hotelsource").innerHTML = hotelsrc;
	
	 Zapatec.Calendar.setup({
         inputField     :    "checkin_date",
         ifFormat       :    "%d-%b-%Y",
         showsTime      :    false,
         timeFormat     :    "24",
         onUpdate       :    catcalc_Hotel,
		 dateStatusFunc :    dateStatusHandler_Hotel,
		 showsTime	   :	false,
		 weekNumbers        :    false,
                  monthsInRow    : 1,
                  numberMonths   :    2
		 
	    });
	    
	    Zapatec.Calendar.setup({
	        inputField     :    "checkout_date",
	        ifFormat       :    "%d-%b-%Y",
	        showsTime      :    false,
	        timeFormat     :    "24",
	        onUpdate       :    catcalc_Hotel_Checkout,
	        dateStatusFunc :    dateStatusHandler_Hotel_Checkout,
			showsTime	   :	false,
			weekNumbers	   :	false,
	        monthsInRow    : 1,
                                 numberMonths   :    2

		});
}


function changeRows()
				{//alert("alert of suraj ");
					
					var count=document.forms[hotelIndex].strRooms[document.forms[hotelIndex].strRooms.selectedIndex].value;
					if(count==1)
					{						
						document.getElementById("row1").style.display="";						
						document.getElementById("row2").style.display="none";						
						document.getElementById("row3").style.display="none";						
						document.getElementById("row4").style.display="none";
						document.getElementById("row1").style.visibility="";	
						document.getElementById("row2").style.visibility="hidden";			
						document.getElementById("row3").style.visibility="hidden";						
						document.getElementById("row4").style.visibility="hidden";					
					}
					else if(count==2)
					{						
						document.getElementById("row1").style.display="";						
						document.getElementById("row2").style.display="";	
						document.getElementById("row3").style.display="none";						
						document.getElementById("row4").style.display="none";
						document.getElementById("row1").style.visibility="";
						document.getElementById("row2").style.visibility="";
						document.getElementById("row3").style.visibility="hidden";						
						document.getElementById("row4").style.visibility="hidden";						
					}
					else if(count==3)
					{						
						document.getElementById("row1").style.display="";						
						document.getElementById("row2").style.display="";						
						document.getElementById("row3").style.display="";						
						document.getElementById("row4").style.display="none";
						document.getElementById("row1").style.visibility="";
						document.getElementById("row2").style.visibility="";
						document.getElementById("row3").style.visibility="";
						document.getElementById("row4").style.visibility="hidden";						
					}
					else if(count==4)
					{						
						document.getElementById("row1").style.display="";						
						document.getElementById("row2").style.display="";						
						document.getElementById("row3").style.display="";						
						document.getElementById("row4").style.display="";
						document.getElementById("row1").style.visibility="";
						document.getElementById("row2").style.visibility="";
						document.getElementById("row3").style.visibility="";
						document.getElementById("row4").style.visibility="";						
					}
				}
		   		
		   		var hotelIndex = 1;//document.forms.length;
					
							
				function showRoomsChildren()
				{					//alert("suraj");	 
						document.getElementById("chld1").style.display="none";										 
						document.getElementById("chld2").style.display="none";						 
						document.getElementById("child11").style.display="none";						 
						document.getElementById("child12").style.display="none";						 
						document.getElementById("child21").style.display="none";						 
						document.getElementById("child22").style.display="none";						 
						document.getElementById("child31").style.display="none";						 
						document.getElementById("child32").style.display="none";						 
						document.getElementById("child41").style.display="none";						 
						document.getElementById("child42").style.display="none";						 
						
						document.getElementById("chld1").style.visibility="hidden";										 
						document.getElementById("chld2").style.visibility="hidden";						 
						document.getElementById("child11").style.visibility="hidden";						 
						document.getElementById("child12").style.visibility="hidden";						 
						document.getElementById("child21").style.visibility="hidden";						 
						document.getElementById("child22").style.visibility="hidden";						 
						document.getElementById("child31").style.visibility="hidden";						 
						document.getElementById("child32").style.visibility="hidden";						 
						document.getElementById("child41").style.visibility="hidden";						 
						document.getElementById("child42").style.visibility="hidden";
				} 
		   	
		   		function showchildHeading()
				{
					var count4=document.forms[hotelIndex].strChildrenRoom4[document.forms[hotelIndex].strChildrenRoom4.selectedIndex].value;
					var count3=document.forms[hotelIndex].strChildrenRoom3[document.forms[hotelIndex].strChildrenRoom3.selectedIndex].value;
					var count2=document.forms[hotelIndex].strChildrenRoom2[document.forms[hotelIndex].strChildrenRoom2.selectedIndex].value;
					var count1=document.forms[hotelIndex].strChildrenRoom1[document.forms[hotelIndex].strChildrenRoom1.selectedIndex].value;
					if((count1==2)||(count2==2)||(count3==2)||(count4==2))
					{						 
						document.getElementById("chld1").style.display="";						 
						document.getElementById("chld2").style.display="";	
						document.getElementById("chld1").style.visibility="";						 
						document.getElementById("chld2").style.visibility="";					 
					}
					else if((count1==1)||(count2==1)||(count3==1)||(count4==1))
					{						 
						document.getElementById("chld1").style.display="";						 
						document.getElementById("chld2").style.display="none";	
						document.getElementById("chld1").style.visibility="";						 
						document.getElementById("chld2").style.visibility="hidden";	
					}
					else if((count1==0)||(count2==0)||(count3==0)||(count4==0))
					{						 
						document.getElementById("chld1").style.display="none";						 
						document.getElementById("chld2").style.display="none";	
						document.getElementById("chld1").style.visibility="hidden";						 
						document.getElementById("chld2").style.visibility="hidden";	
					}
				}		
						
				function showRoomsChildren1()
				{
					var count1=document.forms[hotelIndex].strChildrenRoom1[document.forms[hotelIndex].strChildrenRoom1.selectedIndex].value;
					var countadult1=document.forms[hotelIndex].strAdultsRoom1[document.forms[hotelIndex].strAdultsRoom1.selectedIndex].value;		
					showchildHeading();	
					if(count1==0)
					{			 
						document.getElementById("child11").style.display="none";						 
						document.getElementById("child12").style.display="none";						 
						document.getElementById("child11").style.visibility="hidden";						 
						document.getElementById("child12").style.visibility="hidden";
						//document.getElementById("child12single").style.display="none";						 
						//document.getElementById("child12single").style.visibility="hidden";
						document.forms[hotelIndex].strAgeChild1Room1.value="-1"											
						document.forms[hotelIndex].strAgeChild2Room1.value="-1"
						
					}
					else if(count1==1)
					{ 
						document.getElementById("child11").style.display="";						 
						document.getElementById("child12").style.display="none";
						document.getElementById("child11").style.visibility="";						 
						document.getElementById("child12").style.visibility="hidden";
						//document.getElementById("child12single").style.display="";						 
						//document.getElementById("child12single").style.visibility="";
						document.forms[hotelIndex].strAgeChild2Room1.value="-1"					 
					}
					else if(count1==2)
					{					 
						document.getElementById("child11").style.display="";						 
						document.getElementById("child12").style.display="";
						document.getElementById("child11").style.visibility="";						 
						document.getElementById("child12").style.visibility="";
						//document.getElementById("child12single").style.display="none";						 
						//document.getElementById("child12single").style.visibility="hidden";
					}
										
				}	
				
				function showRoomsChildren2()
				{
					var count2=document.forms[hotelIndex].strChildrenRoom2[document.forms[hotelIndex].strChildrenRoom2.selectedIndex].value;
					showchildHeading();
					//alert("count2 "+count2);
				    if(count2==0)
					{					 
						document.getElementById("child21").style.display="none";					 
						document.getElementById("child22").style.display="none";						 
						document.getElementById("child21").style.visibility="hidden";					 
						document.getElementById("child22").style.visibility="hidden";
						//document.getElementById("child22single").style.display="none";						 
						//document.getElementById("child22single").style.visibility="hidden";
						document.forms[hotelIndex].strAgeChild1Room2.value="-1"											
						document.forms[hotelIndex].strAgeChild2Room2.value="-1" 
					}
					else if(count2==1)
					{			 
						document.getElementById("child21").style.display="";					 
						document.getElementById("child22").style.display="none";						 
						document.getElementById("child21").style.visibility="";					 
						document.getElementById("child22").style.visibility="hidden";
						//document.getElementById("child22single").style.display="";						 
						//document.getElementById("child22single").style.visibility="";
						document.forms[hotelIndex].strAgeChild2Room2.value="-1"					
					}
					else if(count2==2)
					{			 
						document.getElementById("child21").style.display="";					 
						document.getElementById("child22").style.display="";						 
						document.getElementById("child21").style.visibility="";					 
						document.getElementById("child22").style.visibility="";	
						//document.getElementById("child22single").style.display="none";						 
						//document.getElementById("child22single").style.visibility="hidden";					
					}
										
				}
								
				function showRoomsChildren3()
				{					
					var count3=document.forms[hotelIndex].strChildrenRoom3[document.forms[hotelIndex].strChildrenRoom3.selectedIndex].value;
					showchildHeading();
					if(count3==0)
					{						 
						document.getElementById("child31").style.display="none";						 
						document.getElementById("child32").style.display="none";						 
						document.getElementById("child31").style.visibility="hidden";						 
						document.getElementById("child32").style.visibility="hidden"; 
						//document.getElementById("child32single").style.display="none";						 
						//document.getElementById("child32single").style.visibility="hidden";
						document.forms[hotelIndex].strAgeChild1Room3.value="-1"											
						document.forms[hotelIndex].strAgeChild2Room3.value="-1" 		
					}
					else if(count3==1)
					{				 
						document.getElementById("child31").style.display="";						 
						document.getElementById("child32").style.display="none";						 
						document.getElementById("child31").style.visibility="";						 
						document.getElementById("child32").style.visibility="hidden";
						//document.getElementById("child32single").style.display="";						 
						//document.getElementById("child32single").style.visibility="";
						document.forms[hotelIndex].strAgeChild2Room3.value="-1"		
					}
					else if(count3==2)
					{			 
						document.getElementById("child31").style.display="";						 
						document.getElementById("child32").style.display="";						 
						document.getElementById("child31").style.visibility="";						 
						document.getElementById("child32").style.visibility="";
						//document.getElementById("child32single").style.display="none";						 
						//document.getElementById("child32single").style.visibility="hidden";		
					}
										
				}
		   	
		   		function showRoomsChildren4()
				{			
					var count4=document.forms[hotelIndex].strChildrenRoom4[document.forms[hotelIndex].strChildrenRoom4.selectedIndex].value;
					showchildHeading();
					if(count4==0)
					{ 
						document.getElementById("child41").style.display="none";						 
						document.getElementById("child42").style.display="none";						 
						document.getElementById("child41").style.visibility="hidden"						 
						document.getElementById("child42").style.visibility="hidden"
						//document.getElementById("child42single").style.display="none";						 
						//document.getElementById("child42single").style.visibility="hidden";
						document.forms[hotelIndex].strAgeChild1Room4.value="-1"											
						document.forms[hotelIndex].strAgeChild2Room4.value="-1" 					
					}
					else if(count4==1)
					{					
						document.getElementById("child41").style.display="";						 
						document.getElementById("child42").style.display="none";						 
						document.getElementById("child41").style.visibility=""						 
						document.getElementById("child42").style.visibility="hidden" 	
						//document.getElementById("child42single").style.display="";						 
						//document.getElementById("child42single").style.visibility="";
						document.forms[hotelIndex].strAgeChild2Room4.value="-1" 										
					}
					else if(count4==2)
					{		 
						document.getElementById("child41").style.display="";						 
						document.getElementById("child42").style.display="";						 
						document.getElementById("child41").style.visibility=""						 
						document.getElementById("child42").style.visibility="" 	
						//document.getElementById("child42single").style.display="none";						 
						//document.getElementById("child42single").style.visibility="hidden";					
					}
										
				}
		   	
		   		function startsearch()
				{//alert("ss");
					var count=0;
					var count1=document.forms[hotelIndex].strChildrenRoom1[document.forms[hotelIndex].strChildrenRoom1.selectedIndex].value;
					var countadult1=document.forms[hotelIndex].strAdultsRoom1[document.forms[hotelIndex].strAdultsRoom1.selectedIndex].value;
					count=parseInt(count1)+parseInt(countadult1);
					if(parseInt(count1)>1&&parseInt(countadult1)>2)
					{
						alert("No of passengers can't be more than (2 adults and 2 children) OR (3 adults and 1 children)OR (3 adults)in single room");
						return false;
					}
					//suraj 
					//alert(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value);
					if(parseInt(count1)==1)
					{//alert(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value);
						if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
						{
							alert("Please Select age of child");
							return false;
						}
					}
					if(parseInt(count1)==2)
					{//alert(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value);
						if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
						{
							alert("Please Select age of child");
							return false;
						}
						if(document.forms[hotelIndex].strAgeChild2Room1[document.forms[hotelIndex].strAgeChild2Room1.selectedIndex].value=="-1")
						{
							alert("Please Select age of child");
							return false;
						}
					}//alert(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value);
					//suraj
					var count2=document.forms[hotelIndex].strChildrenRoom2[document.forms[hotelIndex].strChildrenRoom2.selectedIndex].value;
					var countadult2=document.forms[hotelIndex].strAdultsRoom2[document.forms[hotelIndex].strAdultsRoom2.selectedIndex].value
				
					count=parseInt(count2)+parseInt(countadult2);
					if(parseInt(count2)>1&&parseInt(countadult2)>2)
					{
						alert("No of passengers can't be more than (2 adults and 2 children) OR (3 adults and 1 children)OR (3 adults)in single room");
						return false;
					}
					//suraj 
					if(parseInt(document.forms[hotelIndex].strRooms[document.forms[hotelIndex].strRooms.selectedIndex].value)==2)
					{
						if(parseInt(count)<1)
						{
							alert("Please Select atleast one passenger in the Second Row OR Decrease the No. of Rooms");
							return false;
						}
						if(parseInt(count1)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count1)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room1[document.forms[hotelIndex].strAgeChild2Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count2)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count2)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room2[document.forms[hotelIndex].strAgeChild2Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
					}
					//suraj
					
					var count3=document.forms[hotelIndex].strChildrenRoom3[document.forms[hotelIndex].strChildrenRoom3.selectedIndex].value;
					var countadult3=document.forms[hotelIndex].strAdultsRoom3[document.forms[hotelIndex].strAdultsRoom3.selectedIndex].value
				
					count=parseInt(count3)+parseInt(countadult3);
					if(parseInt(count3)>1&&parseInt(countadult3)>2)
					{
						alert("No of passengers can't be more than (2 adults and 2 children) OR (3 adults and 1 children)OR (3 adults)in single room");
						return false;
					}
					if(parseInt(document.forms[hotelIndex].strRooms[document.forms[hotelIndex].strRooms.selectedIndex].value)==3)
					{
						if(parseInt(count)<1)
						{
							alert("Please Select atleast one passenger in each Row OR Decrease the No. of Rooms");
							return false;
						}
						if(parseInt(count1)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count1)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room1[document.forms[hotelIndex].strAgeChild2Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count2)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count2)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room2[document.forms[hotelIndex].strAgeChild2Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count3)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room3[document.forms[hotelIndex].strAgeChild1Room3.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count3)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room3[document.forms[hotelIndex].strAgeChild1Room3.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room3[document.forms[hotelIndex].strAgeChild2Room3.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
					}
					var count4=document.forms[hotelIndex].strChildrenRoom4[document.forms[hotelIndex].strChildrenRoom4.selectedIndex].value;
					var countadult4=document.forms[hotelIndex].strAdultsRoom4[document.forms[hotelIndex].strAdultsRoom4.selectedIndex].value
							
					count=parseInt(count4)+parseInt(countadult4);
					if(parseInt(count4)>1&&parseInt(countadult4)>2)
					{
						alert("No of passengers can't be more than (2 adults and 2 children) OR (3 adults and 1 children)OR (3 adults)in single room");
						return false;
					}
					if(parseInt(document.forms[hotelIndex].strRooms[document.forms[hotelIndex].strRooms.selectedIndex].value)==4)
					{
						if(parseInt(count)<1)
						{
							alert("Please Select atleast one passenger in Each Row OR Decrease the No. of Rooms");
							return false;
						}
						if(parseInt(count1)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count1)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room1[document.forms[hotelIndex].strAgeChild1Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room1[document.forms[hotelIndex].strAgeChild2Room1.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count2)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count2)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room2[document.forms[hotelIndex].strAgeChild2Room2.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count3)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room3[document.forms[hotelIndex].strAgeChild1Room3.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count3)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room3[document.forms[hotelIndex].strAgeChild1Room3.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room3[document.forms[hotelIndex].strAgeChild2Room3.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count4)==1)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room4[document.forms[hotelIndex].strAgeChild1Room4.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
						if(parseInt(count4)==2)
						{//alert(document.forms[hotelIndex].strAgeChild1Room2[document.forms[hotelIndex].strAgeChild1Room2.selectedIndex].value);
							if(document.forms[hotelIndex].strAgeChild1Room4[document.forms[hotelIndex].strAgeChild1Room4.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
							if(document.forms[hotelIndex].strAgeChild2Room4[document.forms[hotelIndex].strAgeChild2Room4.selectedIndex].value=="-1")
							{
								alert("Please Select age of child");
								return false;
							}
						}
					}
					//alert(document.forms[hotelIndex].checkin_date.value)
					var d=document.forms[hotelIndex].checkin_date.value;					
					var r=document.forms[hotelIndex].checkout_date.value;
					var serverDate=document.getElementById("currentdate_hotel").value;//document.forms[hotelIndex].currentdate.value;
					var serdat;
					
					document.getElementById("strcity").value = document.forms[hotelIndex].cityName.value ;
					document.getElementById("strOtherCity").value = document.forms[hotelIndex].cityName.value ;
					document.getElementById("partnerid").value = document.getElementById("partnerid").value;
					var city =  document.getElementById("strcity").value;//document.forms[hotelIndex].strcity.value;
					//alert(document.getElementById("partnerid").value)
					document.forms[hotelIndex].hotelCity.value = city;
					
					if( city == "" )
					{
						alert("Please select city");
						document.forms[hotelIndex].strcity.focus();
						return false;
					}
					
					if(city=="line")
					{
						alert("Select valid city location");
						document.forms[hotelIndex].strcity.focus();
						return false;
					}
					var arr= new Array(12); 
					 arr[0]="Jan";
					 arr[1]="Feb";
					 arr[2]="Mar";
					 arr[3]="Apr";
					 arr[4]="May";
					 arr[5]="Jun";
					 arr[6]="Jul";
					 arr[7]="Aug";
					 arr[8]="Sep";
					 arr[9]="Oct";
					 arr[10]="Nov";
					 arr[11]="Dec";

					arrdepart=d.split("-");
					 mm=arrdepart[1];
					 dd = arrdepart[0];
					 yy=arrdepart[2];
					 arrreturn=r.split("-");
					 mm1=arrreturn[1];
			
					 dd1= arrreturn[0];
					 yy1=arrreturn[2];
					 dd = parseFloat(dd);
					 dd1= parseFloat(dd1);
					
					 document.getElementById("depart1").value=d;
					 document.getElementById("return1").value=r;
					
	 				 serdat=serverDate.split("-");
					 mm2=serdat[1];
					 dd2=serdat[0];
					 yy2=serdat[2];
					
					 var h=serdat[3];
    				 var m=serdat[4];
	    			 var s=serdat[5];
					//alert("8.99");
  		 		    for (var iCharCounter1=0;iCharCounter1<12;iCharCounter1++)
  		 		    {
  		 				  var charVal = arr[iCharCounter1];
  		 				
  		 				  if (charVal==mm)
  		 				 {
  		 				     mm=iCharCounter1+1;
  		 				 }
  		 				 if (charVal==mm1)
  		 				 {
  		 				    mm1=iCharCounter1+1;
  		 			     }
  		 				
  		 	 			if (charVal==mm2)
  		 	 			{
  		 	 			    mm2=iCharCounter1+1;
  		 	 			}                                                                                               
  		  		   }       
					
					
   					var now = new Date();
   					servdate = new Date(yy2,mm2-1,dd2);
	 				tmpDate = new Date(yy,mm-1,dd);
	 				
  	 				var checkdate = new Date(servdate.getTime()+((1000*60*60*24)*1));
  	 				
 	 				if(((mm1==04) || (mm1==02) || (mm1==06) || (mm1==09) || (mm1==11)) && (dd1==31))
  	 				{
	   					alert("Invalid CheckOut Date...");
  	 					return false;
  	 				}
  	 				if((mm1==02) && (dd1==30))
  	 				{
  	  					alert("Invalid CheckOut Date...");
  	 					return false;
  	 				}
	 				
  	 				if(((mm==04) || (mm==02) || (mm==06) || (mm==09) || (mm==11)) && (dd==31))
  	 				{
  	 					alert("Invalid Checkin Date... ");
  	 					return false;
  	 				}
  	 				if((mm==02) && (dd==30))
  	 				{
  	 					alert("Invalid Checkin Date... ");
  	 					return false;
  	 				}
	 				

		 			
 	 	 			if (dd == dd1 && mm == mm1 && yy==yy1)
 	 	 			{
 	 	 				if ((parseInt(h) + 8) >= 24) 
		 				{
		 					alert("Checkin and CheckOut Date can't be same \n Please select another date");
							return false;
						}
					}
					
					
  	  	   		   if(tmpDate < servdate)
  	  	 			 {
  	  	 			 	alert("Check-In Date cannot be before Today's Date");
  	  	 			  	return false;
  	  	 			 }
					
	 	 			
  	  	 	 		tmpDate1 = new Date(yy1,mm1-1,dd1);
	  
  	  	 	 		diffr=tmpDate1.getTime()-tmpDate.getTime();
  	  	 	 		var tempdiff=diffr/86400000;
  		 			
  	  	 	 		if(diffr<=0)
  	  	 	 		{
  	   	 	 			alert("Check-Out Date cannot be before Check-In Date.");
  	 	  	 			return false;
  	 	   	 		}
  	 	  	 		if(tempdiff > 31)
 		 			{
 						alert("Number of booking days should not be more than 30 days");
 						return false;
					}
					
					document.getElementById("strCheckindate").value = dd;
					document.getElementById("strCheckinmonth").value = mm;
					document.getElementById("strCheckinyear").value = yy;
					
					document.getElementById("CheckInDate").value = dd;
					document.getElementById("CheckInMonth").value = mm;
					document.getElementById("CheckInYear").value = yy;

		            document.getElementById("strCheckoutdate").value = dd1;
					document.getElementById("strCheckoutmonth").value = mm1;
					document.getElementById("strCheckoutyear").value = yy1;
					
		            document.getElementById("CheckOutDate").value = dd1;
					document.getElementById("CheckOutMonth").value = mm1;
					document.getElementById("CheckOutYear").value = yy1;					
					
					
            		//document.getElementById("check_Inhotel").value = document.forms[hotelIndex].checkin_date.value;
			//document.getElementById("check_Outhotel").value = document.forms[hotelIndex].checkout_date.value;	
                        document.forms[hotelIndex].check_Inhotel.value = document.forms[hotelIndex].checkin_date.value;
			document.forms[hotelIndex].check_Outhotel.value = document.forms[hotelIndex].checkout_date.value;

					document.getElementById("no_ofrooms").value = document.forms[hotelIndex].strRooms.value;
					document.getElementById("str_AdultsRoom1").value = document.forms[hotelIndex].strAdultsRoom1.value;	
					document.getElementById("str_ChildrenRoom1").value = document.forms[hotelIndex].strChildrenRoom1.value;
					document.getElementById("str_AgeChild1Room1").value = document.forms[hotelIndex].strAgeChild1Room1.value;	
					document.getElementById("str_AgeChild2Room1").value = document.forms[hotelIndex].strAgeChild2Room1.value;
					document.getElementById("str_AdultsRoom2").value = document.forms[hotelIndex].strAdultsRoom2.value;	
					document.getElementById("str_ChildrenRoom2").value = document.forms[hotelIndex].strChildrenRoom2.value;
					document.getElementById("str_AgeChild1Room2").value = document.forms[hotelIndex].strAgeChild1Room2.value;	
					document.getElementById("str_AgeChild2Room2").value = document.forms[hotelIndex].strAgeChild2Room2.value;
					document.getElementById("str_AdultsRoom3").value = document.forms[hotelIndex].strAdultsRoom3.value;	
					document.getElementById("str_ChildrenRoom3").value = document.forms[hotelIndex].strChildrenRoom3.value;
					document.getElementById("str_AgeChild1Room3").value = document.forms[hotelIndex].strAgeChild1Room3.value;	
					document.getElementById("str_AgeChild2Room3").value = document.forms[hotelIndex].strAgeChild2Room3.value;
					document.getElementById("str_AdultsRoom4").value = document.forms[hotelIndex].strAdultsRoom4.value;	
					
					document.getElementById("str_ChildrenRoom4").value = document.forms[hotelIndex].strChildrenRoom4.value;
					document.getElementById("str_AgeChild1Room4").value = document.forms[hotelIndex].strAgeChild1Room4.value;	
					document.getElementById("str_AgeChild2Room4").value = document.forms[hotelIndex].strAgeChild2Room4.value;
					document.getElementById("c_urrency").value = document.forms[hotelIndex].currency.value;
            		
					
				  	window.document.forms[hotelIndex].action= "http://www.arzoo.com/hotel/HotelSearchProgress.do";//"http://172.16.100.54:8080/HotelWebClient_new//HotelSearchProgress.do";
				 	
					window.document.forms[hotelIndex].submit();
				}

