onload = prepare;

function prepare() {
	if (vform = document.formSearch) {
		var nextDate = new Date();
		nextDate.setDate(nextDate.getDate() + 21);
		toDay = nextDate.getDate();
		toMon = nextDate.getMonth() + 1;
		toYea = nextDate.getYear();
		for (i = 0; i < vform.chinmonth.length; i++) {
			if (vform.chinmonth.options[i].value == toMon) vform.chinmonth.options[i].selected = true;
		}
		for (i = 0; i < vform.chinday.length; i++) {
			if (vform.chinday.options[i].value == toDay) vform.chinday.options[i].selected = true;
		}
		for (i = 0; i < vform.chinyear.length; i++) {
			if (vform.chinyear.options[i].value == toYea) vform.chinyear.options[i].selected = true;
		}
		vform.action = "http://www.dhr.com/search.php";
	}
}

function openPage(page) {
	if (page == "customer_care") {
		document.location = "http://www.dhr.com/links.php?what=customercare";
	}
	if (page == "contact_us") {
		document.location = "http://www.dhr.com/links.php?what=contactus";
	}
	if (page == "all_hotels") {
		document.location = "http://athens.dhr.com";
	}
}

