

function citySelect(state,sess){

var statevar = document.getElementById('cityselect');
//alert('teststatevarcalled');
new Ajax('http://www.holidaytouch.com/scripts/city_select.php?state='+state+'&sessName='+sess, {method:'get',update: $('cityselect')}).request();
}

function newMap(state,city,zip,radius,facilityname,communities,indie_living,respite,cottages,garages,advanced,sess,rpp){
//alert(state,city,zip,radius,facilityname,communities,indie_living,respite,cottages,garages,advanced,sess);
 new Ajax('http://www.holidaytouch.com/scripts/generate_list.php?state='+state+'&city='+city+'&zip='+zip+'&radius='+radius+'&facilityname='+facilityname+'&communities='+communities+'&indie_living='+indie_living+'&respite='+respite+'&cottages='+cottages+'&garages='+garages+'&advanced='+advanced+'&sessName='+$('sessName').value+'&rpp='+rpp,{evalScripts:true,async:true,method:'get',update: $('resultsMain')}).request();

}
function newCountryMap(country){
 //alert('under construction');
 new Ajax('http://www.holidaytouch.com/scripts/generate_list.php?country='+country,{evalScripts:true,async:true,method:'get',update: $('resultsMain')}).request();

}



function showhide(layer_ref,state) {
//alert(layer_ref+state);
	
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
	eval( "document.all." + layer_ref + ".style.visibility = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
	document.layers[layer_ref].visibility = state;
	}
	if (document.getElementById && !document.all) {
	maxwell_smart = document.getElementById(layer_ref);
	maxwell_smart.style.visibility = state;
	}

}
