﻿

function BookHotel(){

var fmonth = getObj("arrivalMonthYear").value.substring(4,6);
        var tmonth = getObj("departureMonthYear").value.substring(4,6);
        if (fmonth.substring(0,1) == "0"){
			
            fmonth = fmonth.substring(1,2);
			fmonth = parseInt(fmonth)+1;
         }
        if (tmonth.substring(0,1) == "0"){
           tmonth = tmonth.substring(1,2);
		   tmonth = parseInt(tmonth)+1;
         }
		 
    


		
		 iRet = window.open("http://www.daysinn.com/DaysInn/control/Booking/check_avail?advancedSearch=false&entry_source=&brandCode=DI%2CHJ%2CKG%2CRA%2CSE%2CTL%2CBH%2CMT"+
	
		"&checkInDate="+ fmonth +"/"+getObj("arrivalDay").value+
		"&checkOutDate="+ tmonth +"/"+getObj("departureDay").value+
		"&numberChildren="+getObj("nchild1").value+
		"&numberBigChildren="+getObj("nchild").value+
		"&numberAdults="+getObj("nadult").value+
		"&numberRooms="+getObj("nrooms").value+
		"&useWRPoints=false&rate=000&__rate=SRB&promotionCode=&corporateCode=&cid=&affilid=&partnerid=&iataNumber=&areaCode="+
"101J&searchWithinMiles=50&areaType=1&destination=Reno&state=NV&country=US&id=36869&propBrandId="+
"DI&tab=tab2&resetCheckAvailMod=true" );
		
		
		
		

}

function setMenu(menuId)
{
	document.getElementById(menuId).id="current";
}


