
var arrOnLoad=new Array();

function pageInit(){
	if(arrOnLoad.length > 0)
	{
		for(functionsCall=0;functionsCall<arrOnLoad.length;functionsCall++){
			eval(arrOnLoad[functionsCall]);
		}
	}
}

function setTomorrowDate(){
	
	if(document.getElementById("month") && document.getElementById("day")){
	//creating a new date object - extracting current date and month from this.
	var date = new Date();
	//add a day to the date
	date.setDate(date.getDate() + 1);
	var currentmonth = date.getMonth();
	var currentdate  = date.getDate();
	var currentyear = date.getFullYear();

	// Mapping the CurrentMonth and Currentdate to the Checkin Month & Day Dropdowns.
	document.getElementById("month").selectedIndex=currentmonth;

	// Commented below in order to change checkIn and checkOut dates to tomorrow and day after tomm.
	document.getElementById("day").selectedIndex=currentdate-1;

	
	// Calling the changecheckoutdate function to set the Checkout date as one date after the checkin date.
	
	}
}

if(arrOnLoad){
	arrOnLoad.push("setTomorrowDate()");	
}