function submitFormCountySearch(frm){
	var stateCode = DWRUtil.getValue('stateSelect');
	var countyId = DWRUtil.getValue('countySelect');
	var cityName = DWRUtil.getValue('cityName');
	if(stateCode != 'Select' && cityName != '' )
	{
		frm.action = "/guest/search.rb?stateCode=" + stateCode + "&city=" + cityName + "&searchByCountyOrCity";
		return true;	
	} else if(stateCode != 'Select' && countyId != 'Select') {
		frm.action = "/guest/search.rb?stateCode=" + stateCode + "&countyId=" + countyId + "&searchByCountyOrCity";
		return true;
	} else 
		alert("Either State & County or State & city should be specified");
	return false;	
}

function checkZipcode(elmZip){
	if(validateZip(elmZip.value))
		return true;
	else{
		alert("Specify a valid zip code");
		elmZip.focus();
		return false;
	}
}

function validatePropertyId(elmPropId){	
	var propId = trim(elmPropId.value);
	if(propId != "" && !isNaN(propId))		
		return true;	
	else{
		alert("Property Id should be numeric");
		elmPropId.focus();
	}
				
	return false;		
}