function clubBrokerIdeaHouse(pid){
		var url='houseidea.aspx?pointid='+pid;
		if(pid!=''){
			window.open(url,'houseidea','height=500,width=500');
		}else{
				alert('错误,参数不完整.');
			}
	}
function checkhzcomment(theForm){
	if(theForm.contents.value==''){
		alert('请您输入留言或评论');
		theForm.contents.focus();
		return false;
	}
	if(theForm.contents.value.length<2||theForm.contents.value.length>120){
		alert('输入字符在2---120之间');
		theForm.contents.focus();
		return false;		
	}
}	
function bgidea(dom){
		return document.getElementById(dom);
	}
function clubcheckhouse(theform){
		if(theform.title.value==''){
				alert('请输入标题！');
				theform.title.focus();
				return false;
			}
		if(theform.descriptions.value==''){
				alert('请输入内容！');
				theform.descriptions.focus();
				return false;
			}
		return true;
}
function clubSubmitLeave(theform){
		if(theform.descriptions.value==''){
				alert('请输入内容！');
				theform.descriptions.focus();
				return false;
			}
		if(theform.descriptions.value.length<2||theform.descriptions.value.length>120){
				alert('请输入字符在2--120之间！');
				theform.descriptions.focus();
				return false;
			}
		return true;
}function openwindow(hid){
	if(hid<=0){
		alert('参数不完整.');
	}
	else{
		var url='http://community.homelink.com.cn/homecyclopaediafeedback.aspx?pointid='+hid;
		window.open(url,'hzinfo','width=500,height=500');
	}
}
function clubCommont(pid){
	var request='http://club.homelink.com.cn/json.aspx?action=setUserVoteCommentEx&pointid='+pid+'&kind=1&types=2&score=1&aimtype=1&aimid='+pid;
		window.open(request,'voteDetail','width=500,height=400')
	}
