<!-- Hide code from non-js browsers

var mSecYear=(24*60*60*1000*365.25)
var mSecDay=(24*60*60*1000)
var mSecWeek=(24*60*60*1000*7)
var today=new Date()
var yearnumber="00"

/*Values on propfind.php3 in form mailingdata
flat
house
anyarea
area1
area1
area3
pricemin
pricemax
beds
*/

if(location.host.indexOf("10.10")>-1) {
local=true
}
else local=false

function dummyData(formObj) {
	formObj.flat.checked=true
	formObj.house.checked=true
}



function validateForm(formObj)
{	
	//alert ("here")
	if (formObj.pricemin.selectedIndex>formObj.pricemin.selectedIndex) {
		alert("Sorry, I can't go forward as your minimum rent price is greater than the your maximum");
		formObj.pricemin.focus()
		return;
	}
	
	//formObj.action="test.htm"
	formObj.action="proplist.php3"
	formObj.method="POST"
	formObj.submit()
}


function getURLnumber(searchIndex) {
	var temp= parseInt(stripCharsNotInBag(getURLdata(searchIndex),digits))
	return temp
}

function getURLdata(searchIndex) {
	//check to see if the variable exists
	//First as the first variable in the string
	if(eval("inputData.indexOf('&"+searchIndex+"=')")>-1)
	{
		var startTemp = inputData.indexOf("&"+searchIndex+"=")+(searchIndex.length+2)
		var endTemp = inputData.indexOf("&",(inputData.indexOf("&"+searchIndex+"=")+1))
		var temp=inputData.substring(startTemp,endTemp)
	}
	else {
		var temp="0"
	}
	return temp
}


// end hiding -->
