
    

	var calendar = new Date();

	function populateArrival(objForm,selectIndex) 
	{
	    timeA = new Date(objForm.arrivalYear.options[objForm.arrivalYear.selectedIndex].text, objForm.arrivalMonth.options[objForm.arrivalMonth.selectedIndex+1].value,1);
	    timeDifference = timeA - 86400000;
	    timeB = new Date(timeDifference);
	    var daysInMonth = timeB.getDate();
	    for (var i = 0; i < objForm.arrivalDay.length; i++)
		{objForm.arrivalDay.options[0] = null;}
	    for (var i = 0; i < daysInMonth; i++) 
		{objForm.arrivalDay.options[i] = new Option(i+1);}
	    document.frm_Search.arrivalDay.options[0].selected = true;
	}

	function populateDeparture(objForm,selectIndex) 
	{
	    timeA = new Date(objForm.departureYear.options[objForm.departureYear.selectedIndex].text, objForm.departureMonth.options[objForm.departureMonth.selectedIndex+1].value,1);
	    timeDifference = timeA - 86400000;
	    timeB = new Date(timeDifference);
	    var daysInMonth = timeB.getDate();
	    for (var i = 0; i < objForm.departureDay.length; i++)
		{objForm.departureDay.options[0] = null;}
	    for (var i = 0; i < daysInMonth; i++) 
		{objForm.departureDay.options[i] = new Option(i+1);}
	    document.frm_Search.departureDay.options[0].selected = true;
	}

	function getYears() 
	{
	    // You can easily customize what years can be used
	    var years = new Array(calendar, calendar+1)

	    for (var i = 0; i < document.frm_Search.arrivalYear.length; i++) 
		{document.frm_Search.arrivalYear.options[0] = null;}
	    timeC = new Date();
	    currYear = timeC.getFullYear();
	    for (var i = 0; i < years.length; i++) 
		{document.frm_Search.arrivalYear.options[i] = new Option(years[i]);}
	    document.frm_Search.arrivalYear.options[2].selected=true;

	    for (var i = 0; i < document.frm_Search.departureYear.length; i++) 
		{document.frm_Search.departureYear.options[0] = null;}
	    timeC = new Date();
	    currYear = timeC.getFullYear();
	    for (var i = 0; i < years.length; i++) 
		{document.frm_Search.departureYear.options[i] = new Option(years[i]);}
	    document.frm_Search.departureYear.options[2].selected=true;

	}
	window.onLoad = getYears;
	//  End -->
 


function swapImage(imgPath){
	 document.hotelImage.src=imgPath;
	 imgCurrent = imgPath;
}













