<!--
<!-- Begin Scripts -->

//jsf_FillSearchCity();

function jsf_FillSearchCity(mform) {
	var arrCity;
	var strCity;
	var strACity;
	var sep = "~";
	var sep2 = ">";
//	alert (mform);
	mform.SearchCity.length = 1;
	
	strCity = new String(mform.CitySource.value);
//	alert(mform.SearchState.options[mform.SearchState.selectedIndex].value);
	
	if (mform.SearchState.options.selectedIndex != 0){
		arrCity = new Array();
		arrCity = strCity.split(sep);
		for (var i = 0; i <= arrCity.length; i++)
		{
			var arrACity = new Array();
			strACity = new String(arrCity[i]);
			arrACity = strACity.split(sep2);
			if (arrACity[0] == mform.SearchState.options[mform.SearchState.selectedIndex].value) {
				mform.SearchCity.options[mform.SearchCity.options.length] = new Option(arrACity[1]);
			}
		}
	}
}


	site = "http://www.PluggedInns.com"; // Do not include the final "/"
	function combineMenus(frm, state, city) {
	with (frm) {
	state = SearchState.options[SearchState.selectedIndex].value;
	city = SearchCity.options[SearchCity.selectedIndex].text;
	url = site + "/" + state + "/" + city + ".asp";
	//alert("New page would be: "+url);
	// uncomment this next line to make it work (and comment the alert)
	window.location.href = url;
   }
}
//  <!-- End Scripts -->
// -->
