// JavaScript Document

function changeText1(){
	this.form_search.post_keyword1.value="";
}

function changeText2(){
	this.form2.keyword.value="";
}

function chkValue(){
		if (this.form_search.post_city.value=="ÖÜ±ß"){
			this.form_search.post_district.disabled=true;
			//this.form_search.select.style.visibility="hidden";
		}
		else{
			this.form_search.post_district.disabled=false;
			//this.form_search.select.style.visibility="visible";
		}
}

function chkValue1(){
	switch(this.form2.search_style.value){
		case "1":

			this.form2.sub2.disabled="";
			document.getElementById("row_price_second").style.display="";
			document.getElementById("row_price_rent").style.display="none";
			this.form2.action="http://secondhand.online.sh.cn/search/selllist.php";
			
			break;
		case "2":
			
			this.form2.sub2.disabled="";
			document.getElementById("row_price_second").style.display="";
			document.getElementById("row_price_rent").style.display="none";
			this.form2.action="http://secondhand.online.sh.cn/search/buylist.php";
			
			break;
		case "3":
		
			this.form2.sub2.disabled="";
			document.getElementById("row_price_second").style.display="none";
			document.getElementById("row_price_rent").style.display="";
			this.form2.action="http://rent.online.sh.cn/search/czlist.php";
			
			break;
			
		case "4":
		
			this.form2.sub2.disabled="";
			document.getElementById("row_price_second").style.display="none";
			document.getElementById("row_price_rent").style.display="";
			this.form2.action="http://rent.online.sh.cn/search/qzlist.php";
			
			break;
			
		default:
       		alert("ÇëÑ¡ÔñËÑË÷Àà±ð£¡");
			this.form2.sub2.disabled="disabled";
			this.form2.action="";
	}
		
}

