// JavaScript Document

function validateMe(){
var checkinday = document.quicksearch.checkinday[document.quicksearch.checkinday.selectedIndex].value;
var checkinmonth = document.quicksearch.checkinmonth[document.quicksearch.checkinmonth.selectedIndex].value;
var checkinyear = document.quicksearch.checkinyear[document.quicksearch.checkinyear.selectedIndex].value;
var checkoutday = document.quicksearch.checkoutday[document.quicksearch.checkoutday.selectedIndex].value;
var checkoutmonth = document.quicksearch.checkoutmonth[document.quicksearch.checkoutmonth.selectedIndex].value;
var checkoutyear = document.quicksearch.checkoutyear[document.quicksearch.checkoutyear.selectedIndex].value;
document.quicksearch.checkindate.value=checkinmonth + '/' + checkinday + '/' + checkinyear
document.quicksearch.checkoutdate.value=checkoutmonth + '/' + checkoutday + '/' + checkoutyear
return true
}



function addDays(myDate,days) {
var da = new Date(myDate.getTime() +  days*24*60*60*1000)
	if (da.getYear() < 2000){    
			document.quicksearch.checkinyear[(da.getYear() + 1900 - 2004)].selected = true;
			document.quicksearch.checkinday[(da.getDate()-1)].selected = true;
			document.quicksearch.checkinmonth[(da.getMonth())].selected = true;
	}else {
			document.quicksearch.checkinyear[da.getYear() - 2004].selected = true;
			document.quicksearch.checkinday[(da.getDate() - 1)].selected = true;
			document.quicksearch.checkinmonth[(da.getMonth())].selected = true;
	}
}
addDays(new Date(),14);

function addoutDays(myDate,days) {
var da = new Date(myDate.getTime() +  days*24*60*60*1000)
	if (da.getYear() < 2000){    
			document.quicksearch.checkoutyear[(da.getYear() + 1900 - 2004)].selected = true;
			document.quicksearch.checkoutday[(da.getDate()-1)].selected = true;
			document.quicksearch.checkoutmonth[(da.getMonth())].selected = true;
	}else {
			document.quicksearch.checkoutyear[da.getYear() - 2004].selected = true;
			document.quicksearch.checkoutday[(da.getDate() - 1)].selected = true;
			document.quicksearch.checkoutmonth[(da.getMonth())].selected = true;
	}
}
addoutDays(new Date(),17);
