function checkver(){
	var tt=navigator.appName;
	//var tt_name = navigator.userAgent  ;
	//alert(tt_name);
	if(tt=='Netscape'){
		//alert('抱歉FireFox目前無法使用此功能\n請使用IE以繼續');
		return false;
	}else{
		return true;
	}
}
//選擇縣市後，出現鄉鎮市區
function redirect1(x){
	
	 var _number = Math.random();
	 var zipUrl = "./_city_select2.php?city=" + encodeURI(x) + "&a=1&rs=" + _number;		
	 //var zipUrl='get_mrt.php';
                        var zipPar="city=" + encodeURI(x) ;
                        var prototype;
                        var prototype = new Ajax.Request (zipUrl,
                           {method: 'get', parameters: zipPar, onComplete: function(res){
                                                          _area_select.innerHTML = res.responseText;
                                                          }
                           });

	
	
	
}
//表單送出檢查
function if_check(x){
	with(document.search_code){
		if(city1.value=='' && code1.value=='' && price.value=='' && ping.value=='' && kind.value=='' && layout.value=='' ){
			alert('至少需要輸入一個條件');
			if(x=='1'){
			}else{
				return false;
			}
		}else{
			//alert('ok');
			submit();
		}
	}
}

//
function sel_rode(x,y){
	
		var _number = Math.random();
		var zipUrl = "./_rode_select.php";			
		var zipPar="code=" + x + "&rode=" + y + "&rs=" + _number;
                        var prototype;
                        var prototype = new Ajax.Request (zipUrl,
                           {method: 'get', parameters: zipPar, onComplete: function(res){					   			
                                                          _rode_select.innerHTML = res.responseText;
                                                          }
                           });
	
	
}