function inputsendmessage(pointid,pointid2,jumpurl){window.open('http://passport.homelink.com.cn/windowopen.aspx?pointid='+pointid+'&pointid2='+pointid2+'&jumpurl='+jumpurl,'windows','height=500,width=600,scrollbars=yes');}
function inputsendmessageh(pointid,pointid2,jumpurl){window.open('http://passport.homelink.com.cn/windowopen.aspx?pointid='+pointid+'&pointid2='+pointid2+'&jumpurl='+jumpurl,'windows','height=500,width=600,scrollbars=yes');}
function clubUserJoinJs(pid){
	if(pid>0){
		//document.getElementById('clubUserJoinForm').submit();	
		var url='http://club.homelink.con.cn/json.aspx/action=clubUserJoinEx&pointid11='+pid;
		window.open(url,'windowsubmit','width=500,height=400');
	}
	else{
		alert('参数不完整');
	}
}
function openwindowmethod(hid){
	if(hid<=0){
		alert('参数不完整.');
	}
	else{
		var url='http://community.homelink.com.cn/homecyclopaediafeedback.aspx?pointid='+hid;
		window.open(url,'hzinfo','width=500,height=500');
	}
}function openWindowMeilieu(){
		var url='http://my.homelink.com.cn/myclublist.aspx';
		window.open(url,'hzinfo','width=600,height=500,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}
function popwindowmilieu(id){
	var url='http://club.homelink.com.cn/clubmilieuinfo.aspx?pointid='+id;
	window.open(url,'popmilieu','height=500,width=540');
}
function openCommentMethod(id,stat,rid,rtype){
	var request='http://club.homelink.com.cn/json.aspx?action=setUserVoteCommentEx&pointid='+id+'&kind=3&types='+stat+'&score=1&aimtype='+rtype+'&aimid='+rid;
		window.open(request,'voteDetail','width=500,height=400')
}
function openAjaxHZDailg(obj2,pid,pid2,cssview,bool){
	var object='';
 
	var res=document.getElementById(cssview);	
	var res2=document.getElementById(obj2);			
	res.innerHTML='<table width="100%" border="0" cellspacing="0" height="200" align="center">  <tr> <td align="center"><img src="images/ldata.gif" /></td> </tr> </table>';
	if(bool){	

	var ajax=new AJAXRequest;
	 ajax.get(
	  "/json.aspx?action=getHouseZoneInfoDesc&pointid="+pid+'&pointid2='+pid2+"&n="+Math.random(),
	  function(obj) {
		object=obj.responseText;
			res.innerHTML=object;
			res2.innerHTML='<a href=javascript:openAjaxHZDailg("'+obj2+'","'+pid+'","'+pid2+'","'+cssview+'",'+false+')>'+'<img src=images/newimages/arrow_x.gif />收回</a>';
			res.style.display='block';
		 })	}
	 else{
		res2.innerHTML='<a href=javascript:openAjaxHZDailg("'+obj2+'","'+pid+'","'+pid2+'","'+cssview+'",'+true+')>'+'<img src=images/newimages/arrow.gif />展开</a>';
		res.style.display='none';	
	 }
}
function saveUserSearchResult(){
	var hkid='不限';
		if(bgidea('houseKind').value==0){
				hkid='普通住房';
			}		
		else if(bgidea('houseKind').value==1){
				hkid='别墅';
			}
		else if(bgidea('houseKind').value==2){
				hkid='公寓';
			}			
		else if(bgidea('houseKind').value==3){
				hkid='四合院';
			}			
		var info='您确认保存搜索信息?\n'+'区域:'+bgidea('searcharea').value+'\n'+'商圈:'+bgidea('searchareaitem').value+'\n租金:'+bgidea('searchprice').value+'-'+bgidea('searchpricefinish').value+'\n面积:'+bgidea('searchhomearea').value+'-'+bgidea('searchhomeareafinish').value+'\n户型:'+hkid+'\n时间:'+bgidea('houseDateTiem').value+'\n关键字:'+bgidea('keyword').value;
		var infoStr=bgidea('searcharea').value+'|'+bgidea('searchzoneid').value+'|'+bgidea('searchareaitem').value+'|'+bgidea('searareaid').value+'|'+bgidea('searchprice').value+'|'+bgidea('searchpricefinish').value+'|'+bgidea('searchhomearea').value+'|'+bgidea('searchhomeareafinish').value+'|'+bgidea('houseKind').value+'|'+bgidea('houseDateTiem').value+'|'+bgidea('keyword').value;
		var infoAddress='http://house.homelink.com.cn/search_result_house.aspx?searcharea='+encodeURIComponent(bgidea('searcharea').value)+'&searchzoneid='+bgidea('searchzoneid').value+'&searchareaitem='+encodeURIComponent(bgidea('searchareaitem').value)+'&searareaid='+bgidea('searareaid').value+'&searchprice='+bgidea('searchprice').value+'&searchpricefinish='+bgidea('searchpricefinish').value+'&searchhomearea='+bgidea('searchhomearea').value+'&searchhomeareafinish='+bgidea('searchhomeareafinish').value+'&houseKind='+bgidea('houseKind').value+'&houseDateTiem='+bgidea('houseDateTiem').value+'&keyword='+encodeURIComponent(bgidea('keyword').value);
		if(confirm(info+'\数组:'+infoStr+'\n地址:'+infoAddress)){
			bgidea('searchareaSave').value=bgidea('searcharea').value;
			bgidea('searchzoneidSave').value=bgidea('searchzoneid').value;			
			bgidea('searchareaitemSave').value=bgidea('searchareaitem').value;			
			bgidea('searareaidSave').value=bgidea('searareaid').value;			
			bgidea('searchpriceSave').value=bgidea('searchprice').value;			
			bgidea('searchpricefinishSave').value=bgidea('searchpricefinish').value;			
			bgidea('searchhomeareaSave').value=bgidea('searchhomearea').value;			
			bgidea('searchhomeareafinishSave').value=bgidea('searchhomeareafinish').value;	
			bgidea('houseKindSave').value=bgidea('houseKind').value;				
			bgidea('houseDateTiemSave').value=bgidea('houseDateTiem').value;	
			bgidea('keywordSave').value=bgidea('keyword').value;	
			bgidea('linkArraySave').value=infoStr;
			bgidea('linkUrlSave').value=infoAddress;
			bgidea('houseSearchSaveForm').submit();
		}
	}
function selectTagMethod(scss,acss,sdiv,adiv,j,id){
		if(j==1){
				bgidea(scss).className='on';
				bgidea(acss).className='';
				bgidea(sdiv).style.display='block';
				bgidea(adiv).style.display='none';
			}
		else if(j==2){
			bgidea(adiv).innerHTML='<table width="100%" border="0" cellspacing="0" height="200" align="center">  <tr> <td align="center"><img src="images/ldata.gif" /></td> </tr> </table>';
			var ajax=new AJAXRequest;
	 ajax.get(
	  "/json.aspx?action=getTagHouseSearchForm&pointid="+id+"&n="+Math.random(),
	  function(obj) {
		var object=obj.responseText;
			bgidea(adiv).innerHTML=object;
		 })
				bgidea(scss).className='';
				bgidea(acss).className='on';
				bgidea(sdiv).style.display='none';
				bgidea(adiv).style.display='block';				
			}
	}
function areaControlStyle(id,css){
	var ajax=new AJAXRequest;
	 ajax.get(
	  "/json.aspx?action=getShopBusTitleList&pointid="+id+"&n="+Math.random(),
	  function(obj) {
		var object=obj.responseText;
			bgidea(css).innerHTML=object;
		 })	
	 bgidea(css).style.display='block';
	 
}
function htmlovershow(name){
		document.getElementById('cssReqInfo').style.left=getCheckuserPostionX(document.getElementById(name))-50;
		 
		document.getElementById('cssReqInfo').style.top=getCheckuserPostionY(document.getElementById(name))+17;
		document.getElementById('cssReqInfo').style.display='block';
	}
function htmlouthide(name){
		document.getElementById('cssReqInfo').style.display='none';		
	}