﻿

function BookHotel(){
	
	

var fmonth = getObj("arrivalMonthYear").value.substring(4,6);
        fmonth=parseFloat(fmonth)+1;
var fyear = getObj("arrivalMonthYear").value.substring(0,4);
        var tmonth = getObj("departureMonthYear").value.substring(4,6);
		tmonth=parseFloat(tmonth)+1;
		var tyear = getObj("departureMonthYear").value.substring(0,4);

		 
    
		
		
		
		 iRet = window.open("http://www.choicehotels.ca/rooms/CN922?srp=RACK&checkin="+getObj("arrivalDay").value+"-"+fmonth+"-"+fyear+"&checkout="+getObj("departureDay").value+"-"+tmonth+"-"+tyear);
		/* "&entry_source=&brandCode=DI%2CHJ%2CKG%2CRA%2CSE%2CTL%2CBH%2CMT"+
		"&checkInDate="+ fmonth +"/"+getObj("arrivalDay").value+
		"&checkOutDate="+ tmonth +"/"+getObj("departureDay").value+
		"&numberRooms=1"+getObj("txtrooms").value
		"&numberAdults="+getObj("nadult").value+
		"&numberBigChildren="+getObj("nchild").value+
		"&numberChildren=0"+
		"&useWRPoints=false"+
	    "&rate="+getObj("srp").value+
		"&__rate=SRB&promotionCode=&corporateCode=&cid=&affilid=&partnerid=&iataNumber="+
		"&areaCode=101J&searchWithinMiles=50&areaType=1&destination=Bonnyville&state=AB&country=CA&id=23355&propBrandId=DI&tab=tab2&resetCheckAvailMod=true" );
		*/
		
		
		

}

function setMenu(menuId)
{
	document.getElementById(menuId).id="current";
}


