


function DoSearch()
{
	// We need to get all the selected project interests.
	var type =  0;
	var oLand = GetMyObjectByID("land");
	var oHouse = GetMyObjectByID("house");
	var oUnit = GetMyObjectByID("apartment");
	var oRegion = GetMyObjectByID(sRegion); 
	
	if(oLand.checked) type = type + parseFloat(oLand.value);
	if(oHouse.checked) type = type + parseFloat(oHouse.value);
	if(oUnit.checked) type = type + parseFloat(oUnit.value);
	
	if(type == 0)
	{
		alert("Your must select at least 1 property type to compete a search");
		return;
	}
	
	// Also get the value of the price...
	var oPrice = GetMyObjectByID(sPrice);
	var PriceValue = oPrice.value;
	
	// then redirect to the search results page.
	document.location.href = "ourprojects.aspx?region="+ oRegion.value +"&price="+ PriceValue +"&Interest="+ type;	
}
