// JavaScript Document
// Setup Today's Date

	function fnToday()
	{
		var strDate = new Date();
		window.document.ResSearch.CIMonth.value=strDate.getMonth()+parseInt(1);
		window.document.ResSearch.CIDate.value=strDate.getDate();
		window.document.ResSearch.CIYear.value=strDate.getYear();
	}

	function fnSubmit()
	{
		var strMonth = parseInt(window.document.ResSearch.CIMonth.options[window.document.ResSearch.CIMonth.options.selectedIndex].value,10);
		var strDate = window.document.ResSearch.CIDate.options[window.document.ResSearch.CIDate.options.selectedIndex].value;
		var strYear = window.document.ResSearch.CIYear.options[window.document.ResSearch.CIYear.options.selectedIndex].value;
		window.document.ResSearch.arrive.value=strMonth+"/"+strDate+"/"+strYear;

		var  night = parseInt(window.document.ResSearch.Nights.options[window.document.ResSearch.Nights.options.selectedIndex].value);

		var check_In=new Date();
		check_In=new Date(strMonth+"/"+strDate+"/"+strYear);
		var strCurrentDate = new Date();
		if(check_In<strCurrentDate)
		{
			alert("Check-In Date cannot be passed date.");
			window.document.ResSearch.CIDate.focus();
			return false;
		}
	}

