function setdate(){
	var now = new Date();
	var aDay = 24*60*60*1000;
	var dayofweek = now.getDay();
	var time = now.getHours();
	var checkin;
	var friday = 5; var saturday = 6;

	if(dayofweek == friday && time >= 12)	checkin = 7;
	else if (dayofweek == saturday)		checkin = 6;
	else checkin = friday - dayofweek;

	var checkout = checkin + 2;
	thisForm = document.mainForm;
	var checkinDate = new Date(now.getTime() + checkin * aDay);
	var checkoutDate = new Date(now.getTime() + checkout * aDay);
	thisForm.arrivalMonth.options[checkinDate.getMonth()+1].selected = true;
	thisForm.departureMonth.options[checkoutDate.getMonth()+1].selected = true;
	thisForm.arrivalDay.options[checkinDate.getDate()].selected = true;
	thisForm.departureDay.options[checkoutDate.getDate()].selected = true;
}

