<!--
	function quickCheck() {
		var pcdeLen=0;
		var pcde=document.quickform.sbrb.value.substring(0,1);
		pcdeLen=document.quickform.sbrb.value.length;
		if	(document.quickform.sbrb.value == "Enter Suburb, Postcode or Ref #") {
	        alert("Please enter a Suburb, Postcode or Reference Number");
	        return false;
		}
		if (!isNaN(document.quickform.sbrb.value) && document.quickform.sbrb.value.length!=4) {
			if (pcde == 8) {
				document.quickform.sbrb.value="0"+document.quickform.sbrb.value;
			} else {
				alert("Postcodes must be 4 numbers in length, please enter in a correct Postcode");
			}
		return false;
		}
	}
	
	function validateSuburbField() {
		var pcdeLen=0;
		var pcde=document.quickform.sbrb.value.substring(0,1);
		pcdeLen=document.quickform.sbrb.value.length;
		if	(document.quickform.sbrb.value == "Enter a Suburb or Postcode") {
	        alert("Please enter a valid Suburb or Postcode");
	        return false;
		}
		if (!isNaN(document.quickform.sbrb.value) && document.quickform.sbrb.value.length!=4) {
			if (pcde == 8) {
				document.quickform.sbrb.value="0"+document.quickform.sbrb.value;
			} else {
				alert("Postcodes must be 4 numbers in length, please enter in a correct Postcode");
			}
		return false;
		}
	}	
	
	function formCheck() {
		if( document.myform.state.value == "any" || document.myform.region1.value == "any" ) {
	        alert("Please choose a state and region");
	        return false;
		}
		document.myform.region.value=document.myform.region1.options[document.myform.region1.selectedIndex].value;
		document.myform.prcefrom.value=document.myform.prcefrom1.options[document.myform.prcefrom1.selectedIndex].value;
		document.myform.prceto.value=document.myform.prceto1.options[document.myform.prceto1.selectedIndex].value;
		pricefromtext=document.myform.prcefrom1.options[document.myform.prcefrom1.selectedIndex].text;
		pricetotext=document.myform.prceto1.options[document.myform.prceto1.selectedIndex].text;
		regiontext=document.myform.region1.options[document.myform.region1.selectedIndex].text;
		clearVals(false);
	}
	function clearVals(reset) {
		for(loop=document.myform.region1.length; loop>0; loop--)
			document.myform.region1.options[loop] = null;
		for(loop=document.myform.prcefrom1.length; loop>=0; loop--)
			document.myform.prcefrom1.options[loop] = null;
		for(loop=document.myform.prceto1.length; loop>=0; loop--)
			document.myform.prceto1.options[loop] = null;
		if( reset ) {
			document.quickform.sbrb.value="Enter Suburb, Postcode or Ref #";
			document.quickform.surr_sbrb.checked=false;
			document.myform.state.selectedIndex=0;
			document.myform.region1.options[0] = new Option("Select a Region","any",true, true);
			document.myform.propertytype.selectedIndex=0;
			document.myform.buyrent.selectedIndex=0;
			document.myform.prcefrom1.selectedIndex=0;
			PopulatePrice(buyprices);
		}
		else {
			eval("document.myform.region1.options[0] = new Option('" + regiontext + "','" + document.myform.region.value + "',true, true);");
			eval("document.myform.prcefrom1.options[0] = new Option('" + pricefromtext + "','" + document.myform.prcefrom.value + "',true, true);");
			eval("document.myform.prceto1.options[0] = new Option('" + pricetotext + "','" + document.myform.prceto.value + "',true, true);");
			document.myform.prcefrom1.options.length = 1;
		}
		document.myform.region1.length=1;
		document.myform.region1.selectedIndex=0;
		document.myform.prceto1.options.length=1;
		document.myform.prceto1.selectedIndex=0;
	}
-->