function checkTeaser() {
	
	var adults = document.getElementById("adults").selectedIndex;
	var hotelid = '';
	var message = '';
	var hotel = '';
	var belink = 'https://www.reservations-page.com/c00246/';
	var bool = true;
	if(document.getElementById("hotel")) {
		var hotel = document.getElementById("hotel");
		var hotelindex = hotel.selectedIndex;
		var checkin = document.getElementById("arriveDate").selectedIndex;
		var checkout = document.getElementById("departDate").selectedIndex;
		var numnights = '1';
		bool = doChecks2(checkin,checkout);
		if(hotelindex == '0' || hotelindex == 'undefined') {
			bool = false;
			message = 'Please Select a Hotel';
		}
		hotelid = hotel.value;
	}
	else {
		var checkin = document.getElementById("checkindd").selectedIndex;	
		var numnights = document.getElementById("nightstay").selectedIndex;
		hotelid = document.getElementById("hotelid").value;
		bool = doChecks(checkin,numnights,adults);
	}
	belink = belink + "h0" + hotelid + "/be.ashx";
	if(bool == false && message=='') {
		window.location = belink;		
	}
	else if(message != '') {
		alert(message);
	}
	return bool;
}

function doChecks(checkin,numnights,adults) {
	if((checkin == '0' || checkin == 'undefined') || (numnights == '0' || numnights == 'undefined') || (adults == '0' || adults == 'undefined')) {
			return false;
	}
	else {return true;}
}
function doChecks2(checkin,checkout) {
	if((checkin == '0' || checkin == 'undefined') || (checkout == '0' || checkout == 'undefined')) {
			return false;
	}
	else {return true;}
}