var xmlHttp;
var loaded = {
	success : stateChanged
}

function stateChanged(o){
	document.getElementById(xmlHttp.div).innerHTML=o.responseText;
}

function loadPage(url, div){
	$(div).innerHTML = "<p align='center'>LOADING</p>";
	xmlHttp = YAHOO.util.Connect.asyncRequest('GET',url,loaded, null);
	xmlHttp.div = div;
}

function newVerify(){
	loadPage('core_verify.php', 'verify_div');	
}

function updateCarOptions(){
	if($('car_dropdown').value == "Other")
		$('car_other').style.display = "inline";
	else
		$('car_other').style.display = "none";
}

function checkForHolidayType(){
	if($('holidayTypeSelector').value == "NULL"){
		alert("Please tell us which type of holiday you are interested in");
		return false;
	} else {
		return true;
	}
}