// JavaScript Document
function swapPrice(){
	var x=document.form1.PropFor.value;	
	var mR=document.getElementById("DivRent");
	var mS=document.getElementById("DivSale")		
		mR.style.display = 'none';
		mS.style.display = 'none';	
	if (x=="rent"){	
		mR.style.display = 'block';	
//		document.getElementById("rPrice").style.color="CC0000";		
	}else{
		mS.style.display = 'block';
//		document.getElementById("sPrice").style.color="946801";		
	}
}
function frmSubmit_NOTUSED(frmName){
	var m=document.frmName;	

//gen str post
    var poststr = 	"&F=" + m.F.value +
							"&navi=" + m.navi.value +
							"&PropType=" + m.PropType.value +
	                    	"&Location=" + m.Location.value +
							"&ChkRental=" +m.ChkRental.value +
	                    	"&Price=" +m.Price.value;
	 ajaxSearchSubmit(poststr);
	return false;	
}

function frmSearchSubmit(){
	var m=document.form1;	
	var p=m.PropFor;
	if (p.value=="rent") {
		m.Price.value=m.rPrice.value;
	}else{
		m.Price.value=m.sPrice.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;	
}