function validate_search()
{
	if(isNaN(document.getElementById('Rent').value))
	{
		     alert("ERROR: Only Numbers are allowed in rent field");
			 document.getElementById('Rent').focus();
			 return false;
	}
	else
	{
		document.getElementById('Rent').value = TrimString(document.getElementById('Rent').value)
		document.Frm_search.submit()
	}
}

function changeVal(objId1, objId2)
{var ind, val
	ind = document.getElementById(objId1).selectedIndex;
	val =document.getElementById(objId1).options[ind].value;
	if(val!="Any")
	{
		document.getElementById(objId2).value = "Any"
		//alert(document.getElementById(objId2).value)
	}
}

function TrimString(str)
{
	return str.replace(/^\s*|\s*$/g,"");
}