

function frmSearchSubmit(){
	var m=document.form1;	
	var pcode=m.PropertyCode.value;	
	if (pcode !="" && pcode != "--- Search by Reference Code ---") {
		m.action="property.php";
		return true;
	}	
	var p=m.PropFor;
	if (p.value=="rent") {
		m.Price.value=m.rPriceS.value+"-"+m.rPriceT.value;
	}else{
		m.Price.value=m.sPriceS.value+"-"+m.sPriceT.value;
	}
    var poststr = 	"&F=" + m.F.value +
//							"&navi=" + m.navi.value +
							"&PropType=" + m.PropType.value +
							"&PropFor=" + m.PropFor.value +
	                    	"&Location=" + m.Location.value +
	                    	"&Price=" +m.Price.value +
							"&view=" +m.view.value;
	 ajaxSearchSubmit(poststr);
	return false;	
}

function HomeSubmit(fName){
	var m=document.form1;	
	var pcode=m.PropertyCode.value;	
	if (pcode !="" && pcode != "--- Search by Reference Code ---") {
		m.action="property.php";
		return true;
	}	
	var p=m.PropFor;
	if (p.value=="rent") {
		m.Price.value=m.rPriceS.value+"-"+m.rPriceT.value;
	}else{
		m.Price.value=m.sPriceS.value+"-"+m.sPriceT.value;
	}
	return true;
	//document.fName.submit();
}

