function popMLS(theURL,winName,features) { 
	 window.open(theURL,winName,features);
}
function goUrl(){
	try{
		window.location.href = "?status="+document.getElementById("status").value+"&city="+document.getElementById("city").value+"&state="+document.getElementById("state").value+"&tab="+document.getElementById("tab").value;
	}catch(e){
		window.location.href = "?status="+document.getElementById("status").value+"&city="+document.getElementById("city").value+"&state="+document.getElementById("state").value;
	}
}
function updateState(obj){
	var myvalue = obj.options[obj.options.selectedIndex].text;
	if(myvalue!="All"){
		//alert("true");
		document.getElementById("state").value = myvalue.substr(0,2);
		document.getElementById("city").value = myvalue.substr(4, myvalue.length);
	}else{
		//alert("false");
		document.getElementById("state").value = "";
		document.getElementById("city").value = "";
	}
}
