function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
var NW$=function(i){
	return document.getElementById(i);
}
function checkFilterForm(){
	if(NW$("Filterkey").value=='ڽɸѡ...'){
		NW$("Filterkey").value='';	
	}
}
var Method={
	CompareData:function(d1,d2){
		if(parseInt(d1)-parseInt(d2)>0){
			return d2+','+d1;
		}
		else{
			return d1+','+d2;
		}
	},
	HousePrompt: {
		Show: function(id){
			var array = document.getElementsByTagName("div");
			for (k = 0; k < array.length; k++) {
				if (array[k].id.substring(0, 7) == id.substring(0, 7)) {
					NW$(array[k].id).style.display = "none";
				}
			}
			NW$(id).style.display = 'block';
		}
	}
}
var Page={
	Default:{
		AreaArray:[11,6,7,8,2,10,1,4,12,3,9,13],
		ShwoShop:function(id,title,the){
			for(var n=0;n<this.AreaArray.length;n++){
				if(NW$("ShopLine"+this.AreaArray[n])){
					NW$("ShopLine"+this.AreaArray[n]).style.display="none";
				}			
			}			
			if(NW$("ShopLine"+id)){
				NW$("ShopLine"+id).style.display="block";
				this.AddSearch('area',id+'$'+title,the);
			}
			if(id==0){
				this.AddSearch('area','0$',the);
			}
			this.AddSearch('shop','0$$',the);
			this.AddSearch('shop','0$$','hd'+id+'_0');	
		},
		AddSearch:function(type,obj,the){
			var str=obj.split('$');	
			var array=document.getElementsByTagName("A");
			for(k=0;k<array.length;k++){
				if(array[k].id.substring(0,2)==the.substring(0,2)){
					if(array[k].id.substring(0,4)!=the){
						NW$(array[k].id).style.color="";
						NW$(array[k].id).style.fontWeight="";
					}
				}
			}
			NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
			if(NW$(the)){
				if(str[0]!=0){
					NW$(the).style.color="#ff6600";
				}
				NW$(the).style.fontWeight="bold";	
			}			
			if(type=='area'){							
				if(str[0]==0){
					NW$("areaTitle").innerHTML='';
					NW$("a").value="";
				}
				if(str[0]!=0){
					NW$("areaTitle").innerHTML='&nbsp;&nbsp;'+str[1]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.ShwoShop(\'0\',\'\',\'ha0\');\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'zoneSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"zoneSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("a").value=str[1];
				}
			}
			else if(type=='shop'){
				if(str[0]==0){
					NW$("shopTitle").innerHTML='';
					NW$("d").value="";	
				}
				if(str[0]!=0){
					NW$("shopTitle").innerHTML='&nbsp;&nbsp;'+str[1]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'shop\',\'0$$'+str[2]+'\',\'hd11_0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'areaSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"areaSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("areaTitle").innerHTML='&nbsp;&nbsp;'+str[2]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.ShwoShop(\'0\',\'\',\'ha0\');\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'zoneSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"zoneSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("a").value=str[2];
					NW$("d").value=str[1];
				}	
			}
			else if(type=='lc'){
				if(str[0]==0){
					NW$("lc").innerHTML='';
					NW$("slc").value="";	
				}
				if(str[0]!=0){
					NW$("lc").innerHTML='&nbsp;&nbsp;'+str[2]+'&nbsp;<a title=\"\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lcic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lcic\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("slc").value=str[1];
				}		
			}
			else if(type=='price'){
				if(str[0]==0){
					NW$("priceTitle").innerHTML='';
					NW$("ps").value="";	
					NW$("pe").value="";
				}
				if(str[0]!=0){
					NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+str[3]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("ps").value=str[1];
					NW$("pe").value=str[2];
				}	
			}
		else if(type=='mj'){
				if(str[0]==0){
					NW$("mianji").innerHTML='';
					NW$("smj").value="";	
					NW$("bmj").value="";
				}
				if(str[0]!=0){
					NW$("mianji").innerHTML='&nbsp;&nbsp;'+str[3]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'mianjiic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"mianjiic\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("smj").value=str[1];
					NW$("bmj").value=str[2];
				}	
			}
			else if(type=='acreage'){
				if(str[0]==0){
					NW$("acreageTitle").innerHTML='';	
					NW$("smj").value="";
					NW$("me").value="";
				}
				if(str[0]!=0){
					NW$("acreageTitle").innerHTML='&nbsp;&nbsp;'+str[3]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'acreage\',\'0$$$\',\'hm0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("smj").value=str[1];
					NW$("me").value=str[2];
				}		
			}
			else if(type=='room'){
				if(str[0]==0){
					NW$("roomTitle").innerHTML='';
					NW$("t1").value="";
					NW$("t").value="";	
				}
				if(str[0]!=0){
					NW$("roomTitle").innerHTML='&nbsp;&nbsp;'+str[2]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'room\',\'0$$\',\'ht0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'roomSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"roomSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("t1").value=str[2];
					NW$("t").value=str[1];
				}		
			}
			else if(type=='type'){
				if(str[0]==0){
					NW$("typeTitle").innerHTML='';
					NW$("q").value="";	
				}
				if(str[0]!=0){
					NW$("typeTitle").innerHTML='&nbsp;&nbsp;'+str[2]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'type\',\'0$\',\'hq0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'typeSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"typeSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					NW$("q").value=str[1];
				}		
			}
			else if(type=='subway'){
				if(str[0]==0){
					NW$("subwayTitle").innerHTML='';	
					//NW$("k").value="";
					NW$("k1").value="";
				}
				if(str[0]!=0){
					NW$("subwayTitle").innerHTML='&nbsp;&nbsp;'+str[1]+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'subway\',\'0$\',\'hk0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'subwaySelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"subwaySelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					//NW$("k").value=str[1];
					NW$("k1").value=str[1];
				}		
			}
		},
		ResetSearch:function(){
			NW$("areaTitle").innerHTML='';
			NW$("shopTitle").innerHTML='';	
			NW$("priceTitle").innerHTML='';
			NW$("acreageTitle").innerHTML='';
			NW$("roomTitle").innerHTML='';
			NW$("typeTitle").innerHTML='';
			NW$("subwayTitle").innerHTML='';
			NW$("lc").innerHTML="";
			NW$("mianji").innerHTML="";
			NW$("ustartprice").value="";
			NW$("uendprice").value="";
			NW$("ustartacreage").value="";
			NW$("uendacreage").value="";	
			NW$("a").value="";
			NW$("d").value="";
			NW$("ps").value="";
			NW$("pe").value="";
	
			NW$("smj").value="";
			NW$("bmj").value="";
			NW$("slc").value="";
			NW$("blc").value="";
			NW$("ustartlc").value="";
			NW$("uendlc").value="";	
			//NW$("ms").value="";
			//NW$("me").value="";
			//NW$("t").value="";
			//NW$("t1").value="";
			NW$("q").value="";
			//NW$("k").value="";
			NW$("k1").value="";			
			NW$("ResetSearchIco").innerHTML="";
		}
	},
	Action:{
		SubmitSearch:function(){
			NW$("searchHouseZoneForm").submit();
		},
		SwitchTab:function(v){
			for(var i=1;i<4;i++){
				if(NW$("houseListTitle"+[i])){
					NW$("houseListTitle"+[i]).style.color="#000000";
				}
			}
			if(NW$("houseListTitle"+v)){
					NW$("houseListTitle"+v).style.color="";
				}
				NW$("houseHead").style.backgroundImage="url(/images/seach_"+v+".png)";
		}
	},
	Other:{
		UserEnterPrice:function(type,v){
			var the='hp_1';
			var unit="";
			var unit1="";
			if(isNaN(v)){
				
				return true;
			}
			var array=document.getElementsByTagName("A");
			for(k=0;k<array.length;k++){
				if(array[k].id.substring(0,2)==the.substring(0,2)){
					NW$(array[k].id).style.color="";
					NW$(array[k].id).style.fontWeight="";
				}
			}
			if(type==1){
				NW$("ustartprice").value=NW$("ustartprice").value.replace(/\D/g,'');
				var v=NW$("ustartprice").value.replace(/\D/g,'');
				var v1=NW$("uendprice").value.replace(/\D/g,'');
				if(v!=''||v1!=''){
					if(v1!=''&&v!=''){
						var s=Method.CompareData(v,v1).split(',');
						NW$("ps").value=s[0];
						NW$("pe").value=s[1];
						NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+s[0]+'-'+s[1]+unit1+'万&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v!=''){
						NW$("ps").value=v;
						NW$("pe").value='';
						NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+v+unit+'万&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v1!=''){
						NW$("ps").value=v1;
						NW$("pe").value='';
						NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+v1+unit+'万&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
				}
				else{
					NW$("ps").value='';
					NW$("pe").value='';
					NW$("priceTitle").innerHTML='';
				}
			}
			if(type==2){
				var v=NW$("uendprice").value.replace(/\D/g,'');
				var v1=NW$("ustartprice").value.replace(/\D/g,'');
				if(v!=''||v1!=''){					
					if(v1!=''&&v!=''){
						var s=Method.CompareData(v,v1).split(',');
						NW$("ps").value=s[0];
						NW$("pe").value=s[1];
						NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+s[0]+'-'+s[1]+unit1+'万&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v!=''){
						NW$("ps").value=v;
						NW$("pe").value='';
						NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+v+unit+'万&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v1!=''){
						NW$("ps").value=v1;
						NW$("pe").value='';
						NW$("priceTitle").innerHTML='&nbsp;&nbsp;'+v1+unit+'万&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'price\',\'0$$$\',\'hp0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'priceSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"priceSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
				}
				else{
					NW$("ps").value='';
					NW$("pe").value='';
					NW$("priceTitle").innerHTML='';
				}
			}
		},
				UserEnterlc:function(type,v){
			var the='hp_1';
			var unit="";
			var unit1="";
			if(isNaN(v)){
		
				return true;
			}
			var array=document.getElementsByTagName("A");
			for(k=0;k<array.length;k++){
				if(array[k].id.substring(0,2)==the.substring(0,2)){
					NW$(array[k].id).style.color="";
					NW$(array[k].id).style.fontWeight="";
				}
			}
			if(type==1){
				NW$("ustartlc").value=NW$("ustartlc").value.replace(/\D/g,'');
				var v=NW$("ustartlc").value.replace(/\D/g,'');
				var v1=NW$("uendlc").value.replace(/\D/g,'');
				if(v!=''||v1!=''){
					if(v1!=''&&v!=''){
						var s=Method.CompareData(v,v1).split(',');
						NW$("slc").value=s[0];
						NW$("blc").value=s[1];
						NW$("lc").innerHTML='&nbsp;&nbsp;'+s[0]+'-'+s[1]+unit1+'层&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lcic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lcic\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v!=''){
						NW$("slc").value=v;
						NW$("blc").value='';
						NW$("lc").innerHTML='&nbsp;&nbsp;'+v+unit+'层&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lcic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lcic\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v1!=''){
						NW$("slc").value=v1;
						NW$("blc").value='';
						NW$("lc").innerHTML='&nbsp;&nbsp;'+v1+unit+'层&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
				}
				else{
					NW$("slc").value='';
					NW$("blc").value='';
					NW$("lc").innerHTML='';
				}
			}
			if(type==2){
				var v=NW$("uendlc").value.replace(/\D/g,'');
				var v1=NW$("ustartlc").value.replace(/\D/g,'');
				if(v!=''||v1!=''){					
					if(v1!=''&&v!=''){
						var s=Method.CompareData(v,v1).split(',');
						NW$("slc").value=s[0];
						NW$("blc").value=s[1];
						NW$("lc").innerHTML='&nbsp;&nbsp;'+s[0]+'-'+s[1]+unit1+'层&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lcic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lcic\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v!=''){
						NW$("slc").value=v;
						NW$("blc").value='';
						NW$("lc").innerHTML='&nbsp;&nbsp;'+v+unit+'层&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lcic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lcic\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v1!=''){
						NW$("slc").value=v1;
						NW$("blc").value='';
						NW$("lc").innerHTML='&nbsp;&nbsp;'+v1+unit+'层&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'lc\',\'0$$\',\'lc0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'lcic\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"lcic\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
				}
				else{
					NW$("slc").value='';
					NW$("blc").value='';
					NW$("lc").innerHTML='';
				}
			}
		},
		UserEnterAcreage:function(type,v){
			var the='mj_1';
			var unit="m&sup2;";
			var unit1="m&sup2;";
			if(isNaN(v)){
				
				return true;
			}
			var array=document.getElementsByTagName("A");
			for(k=0;k<array.length;k++){
				if(array[k].id.substring(0,2)==the.substring(0,2)){
					NW$(array[k].id).style.color="";
					NW$(array[k].id).style.fontWeight="";
				}
			}
			if(type==1){
				var v=NW$("ustartacreage").value.replace(/\D/g,'');
				var v1=NW$("uendacreage").value.replace(/\D/g,'');
				if(v!=''||v1!=''){
					if(v1!=''&&v!=''){
						var s=Method.CompareData(v,v1).split(',');
						NW$("smj").value=s[0];
						NW$("bmj").value=s[1];
						NW$("mianji").innerHTML='&nbsp;&nbsp;'+s[0]+'-'+s[1]+unit1+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v!=''){
						NW$("smj").value=v;
						NW$("bmj").value='';
						NW$("mianji").innerHTML='&nbsp;&nbsp;'+v+unit+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v1!=''){
						NW$("smj").value=v1;
						NW$("bmj").value='';
						NW$("mianji").innerHTML='&nbsp;&nbsp;'+v1+unit+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
				}
				else{
					NW$("smj").value='';
					NW$("bmj").value='';
					NW$("mianji").innerHTML='';
				}
			}
			if(type==2){
				var v=NW$("uendacreage").value.replace(/\D/g,'');
				var v1=NW$("ustartacreage").value.replace(/\D/g,'');
				if(v!=''||v1!=''){						
					if(v1!=''&&v!=''){
						var s=Method.CompareData(v,v1).split(',');
						NW$("smj").value=s[0];
						NW$("bmj").value=s[1];
						NW$("mianji").innerHTML='&nbsp;&nbsp;'+s[0]+'-'+s[1]+unit1+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v!=''){
						NW$("smj").value=v;
						("bmj").value='';
						NW$("mianji").innerHTML='&nbsp;&nbsp;'+v+unit+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					else if(v1!=''){
						NW$("smj").value=v1;
						NW$("bmj").value='';
						NW$("mianji").innerHTML='&nbsp;&nbsp;'+v1+unit+'&nbsp;<a title=\"ɾѡ\" href=\"javascript:;\" onclick=\"Page.Default.AddSearch(\'mj\',\'0$$$\',\'mj0\')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'acreageSelIoc\',\'\',\'images/hongchazi.png\',1)\"><img style=\"margin-top:-5px;width:10px;height:10px;\" id=\"acreageSelIoc\" src=\"images/chazi.png\" /></a>&nbsp;';
					}
					NW$("ResetSearchIco").innerHTML="<a title=\"ѡ\" href=\"javascript:;\" onclick=\"Page.Default.ResetSearch()\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage(\'resetIoc\',\'\',\'images/lajikuang-red.png\',1)\"><img style=\"margin-top:2px;\" id=\"resetIoc\" src=\"images/lajikuang.png\" /></a>";
				}
				else{
					NW$("smj").value='';
					NW$("bmj").value='';
					NW$("mianji").innerHTML='';
				}
			}
		}
	}
}
