document.write("<img src=../image/sp.gif><br>");
document.write("<table width=775 height=40 border=0 cellspacing=0 cellpadding=0 align=center><tr><td width=35 rowspan=2><img src=../image/maillog.gif></td>");
document.write("<td class=fenzhan rowspan=2 align=left><b>" );
document.write("·<a href=# onmouseover=oncityjj(true) onmouseout=oncityjj(false) style='text-decoration: none'>" + cityname + "站</a></b> "); 
document.write("<a href='http://www.bmzg.net/city/'><font color=#0000FF size=2><b>[其他分站]</b></font></a> ");
document.write("</td><td rowspan=2 align=right>");
//document.write("<iframe scrolling=no frameborder=0 width=223 height=50 allowtransparency='true' src='http://www.yindu.cn/weather/weather.asp'></iframe>");
un();
document.write("</td></tr></table>");
document.write("<img src=../image/sp.gif><br>");
document.write("<table width=775 border=0 cellspacing=0 cellpadding=0 align=center>");
document.write("<tr class=search><td width=3 background=../image/angle01.gif></td>");
var titledq = "提示：杭州与杭州市的检索结果不同\n　　　杭州指杭州地区，杭州市指杭州市区";
if (cityname=="总"){cityname="中国"}
document.write("<td height=30 background=../image/butbak.gif><font color=#006633>　<b><font color=#FFFFFF>便民" + cityname + " >> 我要查询</font></b></font></td>");
document.write("<td background=../image/butbak.gif align=right></td><td background=../image/butbak.gif><a href=# target=_blank style='text-decoration:none'><font color=white>地区管理员：</font></a>&nbsp;<a href=#?" + admin + " target=_blank><font color=white>" + admin + "</font></a></td>");
document.write("<td width=2></td></tr><tr><td class=search></td>");
document.write("<form name=searchForm method=get><td height=60 valign=middle>　我要查找：");
document.write("<input type=text name=q size=25 value=\"" + q + "\"><input type=text name=searchcityname size=10 value=\"" + searchcityname + "\" title='" + titledq +"'><br>");
document.write("　　　　　　<input name=lx type=radio value=0><span class=white>生活黄页</span>	<input type=radio name=lx value=1 checked><span class=white>分类信息</span>");
document.write("　　　　<a href='http://www.bmzg.net/city/'>其他城市</a>");
document.write("<td width=0 align=left><input type='submit' value='本地搜索' onclick='return chkSearch();'><br>查询：地图 邮编/区号 公交 航班 列车<img src=../image/sp.gif height=18></td>");
document.write("</td><td width=0 valign=middle><input name=btn type='button' value='免费信息发布' onclick=\"window.location.href='http://www.bmzg.net/user/';\"><br>订票：");
document.write("<a href=http://travel.elong.com/hotels/Default.aspx?Campaign_ID=4051317 target='_blank'>酒店</a> <a href=http://travel.elong.com/flights/default.aspx?campaign_id=4051317 target='_blank'>机票</a><img src=../image/sp.gif height=18></td>");
document.write("</form>");
document.write("<td class=search></td></tr>");
document.write("<tr class=search><td></td><td height=2 ></td><td></td><td></td><td></td></tr></table>"); 
document.write("<img src=../image/sp.gif><br>");
function oncityjj(flg){
	if (document.getElementById("cityjj")!=null){
		if (flg){
			document.getElementById("cityjj").style.display = '';
		}else{
			document.getElementById("cityjj").style.display = 'none';
		}
	}
}
function chkSearch()
{
	trimspace(document.searchForm.q);
	if(document.searchForm.q.value == ''){
		alert('查询的关键字必须输入！                      \n\n列如：空调维修');
		document.searchForm.q.focus();
		return false;
	}
	trimspace(document.searchForm.searchcityname);
	if(document.searchForm.searchcityname.value == ''){
		alert('查询城市必须输入！                      \n\n列如：杭州市');
		document.searchForm.searchcityname.focus();
		return false;
	}
//var lx=1;
//if(document.searchForm.lx[0].checked) lx=0;
//document.searchForm.action = "http://www.bmzg.net/search.asp?q="+document.searchForm.q.value+"&searchcityname="+document.searchForm.searchcityname.value+"&lx="+lx;
document.searchForm.action = "http://www.bmzg.net/search.asp";
	if (q!=""){
		document.searchForm.target = "_self";
	}else{
		document.searchForm.target = "_blank";
	}

	return true;
}
function pj(intpj){
document.write("<table width=50 border=1 cellspacing=0 cellpadding=0 height=8 bordercolor=#000000><tr>");
for(var i =0;i<10;i++){
if (intpj > i){document.write("<td bgcolor=#009966></td>");
}else{document.write("<td bgcolor=''></td>");}}
document.write("</tr></table>");
}
function dp(bmid){
	document.write("<a href=http://www.tengxin.com/china/detail/"+bmid+".html#dp target=_blank>点评店铺</a>");
}
function mainfl(fl){
	if (document.getElementById("huangye")!=null){
		document.getElementById("huangye").style.display = 'none';
		document.getElementById("fenlei").style.display = 'none';
		document.getElementById(fl).style.display = '';
	}
	if (fl=="huangye"){
		document.searchForm.lx[0].checked = true;
	}else{
		document.searchForm.lx[1].checked = true;
	}
}
if (top.location !== self.location) {top.location=self.location;}
function gd(lx){
	if(lx == "fenlei"){
		document.write("<iframe src='http://www.tengxin.com/g.asp' allowtransparency='true' border=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 framespacing=0 frameborder=0 scrolling=no width=250 height=60></iframe>");
	}
	if(lx == "detail"){
		document.write("<iframe src='http://www.tengxin.com/g.htm' allowtransparency='true' border=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 framespacing=0 frameborder=0 scrolling=no width=310 height=251></iframe>");
	}
}
function getsearch(code){
document.write("<br>&nbsp;<font color=blue>搜索引擎上查找更多结果，您的喜好选择搜索！</font>");
//document.write("<br>&nbsp;<img src=../include/baidu.gif height=15 width=50>&nbsp;<a href='http://www.baidu.com/s?tn=bengb&ct=&lm=&z=&rn=&word=" + code + "&_si.x=19&_si.y=10' target=_blank><font color=red>在Baidu 上查找更多关于 <font color=blue>" + code + "</font> 的结果……</font></a>");
//document.write("<br>&nbsp;<img src=../include/google.gif height=15 width=50>&nbsp;<a href='http://www.google.com/custom?q=" + code + "&sa=%CB%D1%CB%F7&client=pub-7953250270552740&forid=1&ie=GB2312&oe=GB2312&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A61%3BLW%3A180%3BL%3Ahttp%3A%2F%2Fso.tengxin.com%2Fimg%2Flogo.gif%3BS%3Ahttp%3A%2F%2Fso.tengxin.com%3BLP%3A1%3BFORID%3A1%3B&hl=zh-CN' target=_blank><font color=red>在Google上查找更多关于 <font color=blue>" + code + "</font> 的结果……</font></a>");
//document.write("<br>&nbsp;<img src=../include/yahoo.gif height=15 width=50>&nbsp;<a href='http://www.yahoo.com.cn/search?p=" + code + "&pid=86946_1009&needbid=1&ei=GBK&source=3721_union' target=_blank><font color=red>在Yahoo 上查找更多关于 <font color=blue>" + code + "</font> 的结果……</font></a>");
//document.write("<br>&nbsp;<img src=../include/sogou.gif height=15 width=50>&nbsp;<a href='http://www.sogou.com/websearch/corp/search.jsp?query=" + code + "&pid=wwwtengxincom&class=1&cpc=SOGOU&searchtype=1' target=_blank><font color=red>在Sogou 上查找更多关于 <font color=blue>" + code + "</font> 的结果……</font></a>");
//document.write("<br>&nbsp;<img src=../include/zhongsou.gif height=15 width=50>&nbsp;<a href='http://p.zhongsou.com/p?k=bengb&w=" + code + "' target=_blank><font color=red>在Zhsou 上查找更多关于 <font color=blue>" + code + "</font> 的结果……</font></a>");
//document.write("<br>&nbsp;<img src=../include/iask.gif height=15 width=50>&nbsp;<a href='http://iask.com/s?tag=n&k=" + code + "' target=_blank><font color=red>在Iask&nbsp; 上查找更多关于 <font color=blue>" + code + "</font> 的结果……</font></a>");
document.write("<br>&nbsp;<a href='http://www.baidu.com/s?tn=bengb&ct=&lm=&z=&rn=&word=" + code + "&_si.x=19&_si.y=10' target=_blank><font color=red>百度</font></a>");
document.write("&nbsp;<a href='http://www.google.com/custom?q=" + code + "&sa=%CB%D1%CB%F7&client=pub-7953250270552740&forid=1&ie=GB2312&oe=GB2312&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A61%3BLW%3A180%3BL%3Ahttp%3A%2F%2Fso.tengxin.com%2Fimg%2Flogo.gif%3BS%3Ahttp%3A%2F%2Fso.tengxin.com%3BLP%3A1%3BFORID%3A1%3B&hl=zh-CN' target=_blank><font color=red>Google</font></a>");
document.write("&nbsp;<a href='http://www.yahoo.com.cn/search?p=" + code + "&pid=86946_1009&needbid=1&ei=GBK&source=3721_union' target=_blank><font color=red>雅虎中国</font></a>");
document.write("&nbsp;<a href='http://www.sogou.com/websearch/corp/search.jsp?query=" + code + "&pid=wwwtengxincom&class=1&cpc=SOGOU&searchtype=1' target=_blank><font color=red>搜狐搜狗</font></a>");
document.write("&nbsp;<a href='http://p.zhongsou.com/p?k=bengb&w=" + code + "' target=_blank><font color=red>中国搜索</font></a>");
document.write("&nbsp;<a href='http://iask.com/s?tag=n&k=" + code + "' target=_blank><font color=red>新浪爱问</font></a>");
document.write("&nbsp;<a href='http://www.soso.com/q?w=" + code + "&sc=web&ch=w.ptl&lr=chs' target=_blank><font color=red>腾讯SoSo</font></a>");
}
function yahoonews(){
document.write("<script language=JavaScript type=text/JavaScript src=http://union.yahoo.com.cn/v2/news.js?a=2069&b=1005&p=1007&nt=10300&m=86946></script>");
}
function trimspace(obj){
	String.prototype.Trim = function()	{
		return this.replace(/(^\s*)|(\s*$)/g, "");
	}			
	obj.value = obj.value.Trim();
}
function ss(w){window.status=w;return true;}
function cs(){window.status='';}
function showpc(errbmflg){
document.write("<div id=showpj style=\"position:absolute;width=95%;\"><center>");
document.write("<table width=600 border=1><tr><td align=center bgcolor=#FFCC33><br><b><font color=red>" + errbmflg + "</font></b><br><br><a href=# onclick=\"javascript:document.getElementById('showpj').style.display='none'\";>关闭</a><br><br></td></tr></table>");
document.write("</center></div>");
}
function opS(id,lx){window.open("http://www.bmzg.net/org/jumpOrg.asp?id="+id+"&lx="+lx);return false;}
