var i=0;
var ii=3;

newDate=new Date()
newDate=""+newDate.getYear()+"-"+[newDate.getMonth()+1]+"-"+newDate.getDate()+""

//读取COOKIE
function getCookie (CookieName) { 
var CookieString = document.cookie; 
var CookieSet = CookieString.split (';'); 
var SetSize = CookieSet.length; 
var CookiePieces 
var ReturnValue = ""; 
var x = 0; 
for (x = 0; ((x < SetSize) && (ReturnValue == "")); x++) { 
CookiePieces = CookieSet[x].split ('='); 

if (CookiePieces[0].substring (0,1) == ' ') { 
CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length); 
}

if (CookiePieces[0] == CookieName) {
ReturnValue = CookiePieces[1];
var value =ReturnValue
}


}
return value;
}


//跳出确认
function checkclick(msg){if(confirm(msg)){event.returnValue=true;}else{event.returnValue=false;}}


//显示主题
function ShowPost1(id,username,content,posttime,honor,userface,sex,birthday,experience,membercode,faction,consort,money,postcount,regtime,userlife,usermail,userhome,sign,paixu,guanggao,ggurl,dongtai,dturl,delys,delys3,yueshangtieshu,lastloginip,iplock)
{
var iplockstr = "";
if(iplock =='1' ){
iplockstr = " &nbsp;<FONT color=red>●</FONT><a onclick=checkclick('您确定要屏蔽该用户IP吗?'); href='IPLock.asp?lockusername="+username+"&userip="+lastloginip+"' target=QDtemp title=屏蔽该用户IP><font STYLE=\"font-size:11pt;color:red;font-weight: bold;\">IP屏蔽</font></a>&nbsp;"
}


document.write("<table class=a2 style=TABLE-LAYOUT:fixed cellPadding=5 width=955 align=center border=0 cellSpacing=1>");
ii++
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=156 align=center valign=top>");
document.write("<table border=0 width=95%><tr><td><font style=font-size:10pt><b>"+username+"</b></font></td><td align=right valign=top>");

//if (""+sex+""!=''){
//document.write("<img src=images/"+sex+".gif>　")
//}

//document.write(astro(""+birthday+""));
document.write("</td></tr></table>");

if (getCookie('showface')!='0'){
document.write("<img src='"+userface+"' onload='javascript:if(this.width>120)this.width=120;if(this.height>120)this.height=120;'>")
}

document.write("<br><br><table border=0 width=95%><tr ><td style=line-height:150% STYLE=font-size:10pt; >"+level(experience,membercode,username,moderated)+"客户等级:"+levelname+"<br>");
//if (""+faction+"" !="") {document.write("门　　派:"+faction+"<br>");}
//if (""+consort+"" !="") {document.write("配　　偶:"+consort+"<br>");}
//document.write("虚拟积分:"+experience+"<br>");
//document.write("社区金币:"+money+"<br>");
if (parseInt(postcount)<parseInt(yueshangtieshu))
{yueshangtieshu=postcount
}
document.write("发帖回帖总数:"+postcount+"<br>");
document.write("本月合格帖数:"+yueshangtieshu+"<br>");
document.write("注册时间:"+regtime.split(" ")[0]+"<br>");
document.write("IP:"+lastloginip+"<br>");
//document.write("体 力 值:<img border=0 src=images/bar/0.gif width="+userlife/2+" height=9 alt="+userlife+"><br>");
if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("是否在线:离线<br>");
}else{
document.write("是否在线:在线<br>");
}


//document.write("<a target=_blank  href=help.asp?menu=q title=查看虚拟积分计算方法 >绿杠蓝杠满为1万分</a><br>");
document.write("</td></tr></table></td><td height=100%>");
document.write("<table cellSpacing=0 cellPadding=0 width=100% border=0 height=100%><tr><td colspan=3 width=90%><FONT color=#E7C954>●</FONT><a href='Profile.asp?username="+username+"' title='查看"+username+"个人资料'><font STYLE=\"font-size:11pt;color:#000000\">本人资料</font></a> &nbsp;<FONT color=#000000>○</FONT><a href='javascript:' style=cursor:hand onclick=\"javascript:open('friend.asp?menu=post&incept="+username+"','','width=420,height=250')\" title='发送短信息给"+username+"'><font STYLE=\"font-size:11pt;color:#000000\">短信</font></a> &nbsp;<FONT color=#FF0000>●</FONT><a href='friend.asp?menu=add&username="+username+"' title='把"+username+"加入好友'><font STYLE=\"font-size:11pt;color:#000000\">加好友</font></a> &nbsp;<FONT color=#009933>●</FONT><a href='ShowBBS.asp?menu=5&username="+username+"' title='搜索"+username+"发表过的所有主题'><font STYLE=\"font-size:11pt;color:#000000\">搜索</font></a>  ");

//if (userhome!="" && userhome!="http://"){
//document.write("<a target=_blank href="+userhome+"><img alt=访问"+userhome+"的主页 src=images/homepage.gif border=0></a>");
//}

document.write(" &nbsp;<FONT color=#00FF00>●</FONT><a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子><font STYLE=\"font-size:11pt;color:#000000\">复制</font></a> &nbsp;<FONT color=#0000FF>●</FONT><a href='retopic3.asp?id="+topicid+"&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=回复这个主题><font STYLE=\"font-size:11pt;color:#000000\">回复</font></a><a name="+id+"></a> &nbsp;<FONT color=#FFFF00>●</FONT><a href='retopic3.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=引用回复这个帖子><font STYLE=\"font-size:11pt;color:#000000\">引用</font></a> "+iplockstr+" <script>AddPortal('36833','http://www.zhouyi.com.cn/miniweb/36833.gif','1','2.1');</script></td><td align=right STYLE=font-size:11pt;>No.<font color=red><b>主题</b></font>&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr>");


document.write("<tr vAlign=top><td colSpan=4 height=100% style=word-break:break-all STYLE=font-size:11pt;>");



if(delys3 == 1 ){
delys3="&nbsp;&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicling&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">删除</font></a>";
}else{
delys3="";}


if(badlist.indexOf(username) == -1 ){
document.write("<font STYLE=font-size:11pt;>"+ybbcode("<span id=yu"+id+">"+content+"</span>")+"</font>");
}else{
document.write("<span id=yu"+id+">==============================<br>　　　<font color=RED>该用户帖子已被过滤　　　</font><br>==============================</span>")
}
document.write("</td></tr><tr vAlign=top><td colSpan=4 align=right>")
if(getCookie('sign')!='0' && sign!=""){document.write("——————————<br><div style='OVERFLOW:auto' id=div"+id+">"+ybbcode(sign)+"</div>");}
document.write("</td></tr><tr><td height=12></td></tr>"+guanggao+ggurl+"<td Align=right valign=\"bottom\" colSpan=4 STYLE=font-size:12pt;line-height:150%; height=12> 【<a target=I2 onclick=showsubmenu(1) href=showpost3.asp?id="+topicid+"&fankuibianji=1&qbtext="+dturl+">编辑反馈内容</a>】  【<a href=showpost3.asp?id="+topicid+"&delfankui=1&qbtext="+dturl+" "+paixu+">删除反馈内容</a>】</td></tr>"+dongtai+"<tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr><tr vAlign=top><td height=12 width=35%><FONT color=#009933>●</FONT><a href='EditTopic3.asp?id="+topicid+"&retopicid="+id+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=编辑该帖子><font STYLE=\"font-size:11pt;color:#000000\">编辑</font></a>"+delys3+"&nbsp;&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopic&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">正常删除</font></a>&nbsp;&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicteshu&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">不法删除</font></a></td><td width=30%  valign=bottom  STYLE=font-size:11pt;>发表时间:"+posttime+"</td><td colSpan=2 width=35% valign=bottom STYLE=font-size:11pt;>【<a href=javascript:history.back()>返回上页</a>】【<a href=#>返回页首</a>】【<a href=default.asp>返回首页</a>】</td></tr></table></td></tr>");
document.write("</table>")
if(getCookie('sign')!='0' && sign!=""){if(eval("div"+id+".scrollHeight")>150){eval("div"+id+".style.height=150")}}
}



//显示主题，擂台专用
function ShowPostlt(id,username,content,posttime,honor,userface,sex,birthday,experience,membercode,faction,consort,money,postcount,regtime,userlife,usermail,userhome,sign,paixu,guanggao,ggurl,dongtai,dturl,delys,delys3,yueshangtieshu,lastloginip,iplock)
{
var iplockstr = "";
if(iplock =='1' ){
iplockstr = " &nbsp;<FONT color=red>●</FONT><a onclick=checkclick('您确定要屏蔽该用户IP吗?'); href='IPLock.asp?lockusername="+username+"&userip="+lastloginip+"' target=QDtemp title=屏蔽该用户IP><font STYLE=\"font-size:11pt;color:red;font-weight: bold;\">IP屏蔽</font></a>&nbsp;"
}


document.write("<table class=a2 style=TABLE-LAYOUT:fixed cellPadding=5 width=955 align=center border=0 cellSpacing=1>");
ii++
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=156 align=center valign=top>");
document.write("<table border=0 width=95%><tr><td><font style=font-size:10pt><b>"+username+"</b></font></td><td align=right valign=top>");

//if (""+sex+""!=''){
//document.write("<img src=images/"+sex+".gif>　")
//}

//document.write(astro(""+birthday+""));
document.write("</td></tr></table>");

if (getCookie('showface')!='0'){
document.write("<img src='"+userface+"' onload='javascript:if(this.width>120)this.width=120;if(this.height>120)this.height=120;'>")
}

document.write("<br><br><table border=0 width=95%><tr ><td style=line-height:150% STYLE=font-size:10pt; >"+level(experience,membercode,username,moderated)+"客户等级:"+levelname+"<br>");
//if (""+faction+"" !="") {document.write("门　　派:"+faction+"<br>");}
//if (""+consort+"" !="") {document.write("配　　偶:"+consort+"<br>");}
//document.write("虚拟积分:"+experience+"<br>");
//document.write("社区金币:"+money+"<br>");
if (parseInt(postcount)<parseInt(yueshangtieshu))
{yueshangtieshu=postcount
}
document.write("发帖回帖总数:"+postcount+"<br>");
document.write("本月合格帖数:"+yueshangtieshu+"<br>");
document.write("注册时间:"+regtime.split(" ")[0]+"<br>");
document.write("IP:"+lastloginip+"<br>");
//document.write("体 力 值:<img border=0 src=images/bar/0.gif width="+userlife/2+" height=9 alt="+userlife+"><br>");
if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("是否在线:离线<br>");
}else{
document.write("是否在线:在线<br>");
}
//document.write("<a target=_blank  href=help.asp?menu=q title=查看虚拟积分计算方法 >绿杠蓝杠满为1万分</a><br>");
document.write("</td></tr></table></td><td height=100%>");
document.write("<table cellSpacing=0 cellPadding=0 width=100% border=0 height=100%><tr><td colspan=3 width=90%><FONT color=#E7C954>●</FONT><a href='Profile.asp?username="+username+"' title='查看"+username+"个人资料'><font STYLE=\"font-size:11pt;color:#000000\">本人资料</font></a> &nbsp;<FONT color=#000000>○</FONT><a href='javascript:' style=cursor:hand onclick=\"javascript:open('friend.asp?menu=post&incept="+username+"','','width=420,height=250')\" title='发送短信息给"+username+"'><font STYLE=\"font-size:11pt;color:#000000\">短信</font></a> &nbsp;<FONT color=#FF0000>●</FONT><a href='friend.asp?menu=add&username="+username+"' title='把"+username+"加入好友'><font STYLE=\"font-size:11pt;color:#000000\">加好友</font></a> &nbsp;<FONT color=#009933>●</FONT><a href='ShowBBS.asp?menu=5&username="+username+"' title='搜索"+username+"发表过的所有主题'><font STYLE=\"font-size:11pt;color:#000000\">搜索</font></a>  ");

//if (userhome!="" && userhome!="http://"){
//document.write("<a target=_blank href="+userhome+"><img alt=访问"+userhome+"的主页 src=images/homepage.gif border=0></a>");
//}

document.write(" &nbsp;<FONT color=#00FF00>●</FONT><a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子><font STYLE=\"font-size:11pt;color:#000000\">复制</font></a> &nbsp;<FONT color=#0000FF>●</FONT><a href='retopic3.asp?id="+topicid+"&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=回复这个主题><font STYLE=\"font-size:11pt;color:#000000\">回复</font></a><a name="+id+"></a> &nbsp;<FONT color=#FFFF00>●</FONT><a href='retopic3.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=引用回复这个帖子><font STYLE=\"font-size:11pt;color:#000000\">引用</font></a> "+iplockstr+" <script>AddPortal('36833','http://www.zhouyi.com.cn/miniweb/36833.gif','1','2.1');</script></td><td align=right STYLE=font-size:11pt;>No.<font color=red><b>主题</b></font>&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr>");


document.write("<tr vAlign=top><td colSpan=4 height=100% style=word-break:break-all STYLE=font-size:11pt;>");

if(delys3 == 1 ){
delys3="&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicling&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">删除</font></a>";
}else{
delys3="";}

if(badlist.indexOf(username) == -1 ){
document.write("<font STYLE=font-size:11pt;>"+ybbcode("<span id=yu"+id+">"+content+"</span>")+"</font>");
}else{
document.write("<span id=yu"+id+">==============================<br>　　　<font color=RED>该用户帖子已被过滤　　　</font><br>==============================</span>")
}
document.write("</td></tr><tr vAlign=top><td colSpan=4 align=right>")
if(getCookie('sign')!='0' && sign!=""){document.write("——————————<br><div style='OVERFLOW:auto' id=div"+id+">"+ybbcode(sign)+"</div>");}
document.write("</td></tr><tr><td height=12></td></tr>"+guanggao+ggurl+"<td Align=right valign=\"bottom\" colSpan=4 STYLE=font-size:12pt;line-height:150%; height=12> 【<a target=I2 onclick=showsubmenu(1) href=showpost3.asp?id="+topicid+"&fankuibianji=1&qbtext="+dturl+">编辑反馈内容</a>】  【<a href=showpost3.asp?id="+topicid+"&delfankui=1&qbtext="+dturl+" "+paixu+">删除反馈内容</a>】</td></tr>"+dongtai+"<tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr><tr vAlign=top><td height=12 width=35%><FONT color=#009933>●</FONT><a href='EditTopic3.asp?id="+topicid+"&retopicid="+id+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=编辑该帖子><font STYLE=\"font-size:11pt;color:#000000\">编辑</font></a>&nbsp;<FONT color=red>●</FONT><a href='LeiTaiCheXiao.asp?id="+topicid+"'><font STYLE=\"font-size:11pt;color:#000000\">撤擂</font></a>"+delys3+"&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopic&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">正常删除</font></a>&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicteshu&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">不法删除</font></a></td><td width=30% align=middle valign=bottom  STYLE=font-size:11pt;> 发表时间:"+posttime+"</td><td colSpan=2 width=35% valign=bottom STYLE=font-size:11pt;>【<a href=javascript:history.back()>返回上页</a>】【<a href=#>返回页首</a>】【<a href=default.asp>返回首页</a>】</td></tr></table></td></tr>");
document.write("</table>")
if(getCookie('sign')!='0' && sign!=""){if(eval("div"+id+".scrollHeight")>150){eval("div"+id+".style.height=150")}}
}


//显示主题检查页面 16ShowPost
function ShowPost16(id,username,content,posttime,honor,userface,sex,birthday,experience,membercode,faction,consort,money,postcount,regtime,userlife,usermail,userhome,sign,paixu,guanggao,ggurl,dongtai,dturl,delys,delys3,yueshangtieshu,lastloginip,iplock)
{
var iplockstr = "";
if(iplock =='1' ){
iplockstr = " &nbsp;<FONT color=red>●</FONT><a onclick=checkclick('您确定要屏蔽该用户IP吗?'); href='IPLock.asp?lockusername="+username+"&userip="+lastloginip+"' target=QDtemp title=屏蔽该用户IP><font STYLE=\"font-size:11pt;color:red;font-weight: bold;\">IP屏蔽</font></a>&nbsp;"
}


document.write("<table class=a2 style=TABLE-LAYOUT:fixed cellPadding=5 width=955 align=center border=0 cellSpacing=1>");
ii++
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=156 align=center valign=top>");
document.write("<table border=0 width=95%><tr><td><font style=font-size:10pt><b>"+username+"</b></font></td><td align=right valign=top>");

//if (""+sex+""!=''){
//document.write("<img src=images/"+sex+".gif>　")
//}

//document.write(astro(""+birthday+""));
document.write("</td></tr></table>");

if (getCookie('showface')!='0'){
document.write("<img src='"+userface+"' onload='javascript:if(this.width>120)this.width=120;if(this.height>120)this.height=120;'>")
}

document.write("<br><br><table border=0 width=95%><tr ><td style=line-height:150% STYLE=font-size:10pt; >"+level(experience,membercode,username,moderated)+"客户等级:"+levelname+"<br>");
//if (""+faction+"" !="") {document.write("门　　派:"+faction+"<br>");}
//if (""+consort+"" !="") {document.write("配　　偶:"+consort+"<br>");}
//document.write("虚拟积分:"+experience+"<br>");
//document.write("社区金币:"+money+"<br>");
if (parseInt(postcount)<parseInt(yueshangtieshu))
{yueshangtieshu=postcount
}
document.write("发帖回帖总数:"+postcount+"<br>");
document.write("本月合格帖数:"+yueshangtieshu+"<br>");
document.write("注册时间:"+regtime.split(" ")[0]+"<br>");
document.write("IP:"+lastloginip+"<br>");
//document.write("体 力 值:<img border=0 src=images/bar/0.gif width="+userlife/2+" height=9 alt="+userlife+"><br>");
if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("是否在线:离线<br>");
}else{
document.write("是否在线:在线<br>");
}
//document.write("<a target=_blank  href=help.asp?menu=q title=查看虚拟积分计算方法 >绿杠蓝杠满为1万分</a><br>");
document.write("</td></tr></table></td><td height=100%>");
document.write("<table cellSpacing=0 cellPadding=0 width=100% border=0 height=100%><tr><td colspan=3 width=90%><FONT color=#E7C954>●</FONT><a href='Profile.asp?username="+username+"' title='查看"+username+"个人资料'><font STYLE=\"font-size:11pt;color:#000000\">本人资料</font></a> &nbsp;<FONT color=#000000>○</FONT><a href='javascript:' style=cursor:hand onclick=\"javascript:open('friend.asp?menu=post&incept="+username+"','','width=420,height=250')\" title='发送短信息给"+username+"'><font STYLE=\"font-size:11pt;color:#000000\">短信</font></a> &nbsp;<FONT color=#FF0000>●</FONT><a href='friend.asp?menu=add&username="+username+"' title='把"+username+"加入好友'><font STYLE=\"font-size:11pt;color:#000000\">加好友</font></a> &nbsp;<FONT color=#009933>●</FONT><a href='ShowBBS.asp?menu=5&username="+username+"' title='搜索"+username+"发表过的所有主题'><font STYLE=\"font-size:11pt;color:#000000\">搜索</font></a>  ");

//if (userhome!="" && userhome!="http://"){
//document.write("<a target=_blank href="+userhome+"><img alt=访问"+userhome+"的主页 src=images/homepage.gif border=0></a>");
//}

document.write(" &nbsp;<FONT color=#00FF00>●</FONT><a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子><font STYLE=\"font-size:11pt;color:#000000\">复制</font></a> &nbsp;<FONT color=#0000FF>●</FONT><a href='retopic3.asp?id="+topicid+"&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=回复这个主题><font STYLE=\"font-size:11pt;color:#000000\">回复</font></a><a name="+topicid+"></a> &nbsp;<FONT color=#FFFF00>●</FONT><a href='retopic3.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=引用回复这个帖子><font STYLE=\"font-size:11pt;color:#000000\">引用</font></a> "+iplockstr+" </td><td align=right STYLE=font-size:11pt;>No.<font color=red><b>主题</b></font>&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr>");


document.write("<tr vAlign=top><td colSpan=4 height=100% style=word-break:break-all STYLE=font-size:11pt;>");

if(delys3 == 1 ){
delys3="&nbsp;&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicling&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">删除</font></a>";
}else{
delys3="";}

if(badlist.indexOf(username) == -1 ){
document.write("<font STYLE=font-size:11pt;>"+ybbcode("<span id=yu"+id+">"+content+"</span>")+"</font>");
}else{
document.write("<span id=yu"+id+">==============================<br>　　　<font color=RED>该用户帖子已被过滤　　　</font><br>==============================</span>")
}
document.write("</td></tr><tr vAlign=top><td colSpan=4 align=right>")
if(getCookie('sign')!='0' && sign!=""){document.write("——————————<br><div style='OVERFLOW:auto' id=div"+id+">"+ybbcode(sign)+"</div>");}
document.write("</td></tr><tr><td height=12></td></tr>"+guanggao+ggurl+"<td Align=right valign=\"bottom\" colSpan=4 STYLE=font-size:12pt;line-height:150%; height=12> 【<a target=I2 onclick=showsubmenu(1) href=showpost3.asp?id="+topicid+"&fankuibianji=1&qbtext="+dturl+">编辑反馈内容</a>】  【<a href=showpost3.asp?id="+topicid+"&delfankui=1&qbtext="+dturl+" "+paixu+">删除反馈内容</a>】</td></tr>"+dongtai+"<tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr><tr vAlign=top><td height=12 width=35%><FONT color=#009933>●</FONT><a href='16EditTopic.asp?id="+topicid+"&retopicid="+id+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=编辑该帖子><font STYLE=\"font-size:11pt;color:#000000\">编辑</font></a>"+delys3+" &nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopic&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">正常删除</font></a> &nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicteshu&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">不法删除</font></a></td><td width=30%  valign=bottom  STYLE=font-size:11pt;> 发表时间:"+posttime+"</td></tr></table></td></tr>");
document.write("</table>")
if(getCookie('sign')!='0' && sign!=""){if(eval("div"+id+".scrollHeight")>150){eval("div"+id+".style.height=150")}}
}



//显示主题
function ShowPost2(id,username,content,posttime,honor,userface,sex,birthday,experience,membercode,faction,consort,money,postcount,regtime,userlife,usermail,userhome,sign,paixu,guanggao,ggurl,dongtai,dturl,delys,delys3,yueshangtieshu,lastloginip,iplock)
{

var iplockstr = "";
if(iplock =='1' ){
iplockstr = " &nbsp;<FONT color=red>●</FONT><a onclick=checkclick('您确定要屏蔽该用户IP吗?'); href='IPLock.asp?lockusername="+username+"&userip="+lastloginip+"' target=QDtemp title=屏蔽该用户IP><font STYLE=\"font-size:11pt;color:red;font-weight: bold;\">IP屏蔽</font></a>&nbsp;"
}
document.write("<table class=a2 style=TABLE-LAYOUT:fixed cellPadding=5 width=955 align=center border=0 cellSpacing=1>");
ii++
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=156 align=center valign=top>");
document.write("<table border=0 width=95%><tr><td><font style=font-size:10pt><b>"+username+"</b></font></td><td align=right valign=top>");

//if (""+sex+""!=''){
//document.write("<img src=images/"+sex+".gif>　")
//}

//document.write(astro(""+birthday+""));
document.write("</td></tr></table>");

if (getCookie('showface')!='0'){
document.write("<img src='"+userface+"' onload='javascript:if(this.width>120)this.width=120;if(this.height>120)this.height=120;'>")
}

document.write("<br><br><table border=0 width=95%><tr ><td style=line-height:150% STYLE=font-size:10pt; >"+level(experience,membercode,username,moderated)+"客户等级:"+levelname+"<br>");
//if (""+faction+"" !="") {document.write("门　　派:"+faction+"<br>");}
//if (""+consort+"" !="") {document.write("配　　偶:"+consort+"<br>");}
//document.write("虚拟积分:"+experience+"<br>");
//document.write("社区金币:"+money+"<br>");
if (parseInt(postcount)<parseInt(yueshangtieshu))
{yueshangtieshu=postcount
}
document.write("发帖回帖总数:"+postcount+"<br>");
document.write("本月合格帖数:"+yueshangtieshu+"<br>");
document.write("注册时间:"+regtime.split(" ")[0]+"<br>");
document.write("IP:"+lastloginip+"<br>");
//document.write("体 力 值:<img border=0 src=images/bar/0.gif width="+userlife/2+" height=9 alt="+userlife+"><br>");
if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("是否在线:离线<br>");
}else{
document.write("是否在线:在线<br>");
}
//document.write("<a target=_blank  href=help.asp?menu=q title=查看虚拟积分计算方法 >绿杠蓝杠满为1万分</a><br>");
document.write("</td></tr></table></td><td height=100%>");
document.write("<table cellSpacing=0 cellPadding=0 width=100% border=0 height=100%><tr><td colspan=3 width=90%><FONT color=#E7C954>●</FONT><a href='Profile.asp?username="+username+"' title='查看"+username+"个人资料'><font STYLE=\"font-size:11pt;color:#000000\">本人资料</font></a> &nbsp;<FONT color=#000000>○</FONT><a href='javascript:' style=cursor:hand onclick=\"javascript:open('friend.asp?menu=post&incept="+username+"','','width=420,height=250')\" title='发送短信息给"+username+"'><font STYLE=\"font-size:11pt;color:#000000\">短信</font></a> &nbsp;<FONT color=#FF0000>●</FONT><a href='friend.asp?menu=add&username="+username+"' title='把"+username+"加入好友'><font STYLE=\"font-size:11pt;color:#000000\">加好友</font></a> &nbsp;<FONT color=#009933>●</FONT><a href='ShowBBS.asp?menu=5&username="+username+"' title='搜索"+username+"发表过的所有主题'><font STYLE=\"font-size:11pt;color:#000000\">搜索</font></a>  ");

//if (userhome!="" && userhome!="http://"){
//document.write("<a target=_blank href="+userhome+"><img alt=访问"+userhome+"的主页 src=images/homepage.gif border=0></a>");
//}

document.write(" &nbsp;<FONT color=#00FF00>●</FONT><a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子><font STYLE=\"font-size:11pt;color:#000000\">复制</font></a> &nbsp;<FONT color=#0000FF>●</FONT><a href='retopic3.asp?id="+topicid+"&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=回复这个主题><font STYLE=\"font-size:11pt;color:#000000\">回复</font></a><a name="+id+"></a> &nbsp;<FONT color=#FFFF00>●</FONT><a href='retopic3.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=引用回复这个帖子><font STYLE=\"font-size:11pt;color:#000000\">引用</font></a> "+iplockstr+" <script>AddPortal('36833','http://www.zhouyi.com.cn/miniweb/36833.gif','1','2.1');</script></td><td align=right STYLE=font-size:11pt;>No.<font color=red><b>主题</b></font>&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr>");


document.write("<tr vAlign=top><td colSpan=4 height=100% style=word-break:break-all STYLE=font-size:11pt;>");

if(delys3 == 1 ){
delys3="&nbsp;&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicling&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">删除</font></a>";
}else{
delys3="";}

if(badlist.indexOf(username) == -1 ){
document.write("<font STYLE=font-size:11pt;>"+ybbcode("<span id=yu"+id+">"+content+"</span>")+"</font>");
}else{
document.write("<span id=yu"+id+">==============================<br>　　　<font color=RED>该用户帖子已被过滤　　　</font><br>==============================</span>")
}
document.write("</td></tr><tr vAlign=top><td colSpan=4 align=right>")
if(getCookie('sign')!='0' && sign!=""){document.write("——————————<br><div style='OVERFLOW:auto' id=div"+id+">"+ybbcode(sign)+"</div>");}
document.write("</td></tr><tr><td height=12></td></tr>"+guanggao+ggurl+"<td Align=right valign=\"bottom\" colSpan=4 STYLE=font-size:12pt;line-height:150%; height=12> 【<a target=I2 onclick=showsubmenu(1) href=showpost4.asp?id="+topicid+"&fankuibianji=1&qbtext="+dturl+">编辑反馈内容</a>】  【<a href=showpost4.asp?id="+topicid+"&delfankui=1&qbtext="+dturl+" "+paixu+">删除反馈内容</a>】</td></tr>"+dongtai+"<tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr><tr vAlign=top><td height=12 width=35%><FONT color=#009933>●</FONT><a href='EditTopic3.asp?id="+topicid+"&retopicid="+id+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=编辑该帖子><font STYLE=\"font-size:11pt;color:#000000\">编辑</font></a>"+delys3+" &nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopic&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">正常删除</font></a> &nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicteshu&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">不法删除</font></a></td><td width=30%  valign=bottom  STYLE=font-size:11pt;> 发表时间:"+posttime+"</td><td colSpan=2 width=35% valign=bottom STYLE=font-size:11pt;>【<a href=javascript:history.back()>返回上页</a>】【<a href=#>返回页首</a>】【<a href=default.asp>返回首页</a>】</td></tr></table></td></tr>");
document.write("</table>")
if(getCookie('sign')!='0' && sign!=""){if(eval("div"+id+".scrollHeight")>150){eval("div"+id+".style.height=150")}}
}

//显示帖子
function ShowPost(id,username,content,posttime,honor,userface,sex,birthday,experience,membercode,faction,consort,money,postcount,regtime,userlife,usermail,userhome,sign,paixu,guanggao,ggurl,dongtai,dturl,delys,delys3,yueshangtieshu,lastloginip,iplock,goodrepost)
{

var iplockstr = "";
if(iplock =='1' ){
iplockstr = " &nbsp;<FONT color=red>●</FONT><a onclick=checkclick('您确定要屏蔽该用户IP吗?'); href='IPLock.asp?lockusername="+username+"&userip="+lastloginip+"' target=QDtemp title=屏蔽该用户IP><font STYLE=\"font-size:11pt;color:red;font-weight: bold;\">IP屏蔽</font></a>&nbsp;"
}
document.write("<table class=a2 style=TABLE-LAYOUT:fixed cellPadding=5 width=955 align=center border=0 cellSpacing=1>");
ii++
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=156 align=center valign=top>");
document.write("<table border=0 width=95%><tr><td><font style=font-size:10pt><b>"+username+"</b></font></td><td align=right valign=top>");

//if (""+sex+""!=''){
//document.write("<img src=images/"+sex+".gif>　")
//}

//document.write(astro(""+birthday+""));
document.write("</td></tr></table>");

if (getCookie('showface')!='0'){
document.write("<img src='"+userface+"' onload='javascript:if(this.width>120)this.width=120;if(this.height>120)this.height=120;'>")
}

document.write("<br><br><table border=0 width=95%><tr ><td style=line-height:150% STYLE=font-size:10pt; >"+level(experience,membercode,username,moderated)+"客户等级:"+levelname+"<br>");
//if (""+faction+"" !="") {document.write("门　　派:"+faction+"<br>");}
//if (""+consort+"" !="") {document.write("配　　偶:"+consort+"<br>");}
//document.write("虚拟积分:"+experience+"<br>");
//document.write("社区金币:"+money+"<br>");
if (parseInt(postcount)<parseInt(yueshangtieshu))
{yueshangtieshu=postcount
}
document.write("发帖回帖总数:"+postcount+"<br>");
document.write("本月合格帖数:"+yueshangtieshu+"<br>");
document.write("注册时间:"+regtime.split(" ")[0]+"<br>");
document.write("IP:"+lastloginip+"<br>");
//document.write("体 力 值:<img border=0 src=images/bar/0.gif width="+userlife/2+" height=9 alt="+userlife+"><br>");
if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("是否在线:离线<br>");
}else{
document.write("是否在线:在线<br>");
}
//document.write("<a target=_blank  href=help.asp?menu=q title=查看虚拟积分计算方法 >绿杠蓝杠满为1万分</a><br>");
document.write("</td></tr></table></td><td height=100%>");
document.write("<table cellSpacing=0 cellPadding=0 width=100% border=0 height=100%><tr><td colspan=3 width=90%><FONT color=#E7C954>●</FONT><a href='Profile.asp?username="+username+"' title='查看"+username+"个人资料'><font STYLE=\"font-size:11pt;color:#000000\">本人资料</font></a> &nbsp;<FONT color=#000000>○</FONT><a href='javascript:' style=cursor:hand onclick=\"javascript:open('friend.asp?menu=post&incept="+username+"','','width=420,height=250')\" title='发送短信息给"+username+"'><font STYLE=\"font-size:11pt;color:#000000\">短信</font></a> &nbsp;<FONT color=#FF0000>●</FONT><a href='friend.asp?menu=add&username="+username+"' title='把"+username+"加入好友'><font STYLE=\"font-size:11pt;color:#000000\">加好友</font></a> &nbsp;<FONT color=#009933>●</FONT><a href='ShowBBS.asp?menu=5&username="+username+"' title='搜索"+username+"发表过的所有主题'><font STYLE=\"font-size:11pt;color:#000000\">搜索</font></a>  ");

if(delys3 == 1 ){
delys3="&nbsp;&nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicling&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">删除</font></a>";
}else{
delys3="";}

//if (userhome!="" && userhome!="http://"){
//document.write("<a target=_blank href="+userhome+"><img alt=访问"+userhome+"的主页 src=images/homepage.gif border=0></a>");
//}

document.write(" &nbsp;<FONT color=#00FF00>●</FONT><a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子><font STYLE=\"font-size:11pt;color:#000000\">复制</font></a> &nbsp;<FONT color=#0000FF>●</FONT><a href='retopic3.asp?id="+topicid+"&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=回复这个主题><font STYLE=\"font-size:11pt;color:#000000\">回复</font></a><a name="+id+"></a> &nbsp;<FONT color=#FFFF00>●</FONT><a href='retopic3.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=引用回复这个帖子><font STYLE=\"font-size:11pt;color:#000000\">引用</font></a> "+iplockstr+"  </td><td align=right STYLE=font-size:11pt;>No.<font color=red><b>"+paixu+"</b></font>&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr>");


document.write("<tr vAlign=top><td colSpan=4 height=20 style=word-break:break-all STYLE=font-size:11pt;>");

if(goodrepost =='1' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#339900><U>本帖是您A答案竞选最佳阐述奖窗口的对应帖，如编辑本帖，阐述内容会随之改变。</U></font>");
}
if(goodrepost =='2' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#339900><U>本帖是您B答案竞选最佳阐述奖窗口的对应帖，如编辑本帖，阐述内容会随之改变。</U></font>");
}
if(goodrepost =='3' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#339900><U>本帖是您C答案竞选最佳阐述奖窗口的对应帖，如编辑本帖，阐述内容会随之改变。</U></font>");
}
if(goodrepost =='4' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#3300CC><U>答案公布：A答案正确，以下是信息来源。</U></font>");
}
if(goodrepost =='5' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#3300CC><U>答案公布：B答案正确，以下是信息来源。</U></font>");
}
if(goodrepost =='6' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#3300CC><U>答案公布：C答案正确，以下是信息来源。</U></font>");
}
if(goodrepost =='7' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#3300CC><U>本帖是您参与本擂命题互动的对应帖，如编辑本帖，阐述内容会随之改变。</U></font>");
}
if(goodrepost =='8' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=#3300CC><U>擂主总结：</U></font>");
}
if(goodrepost =='9' ){
document.write("<font STYLE=font-size:11pt;line-height:120%; color=red><U>老怪点评：</U></font>");
}
document.write("</TD></TR><TR><TD colSpan=4 height=2 style=word-break:break-all> </TD></TR>");
document.write("<tr vAlign=top><td colSpan=4 height=100% style=word-break:break-all STYLE=font-size:11pt;>");

if(badlist.indexOf(username) == -1 ){
document.write("<font STYLE=font-size:11pt;>"+ybbcode("<span id=yu"+id+">"+content+"</span>")+"</font>");
}else{
document.write("<span id=yu"+id+">==============================<br>　　　<font color=RED>该用户帖子已被过滤　　　</font><br>==============================</span>")
}
document.write("</td></tr><tr vAlign=top><td colSpan=4 align=right>")
if(getCookie('sign')!='0' && sign!=""){document.write("——————————<br><div style='OVERFLOW:auto' id=div"+id+">"+ybbcode(sign)+"</div>");}
document.write("</td></tr><tr><td colSpan=4 height=25>&nbsp;</td></tr><tr><td valign=\"bottom\" STYLE=font-size:11pt;line-height:150%; colSpan=4 background=\"../luntan/images/ty04.gif\"></td></tr><tr vAlign=top><td valign=\"bottom\" colSpan=4 STYLE=font-size:11pt;line-height:150%; height=25><font color=\"#0000FF\"><b>桥路动态：</b></font><a href="+dturl+" target=_blank>"+dongtai+"<a></td></tr><tr><td valign=\"bottom\" STYLE=font-size:11pt;line-height:150%; colSpan=4 background=\"../luntan/images/ty04.gif\"></td></tr><tr vAlign=top><td valign=\"bottom\" colSpan=4 STYLE=font-size:11pt; height=24><a href=\"../../rongyu.htm\" title=\"分享一份难得的荣誉\" target=_blank><font color=\"#FF0000\"><b>易山老怪：</b></font></a><a href="+ggurl+" target=_blank>"+guanggao+"<a></td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr><tr vAlign=top><td height=12 width=35%><FONT color=#009933>●</FONT><a href='EditTopic3.asp?id="+topicid+"&retopicid="+id+"'  target=\"reedit\" onClick=\"parent.floater4.style.display='block';parent.msgDiv.style.display='block';\" title=编辑该帖子><font STYLE=\"font-size:11pt;color:#000000\">编辑</font></a>"+delys3+" &nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopic&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">正常删除</font></a> &nbsp;<FONT color=red>●</FONT><a href='manage.asp?menu=deltopicteshu&id="+topicid+"&retopicid="+id+"'><font STYLE=\"font-size:11pt;color:#000000\">不法删除</font></a></td><td width=30%  valign=bottom  STYLE=font-size:11pt;>发表时间:"+posttime+"</td><td colSpan=2 width=40% valign=bottom STYLE=font-size:11pt;>【<a href=javascript:history.back()>返回上页</a>】【<a href=#>返回页首</a>】【<a href=default.asp>返回首页</a>】</td></tr></table></td></tr>");
document.write("</table>")
if(getCookie('sign')!='0' && sign!=""){if(eval("div"+id+".scrollHeight")>150){eval("div"+id+".style.height=150")}}
}

//帖子列表
function ShowForum(ID,topic,forumid,newtopic,username,Views,icon,toptopic,locktopic,pollresult,goodtopic,replies,lastname,lasttime,leitt,leittxt,ltmxLTOK,ctsj,PollOver)
{
if(lasttime.indexOf(newDate) == 0){lasttime = lasttime.replace(newDate,"今日");}
topic = topic.replace(key_word,"<font color=red>"+key_word+"<\/font>");
if (toptopic == 2) {reimage="<img src=images/top.gif border=0>"}
else
if (toptopic == 1) {reimage="<img src=images/f_top.gif border=0>"}
else
if (locktopic== 1) {reimage="<img src=images/f_locked.gif border=0>"}
else
if (pollresult!= '') {reimage="<img src=images/f_poll.gif border=0>"}
else
if ((replies>15) || (Views>150)) {reimage="<img src=images/f_hot.gif border=0>"}
else
if (replies>0) {reimage="<img src=images/f_new.gif border=0>"}
else{reimage="<img src=images/f_norm.gif border=0>"}

if ((goodtopic== 1)||(replies>50)) {reimage2="<img src=images/topicgood.gif>"}
else
if (username == cookieusername) {reimage2="<img src=images/my.gif>"}
else{reimage2=""}

if (parseInt(replies)>0) {reimage3=parseInt(replies)}
else{reimage3="-"}

if (icon>0) {icon="<img src=images/brow/"+icon+".gif>"}

if (leitt=="1"|leitt=="2"|leitt=="3"|leitt=="4"|leitt=="5"|leitt=="6"|leitt=="7"|leitt=="8"|leitt=="9"|leitt=="10"|leitt=="11"|leitt=="12")
{if (PollOver=="0")
	{reimage="<img src=images/f_new3.gif border=0 WIDTH=22 HEIGHT=28>"
	}else{reimage="<img src=images/gif002.gif border=0 WIDTH=20 HEIGHT=26>"}}

document.write("<tr height=25><td align=middle width=3% class=a4><a target=_blank href=ShowPost.asp?id="+ID+">"+reimage+"</a></td>");
//document.write("<td width=3% class=a3 align=center>"+reimage2+"</td>");
if (leitt=='1')
{//擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='2')
{//擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='3')
{//时事擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ssShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=='4')
{//足彩擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=zucaiShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='5')
{//竞技擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=jingjiShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='6')
{//股市擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=gushiShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='7')
{//个股股市擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=dgushiShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=='8')
{//六爻求测擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyqiuceShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='9')
{//六爻求解擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyqiujieShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='10')
{//四柱求测擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=szqiuceShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='11')
{//四柱求解擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=szqiujieShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='12')
{//理数求解擂台
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ylqiujieShowPostlt.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=='0')
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPost.asp?forumid="+forumid+"&id="+ID+" title=点击进入浏览主题、发帖、回帖>"+topic+"</a>");
}

if (replies > 10) {
var topicpage=""
var tol=replies/10+1;

for (var i=1; i < tol; i++) {
if(i<2 || i>=tol-1){
if (leitt=='1')
{//四柱擂台
topicpage=topicpage+"<b><a href=ShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}

if (leitt=='2')
{//六爻擂台
topicpage=topicpage+"<b><a href=lyShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}

if (leitt=='3')
{//时事擂台
topicpage=topicpage+"<b><a href=ssShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}

if (leitt=='4')
{//足彩擂台
topicpage=topicpage+"<b><a href=zucaiShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='5')
{//竞技擂台
topicpage=topicpage+"<b><a href=jingjiShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='6')
{//股市擂台
topicpage=topicpage+"<b><a href=gushiShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='7')
{//个股股市擂台
topicpage=topicpage+"<b><a href=dgushiShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}

if (leitt=='8')
{//六爻求测擂台
topicpage=topicpage+"<b><a href=lyqiuceShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='9')
{//六爻求解擂台
topicpage=topicpage+"<b><a href=lyqiujieShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='10')
{//四柱求测擂台
topicpage=topicpage+"<b><a href=szqiuceShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='11')
{//四柱求解擂台
topicpage=topicpage+"<b><a href=szqiujieShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='12')
{//理数求解擂台
topicpage=topicpage+"<b><a href=ylqiujieShowPostlt.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (leitt=='0')
{
topicpage=topicpage+"<b><a href=ShowPost.asp?forumid="+forumid+"&id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}

}
if (i >= tol-2  && i<tol-1 && i>1){topicpage=topicpage+"… ";}
}
document.write(" ( "+topicpage+")");
}
//主题显示列表
document.write(" "+newtopic+leittxt+"</td><td align=middle class=a3 STYLE=font-size:11pt;>"+ctsj+"</td><td align=middle class=a3 STYLE=font-size:11pt;><a href=Profile.asp?username="+username+" title=查看作者信息>"+username+"</a></td><td align=middle class=a4 STYLE=font-size:11pt;>"+reimage3+"</td><td align=middle width=2% class=a3 STYLE=font-size:11pt;>"+Views+"</td><td class=a4 >&nbsp;"+lasttime+"<a href=Profile.asp?username="+lastname+">"+lastname+"</a></td></tr>");
document.write("<tr height=25 style=display:none id=follow"+ID+"><td width=3% class=a4>　</td><td id=followTd"+ID+" align=left class=a4 width=94% colspan=6>　Loading...</td></tr>");
}

//帖子列表(显示来源）
function ShowForum3(oo,pp,ID,topic,newtopic,username,Views,icon,toptopic,locktopic,pollresult,goodtopic,replies,lastname,lasttime,leitt,leittxt,ltmxLTOK,PollOver)
{
if(lasttime.indexOf(newDate) == 0){lasttime = lasttime.replace(newDate,"今日");}
topic = topic.replace(key_word,"<font color=red>"+key_word+"<\/font>");
if (toptopic == 2) {reimage="<img src=images/top.gif border=0>"}
else
if (toptopic == 1) {reimage="<img src=images/f_top.gif border=0>"}
else
if (locktopic== 1) {reimage="<img src=images/f_locked.gif border=0>"}
else
if (pollresult!= '') {reimage="<img src=images/f_poll.gif border=0>"}
else
if ((replies>15) || (Views>150)) {reimage="<img src=images/f_hot.gif border=0>"}
else
if (replies>0) {reimage="<img src=images/f_new.gif border=0>"}
else{reimage="<img src=images/f_norm.gif border=0>"}

if (goodtopic== 1) {reimage2="<img src=images/topicgood.gif>"}
else
if (username == cookieusername) {reimage2="<img src=images/my.gif>"}
else{reimage2=""}

//if (parseInt(replies)+parseInt(ltmxLTOK)>0) {reimage3=parseInt(replies)+parseInt(ltmxLTOK)}
if (parseInt(replies)>0) {reimage3=parseInt(replies)}
else{reimage3="-"}

if (icon>0) {icon="<img src=images/brow/"+icon+".gif>"}

if (leitt=="1"|leitt=="2"|leitt=="3"|leitt=="4"|leitt=="5"|leitt=="6"|leitt=="7"|leitt=="8"|leitt=="9"|leitt=="10"|leitt=="11"|leitt=="12")
{if (PollOver=="0")
	{reimage="<img src=images/f_new3.gif border=0 WIDTH=22 HEIGHT=28>"
	}else{reimage="<img src=images/gif002.gif border=0 WIDTH=20 HEIGHT=26>"}}

document.write("<tr height=25><td align=middle width=3% class=a4><a target=_blank href=ShowPost.asp?id="+ID+">"+reimage+"</a></td>");
//document.write("<td width=3% class=a3 align=center>"+reimage2+"</td>");
if (leitt=="1")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="2")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="3")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ssShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="4")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=zucaiShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="5")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=jingjiShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="6")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=gushiShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=="7")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=dgushiShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=="8")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyqiuceShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="9")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyqiujieShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="10")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=szqiuceShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="11")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=szqiujieShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="12")
{document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ylqiujieShowPostlt.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="0"){
document.write("<td class=a4 STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPost.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览主题、发帖、回帖>"+topic+"</a>");
}
if (replies > 10) {
var topicpage=""
var tol=replies/10+1;

for (var i=1; i < tol; i++) {
if(i<2 || i>=tol-1){

if (leitt=='1')
{//擂台
topicpage=topicpage+"<b><a href=ShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='2')
{//擂台
	topicpage=topicpage+"<b><a href=lyShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='3')
{//擂台
	topicpage=topicpage+"<b><a href=ssShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}

if (leitt=='4')
{//足彩擂台
	topicpage=topicpage+"<b><a href=zucaiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='5')
{//竞技擂台
	topicpage=topicpage+"<b><a href=jingjiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='6')
{//股市擂台
	topicpage=topicpage+"<b><a href=gushiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}

if (leitt=='7')
{//个股股市擂台
	topicpage=topicpage+"<b><a href=dgushiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}

if (leitt=='8')
{//六爻求测擂台
	topicpage=topicpage+"<b><a href=lyqiuceShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='9')
{//六爻求解擂台
	topicpage=topicpage+"<b><a href=lyqiujieShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='10')
{//四柱求测擂台
	topicpage=topicpage+"<b><a href=szqiuceShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='11')
{//四柱求解擂台
	topicpage=topicpage+"<b><a href=szqiujieShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='12')
{//理数求解擂台
	topicpage=topicpage+"<b><a href=ylqiujieShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (leitt=='0')
{topicpage=topicpage+"<b><a href=ShowPost.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

}
if (i >= tol-2  && i<tol-1 && i>1){topicpage=topicpage+"… ";}
}
document.write(" ( "+topicpage+")");
}
//主题显示列表
document.write(" "+newtopic+leittxt+"</td><td align=middle class=a3 ><a href=ShowForum.asp?forumid="+oo+">"+pp+"</a></td><td align=middle class=a3 STYLE=font-size:11pt;><a href=Profile.asp?username="+username+" title=查看作者信息>"+username+"</a></td><td align=middle class=a4 STYLE=font-size:11pt;>"+reimage3+"</td><td align=middle class=a3 STYLE=font-size:11pt;>"+Views+"</td><td class=a4 >&nbsp;"+lasttime+"<a href=Profile.asp?username="+lastname+">"+lastname+"</a></td></tr>");
document.write("<tr height=25 style=display:none id=follow"+ID+"><td class=a4>　</td><td id=followTd"+ID+" align=left class=a4 colspan=6>　Loading...</td></tr>");
}

//帖子列表(显示来源）
function ShowForum4(oo,pp,ID,topic,newtopic,username,Views,icon,toptopic,locktopic,pollresult,goodtopic,replies,lastname,lasttime,del2,delys)
{
if(lasttime.indexOf(newDate) == 0){lasttime = lasttime.replace(newDate,"今日");}
topic = topic.replace(key_word,"<font color=red>"+key_word+"<\/font>");
if (toptopic == 2) {reimage="<img src=images/top.gif border=0>"}
else
if (toptopic == 1) {reimage="<img src=images/f_top.gif border=0>"}
else
if (locktopic== 1) {reimage="<img src=images/f_locked.gif border=0>"}
else
if (pollresult!= '') {reimage="<img src=images/f_poll.gif border=0>"}
else
if ((replies>15) || (Views>150)) {reimage="<img src=images/f_hot.gif border=0>"}
else
if (replies>0) {reimage="<img src=images/f_new.gif border=0>"}
else{reimage="<img src=images/f_norm.gif border=0>"}

if (goodtopic== 1) {reimage2="<img src=images/topicgood.gif>"}
else
if (username == cookieusername) {reimage2="<img src=images/my.gif>"}
else{reimage2=""}

if (replies>0) {reimage3=replies}
else{reimage3="-"}

if (icon>0) {icon="<img src=images/brow/"+icon+".gif>"}

document.write("<tr height=25><td align=middle width=3% class=a4><a target=_blank href=ShowPost.asp?id="+ID+">"+reimage+"</a></td>");
//document.write("<td width=3% class=a3 align=center>"+reimage2+"</td>");
document.write("<td class=a4 width=40% STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPost.asp?id="+ID+"&forumid="+oo+" title=点击进入浏览主题、发帖、回帖>"+topic+"</a>");

if (replies > 10) {
var topicpage=""
var tol=replies/10+1;

for (var i=1; i < tol; i++) {
if(i<2 || i>=tol-1){
topicpage=topicpage+"<b><a href=ShowPost.asp?id="+ID+"&topage="+i+">"+i+"</a></b> ";
}
if (i >= tol-2  && i<tol-1 && i>1){topicpage=topicpage+"… ";}
}
document.write(" ( "+topicpage+")");
}
//主题显示列表
document.write(" "+newtopic+""+delys+"</td><td align=middle width=13% class=a3 ><a href=ShowForum.asp?forumid="+oo+">"+pp+"</a></td><td align=middle width=9% class=a3 STYLE=font-size:11pt;><a href=Profile.asp?username="+username+" title=查看作者信息>"+username+"</a></td><td align=middle width=4% class=a4 STYLE=font-size:11pt;>"+reimage3+"</td><td align=middle width=4% class=a3 STYLE=font-size:11pt;>"+Views+"</td><td width=20% class=a4 >&nbsp;"+lasttime+"<a href=Profile.asp?username="+lastname+">"+lastname+"</a></td><td width=2% class=a3 align=center><a href='?menu2=deltopic&id="+ID+"'>"+del2+"</a></td></tr>");
document.write("<tr height=25 style=display:none id=follow"+ID+"><td width=3% class=a4>　</td><td id=followTd"+ID+" align=left class=a4 width=94% colspan=6>　Loading...</td></tr>");
}
//帖子列表
function ShowForum2(ID,forumid,topic,newtopic,username,Views,icon,toptopic,locktopic,pollresult,goodtopic,replies,posttime)
{
if(posttime.indexOf(newDate) == 0){posttime = posttime.replace(newDate,"今日");}
topic = topic.replace(key_word,"<font color=red>"+key_word+"<\/font>");
if (toptopic == 2) {reimage="<img src=images/top.gif border=0>"}
else
if (toptopic == 1) {reimage="<img src=images/f_top.gif border=0>"}
else
if (locktopic== 1) {reimage="<img src=images/f_locked.gif border=0>"}
else
if (pollresult!= '') {reimage="<img src=images/f_poll.gif border=0>"}
else
if ((replies>15) || (Views>150)) {reimage="<img src=images/f_hot.gif border=0>"}
else
if (replies>0) {reimage="<img src=images/f_new.gif border=0>"}
else{reimage="<img src=images/f_norm.gif border=0>"}

if (goodtopic== 1) {reimage2="<img src=images/topicgood.gif>"}
else
if (username == cookieusername) {reimage2="<img src=images/my.gif>"}
else{reimage2=""}

if (replies>0) {reimage3=replies}
else{reimage3="-"}

if (icon>0) {icon="<img src=images/brow/"+icon+".gif>"}

document.write("<tr height=25><td align=middle width=3% class=a4><a target=_blank href=ShowPost.asp?id="+ID+">"+reimage+"</a></td>");
document.write("<td width=3% class=a3 align=center>"+reimage2+"</td>");
document.write("<td class=a4 width=45% STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPost.asp?id="+ID+"&forumid="+forumid+" title=点击进入浏览主题、发帖、回帖  target=_blank>"+topic+"</a>");

if (replies > 10) {
var topicpage=""
var tol=replies/10+1;

for (var i=1; i < tol; i++) {
if(i<2 || i>=tol-1){
topicpage=topicpage+"<b><a href=ShowPost.asp?id="+ID+"&topage="+ i +">"+i+"</a></b> ";
}
if (i >= tol-2  && i<tol-1 && i>1){topicpage=topicpage+"… ";}
}
document.write(" ( "+topicpage+")");
}
//主题显示列表
document.write(" "+newtopic+"</td><td align=middle width=9% class=a3 STYLE=font-size:11pt;><a href=Profile.asp?username="+username+" title=查看作者信息>"+username+"</a></td><td align=middle width=6% class=a4 STYLE=font-size:11pt;>"+reimage3+"</td><td align=middle width=7% class=a3 STYLE=font-size:11pt;>"+Views+"</td><td width=27% class=a4 STYLE=font-size:11pt;>&nbsp;"+posttime+"</td></tr>");
document.write("<tr height=25 style=display:none id=follow"+ID+"><td width=3% class=a4>　</td><td width=3% class=a3>　</td><td id=followTd"+ID+" align=left class=a4 width=94% colspan=5>　Loading...</td></tr>");
}

//帖子列表 显示我的回帖
function ShowForum1(ID,forumid,vv,topic1,topicid,username,posttime,qbtext,leittxt)
{
if(posttime.indexOf(newDate) == 0){posttime = posttime.replace(newDate,"今日");}

document.write("<tr height=25><td  class=a4 align=middle STYLE=font-size:11pt;>"+username+"</td><td width=3% class=a4 STYLE=font-size:11pt;><a title=点击查看回帖所在主题 target=_blank href=ShowPost2.asp?id="+topicid+"&qbtext="+qbtext+"&qb=1&forumid="+forumid+">"+vv+"</a>"+leittxt+"</td>");

document.write("<td width=3% class=a3 align=center STYLE=font-size:11pt;><a title=点击查看回帖内容和位置 target=_blank href=ShowPost2.asp?id="+topicid+"#"+ID+"&qb=1&qbtext="+qbtext+"&forumid="+forumid+">"+posttime+"</a></td>");
//主题显示列表
}

//帖子列表(显示来源）
function ShowForumqb(ctsj,oo,pp,ID,topic,newtopic,username,Views,icon,toptopic,locktopic,pollresult,goodtopic,replies,lastname,lasttime,del2,delys,qbtext,leitt,leittxt,ltmxLTOK,PollOver)
{
if(lasttime.indexOf(newDate) == 0){lasttime = lasttime.replace(newDate,"今日");}
topic = topic.replace(key_word,"<font color=red>"+key_word+"<\/font>");
if (toptopic == 2) {reimage="<img src=images/top.gif border=0>"}
else
if (toptopic == 1) {reimage="<img src=images/f_top.gif border=0>"}
else
if (locktopic== 1) {reimage="<img src=images/f_locked.gif border=0>"}
else
if (pollresult!= '') {reimage="<img src=images/f_poll.gif border=0>"}
else
if ((replies>15) || (Views>150)) {reimage="<img src=images/f_hot.gif border=0>"}
else
if (replies>0) {reimage="<img src=images/f_new.gif border=0>"}
else{reimage="<img src=images/f_norm.gif border=0>"}

if (goodtopic== 1) {reimage2="<img src=images/topicgood.gif>"}
else
if (username == cookieusername) {reimage2="<img src=images/my.gif>"}
else{reimage2=""}

if (parseInt(replies)>0) {reimage3=parseInt(replies)}
else{reimage3="-"}

if (icon>0) {icon="<img src=images/brow/"+icon+".gif>"}

if (leitt=="1"|leitt=="2"|leitt=="3"|leitt=="4"|leitt=="5"|leitt=="6"|leitt=="7"|leitt=="8"|leitt=="9"|leitt=="10"|leitt=="11"|leitt=="12")
{if (PollOver=="0")
	{reimage="<img src=images/f_new3.gif border=0 WIDTH=22 HEIGHT=28>"
	}else{reimage="<img src=images/gif002.gif border=0 WIDTH=20 HEIGHT=26>"}}


document.write("<tr height=25><td align=middle class=a4><a target=_blank href=ShowPost2.asp?id="+ID+"&qb=1&forumid="+oo+"&qbtext="+qbtext+">"+reimage+"</a></td>");
//document.write("<td width=3% class=a3 align=center>"+reimage2+"</td>");
if (leitt=="1")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=="2")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="3")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ssShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=="4")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=zucaiShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="5")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=jingjiShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="6")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=gushiShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="7")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=dgushiShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}

if (leitt=="8")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyqiuceShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="9")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=lyqiujieShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="10")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=szqiuceShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="11")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=szqiujieShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="12")
{document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ylqiujieShowPostlt.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览擂台命题、挑擂、回帖>"+topic+"</a>");
}
if (leitt=="0"){
document.write("<td class=a4  STYLE=font-size:11pt;>&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <a href=ShowPost2.asp?id="+ID+"&qb=1&qbtext="+qbtext+"&forumid="+oo+" title=点击进入浏览主题、发帖、回帖>"+topic+"</a>");
}
if (replies > 10) {
var topicpage=""
var tol=replies/10+1;

for (var i=1; i < tol; i++) {
if(i<2 || i>=tol-1){

if (leitt=='1')
{//擂台
	topicpage=topicpage+"<b><a href=ShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='2')
{//擂台
	topicpage=topicpage+"<b><a href=lyShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='3')
{//擂台
	topicpage=topicpage+"<b><a href=ssShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='4')
{//擂台
	topicpage=topicpage+"<b><a href=zucaiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='5')
{//擂台
	topicpage=topicpage+"<b><a href=jingjiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='6')
{//擂台
	topicpage=topicpage+"<b><a href=gushiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='7')
{//擂台
	topicpage=topicpage+"<b><a href=dgushiShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='8')
{//擂台
	topicpage=topicpage+"<b><a href=lyqiuceShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='9')
{//擂台
	topicpage=topicpage+"<b><a href=lyqiujieShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='10')
{//擂台
	topicpage=topicpage+"<b><a href=szqiuceShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='11')
{//擂台
	topicpage=topicpage+"<b><a href=szqiujieShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='12')
{//擂台
	topicpage=topicpage+"<b><a href=ylqiujieShowPostlt.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}

if (leitt=='0')
{topicpage=topicpage+"<b><a href=ShowPost.asp?forumid="+oo+"&id="+ID+"&topage="+i+">"+i+"</a></b> ";}
}
if (i >= tol-2  && i<tol-1 && i>1){topicpage=topicpage+"… ";}
}
document.write(" ( "+topicpage+")");
}
//主题显示列表
document.write(" "+newtopic+leittxt+""+delys+"</td><td align=middle  class=a3 STYLE=font-size:11pt;>"+ctsj+"</td><td align=middle  class=a3 ><a href=ShowForum.asp?forumid="+oo+">"+pp+"</a></td><td align=middle  class=a3 STYLE=font-size:10pt;><a href=Profile.asp?username="+username+" title=查看作者信息>"+username+"</a></td><td align=middle class=a4 STYLE=font-size:10pt;>"+reimage3+"</td><td align=middle class=a3 STYLE=font-size:10pt;>"+Views+"</td><td  class=a4 >&nbsp;"+lasttime+"<a href=Profile.asp?username="+lastname+">"+lastname+"</a></td></tr>");
document.write("<tr height=25 style=display:none id=follow"+ID+"><td width=3% class=a4>　</td><td id=followTd"+ID+" align=left class=a4 width=94% colspan=8>　Loading...</td></tr>");
}



//论坛列表
function ShowList(pass,id,bbsname,icon,intro,moderated,today,toltopic,tolrestore,lasttime,lastname,lasttopic,password)
{
if(pass >2){password=1}


if(password==1){
document.write("")
}else{
document.write("")
}

document.write("<td bgcolor=FFFFFF>")

document.write("<table border=0 width=100% cellspacing=0 cellpadding=3><tr><td valign=top STYLE=font-size:14pt;><b>【 <a href=ShowForum.asp?forumid="+id+" title=点击进入浏览【"+bbsname+"】专题、发帖、回帖>"+bbsname+"</a> 】</b></td><td rowspan=2 align=right>")

if (icon!=''){
document.write("<img src="+icon+" onload='javascript:if(this.width>100)this.width=100;if(this.height>60)this.height=60;'>")
}

document.write("</td>")

if(password==1){
document.write("<td rowspan=2 width=30% align=center STYLE=font-size:11pt;>高级论坛")
}else{
document.write("<td rowspan=2 width=30% STYLE=font-size:11pt;>最新主题:"+lasttopic+"<br>作者:<a href=Profile.asp?username="+lastname+">"+lastname+"</a><br>时间:"+lasttime+"")
}

document.write("</td></tr><tr><td STYLE=font-size:11pt;>论坛描述:"+intro+"</td></tr><tr class=a3><td STYLE=font-size:11pt;>")

//var list= moderated.split ('|'); 
//for(i=0;i<list.length;i++) {
//if (list[i] !=''){
//document.write("<a href=profile.asp?username="+list[i]+">"+list[i]+"</a> ")
//}
//}

document.write("</td><td></td><td><table border=0 width=100% cellspacing=0><tr ><td width=33% STYLE=font-size:11pt;>今日:<font color=red>"+today+"</font></td><td width=33% STYLE=font-size:11pt;>主题:"+toltopic+"</td><td width=33% STYLE=font-size:11pt;>帖子:"+tolrestore+"</td></tr></table></td></tr></table></td></tr>")

}

//个性分坛列表
function ShowList2(pass,id,bbsname,icon,intro,moderated,today,toltopic,tolrestore,lasttime,lastname,lasttopic,password)
{
if(pass >2){password=1}


if(password==1){
document.write("")
}else{
document.write("")
}

document.write("<td bgcolor=FFFFFF>")

document.write("<table border=0 width=100% cellspacing=0 cellpadding=3><tr><td valign=top STYLE=font-size:14pt;><b>【 <a href=ShowForum.asp?forumid="+id+"&fentan=1 title=点击进入浏览【"+bbsname+"】专题、发帖、回帖>"+bbsname+"</a> 】</b></td><td rowspan=2 align=right>")

if (icon!=''){
document.write("<img src="+icon+" onload='javascript:if(this.width>100)this.width=100;if(this.height>60)this.height=60;'>")
}

document.write("</td>")

if(password==1){
document.write("<td rowspan=2 width=30% align=center STYLE=font-size:11pt;>高级论坛")
}else{
document.write("<td rowspan=2 width=30% STYLE=font-size:11pt;>最新主题:"+lasttopic+"<br>作者:<a href=Profile.asp?username="+lastname+">"+lastname+"</a><br>时间:"+lasttime+"")
}

document.write("</td></tr><tr><td STYLE=font-size:11pt;>论坛描述:"+intro+"</td></tr><tr class=a3><td STYLE=font-size:11pt;>")

//var list= moderated.split ('|'); 
//for(i=0;i<list.length;i++) {
//if (list[i] !=''){
//document.write("<a href=profile.asp?username="+list[i]+">"+list[i]+"</a> ")
//}
//}

document.write("</td><td></td><td><table border=0 width=100% cellspacing=0><tr ><td width=33% STYLE=font-size:11pt;>今日:<font color=red>"+today+"</font></td><td width=33% STYLE=font-size:11pt;>主题:"+toltopic+"</td><td width=33% STYLE=font-size:11pt;>帖子:"+tolrestore+"</td></tr></table></td></tr></table></td></tr>")

}


function SmallShowList(id,bbsname,intro,moderated,today,toltopic,tolrestore)
{
intro = intro.replace(/<br>/ig,"\n");

i++;
if (i==1){document.write("<tr>")}

document.write("<td><table border=0 width=100% cellspacing=0 cellpadding=4><tr bgcolor=FFFFFF><td colspan=3 title='"+intro+"'>【 <a href=ShowForum.asp?forumid="+id+">"+bbsname+"</a> 】</td></tr><tr bgcolor=FFFFFF><td><img src=images/Forum_nav.gif alt=今日> <font color=red>"+today+"</font></td><td><img src=images/Forum_nav.gif alt=主题> "+toltopic+"</td><td><img src=images/Forum_nav.gif alt=帖子> "+tolrestore+"</td></tr><tr class=a3><td colspan=3>版主：")

var list= moderated.split ('|'); 
if (list.length!=0){document.write("<a href=profile.asp?username="+list[0]+">"+list[0]+"</a>")}
if (list.length>1){document.write(" <font color=gray>...</font>")}

document.write("</td></tr></table></td>")

if (i==3){i=0;document.write("</tr>")}

}





function makeupShowList()
{
if (i!=0){
for(jj=i;jj<3;jj++){document.write("<td bgcolor=FFFFFF></td>")}
i=0
}
}

//跳转页面显示
function ShowPage(TotalPage,topage,url){
if (topage<5){PageLong=7-topage;}
else
if (TotalPage-topage<4){PageLong=6-(TotalPage-topage)}
else{PageLong=3;}

for (var i=1; i <= TotalPage; i++) {
if (i < topage+PageLong && i > topage-PageLong || i==1 || i==TotalPage){
if (topage==i){document.write(" "+ i +" ");}else{document.write(" <a href=?topage="+i+"&"+url+">"+ i +"</a> ");}
}
}

}

//状态菜单
var menuOffX2=0	//菜单距连接文字最左端距离
var menuOffY2=20	//菜单距连接文字顶端距离

var ie42=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns62=document.getElementById&&!document.all
function showmenu2(e,vmenu,mod){
	which2=vmenu
	menuobj=document.getElementById("popmenu2")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which2
	menuobj.contentwidth=menuobj.offsetWidth
	eventX2=e.clientX
	eventY2=e.clientY
	var rightedge2=document.body.clientWidth-eventX2
	var bottomedge2=document.body.clientHeight-eventY2

		if (rightedge2<menuobj.contentwidth)
			menuobj.thestyle.left=document.body.scrollLeft+eventX2-menuobj.contentwidth+menuOffX2
		else
			menuobj.thestyle.left=ie42? ie_x2(event.srcElement)+menuOffX2 : ns62? window.pageXOffset+eventX2 : eventX2
		
		if (bottomedge2<menuobj.contentheight&&mod!=0)
			menuobj.thestyle.top=document.body.scrollTop+eventY2-menuobj.contentheight-event.offsetY+menuOffY2-23
		else
			menuobj.thestyle.top=ie42? ie_y2(event.srcElement)+menuOffY2 : ns62? window.pageYOffset+eventY2+10 : eventY2

	menuobj.thestyle.visibility="visible"
}


function showmenu4(e,vmenu,mod){
	which2=vmenu
	menuobj=document.getElementById("popmenu2")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which2
	menuobj.contentwidth=menuobj.offsetWidth
	eventX2=e.clientX
	eventY2=e.clientY
	var rightedge2=document.body.clientWidth-eventX2
	var bottomedge2=document.body.clientHeight-eventY2

		if (rightedge2<menuobj.contentwidth)
			menuobj.thestyle.left=document.body.scrollLeft+560
		else
			menuobj.thestyle.left=ie42? ie_x2(event.srcElement)+menuOffX2 : ns62? window.pageXOffset+eventX2 : eventX2
		
		if (bottomedge2<menuobj.contentheight&&mod!=0)
			menuobj.thestyle.top=document.body.scrollTop+eventY2-menuobj.contentheight-event.offsetY+menuOffY2-23
		else
			menuobj.thestyle.top=ie42? ie_y2(event.srcElement)+menuOffY2 : ns62? window.pageYOffset+eventY2+10 : eventY2

	menuobj.thestyle.visibility="visible"
}




function ie_y2(e){  
	var t=e.offsetTop;  
	while(e=e.offsetParent){  
		t+=e.offsetTop;  
	}  
	return t;  
}  
function ie_x2(e){  
	var l=e.offsetLeft;  
	while(e=e.offsetParent){  
		l+=e.offsetLeft;  
	}  
	return l;  
}

function highlightmenu2(e,state){
	if (document.all)
		source_el=event.srcElement
		while(source_el.id!="popmenu2"){
			source_el=document.getElementById? source_el.parentNode : source_el.parentElement
			if (source_el.className=="menuitems"){
				source_el.id=(state=="on")? "mouseoverstyle" : ""
		}
	}
}


function hidemenu2(){if (window.menuobj)menuobj.thestyle.visibility="hidden"}
function dynamichide2(e){if ((ie42||ns62)&&!menuobj.contains(e.toElement))hidemenu2()}
document.onclick=hidemenu2
document.write("<div class=menuskin2 id=popmenu2 onmouseover=highlightmenu2(event,'on') onmouseout=highlightmenu2(event,'off');dynamichide2(event)></div>")
// 状态菜单END


//菜单
var menuOffX=0	//菜单距连接文字最左端距离
var menuOffY=20	//菜单距连接文字顶端距离

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
function showmenu(e,vmenu,mod){
	which=vmenu
	menuobj=document.getElementById("popmenu")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which
	menuobj.contentwidth=menuobj.offsetWidth
	eventX=e.clientX
	eventY=e.clientY
	var rightedge=document.body.clientWidth-eventX
	var bottomedge=document.body.clientHeight-eventY

		if (rightedge<menuobj.contentwidth)
			menuobj.thestyle.left=document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX
		else
			menuobj.thestyle.left=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
		
		if (bottomedge<menuobj.contentheight&&mod!=0)
			menuobj.thestyle.top=document.body.scrollTop+eventY-menuobj.contentheight-event.offsetY+menuOffY-23
		else
			menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY

	menuobj.thestyle.visibility="visible"
}



function showmenu5(e,vmenu,mod){
	which2=vmenu
	menuobj=document.getElementById("popmenu2")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which2
	menuobj.contentwidth=menuobj.offsetWidth
	eventX2=e.clientX
	eventY2=e.clientY
	var rightedge2=document.body.clientWidth-eventX2
	var bottomedge2=document.body.clientHeight-eventY2

	var tz=e.offsetTop; 
	var lz=e.offsetLeft; 
	var wz=e.offsetWidth;
	var hz=e.offsetHeight;
	while(e=e.offsetParent)
	{ 
		tz+=e.offsetTop; 
		lz+=e.offsetLeft; 
	} 
menuobj.thestyle.visibility="visible"
//menuobj.style.display='block';
menuobj.thestyle.left = (lz) +"px";//窗体显示的位置
menuobj.thestyle.top= (tz+22) + "px";//窗体显示的位置 原来34% 67%

}
function showmenu6(e,num,vmenu,mod){
/////////////////控件，菜单数，菜单，**
	which2=vmenu
	menuobj=document.getElementById("popmenu2")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which2
	menuobj.contentwidth=menuobj.offsetWidth
	eventX2=e.clientX
	eventY2=e.clientY
	var rightedge2=document.body.clientWidth-eventX2
	var bottomedge2=document.body.clientHeight-eventY2

	var tz=e.offsetTop; 
	var lz=e.offsetLeft; 
	var wz=e.offsetWidth;
	var hz=e.offsetHeight;
	while(e=e.offsetParent)
	{ 
		tz+=e.offsetTop; 
		lz+=e.offsetLeft; 
	} 
menuobj.thestyle.visibility="visible"
//menuobj.style.display='block';
menuobj.thestyle.left = (lz) +"px";//窗体显示的位置
menuobj.thestyle.top= (tz-10-num*20) + "px";//窗体显示的位置 原来34% 67%

}



function ie_y(e){  
	var t=e.offsetTop;  
	while(e=e.offsetParent){  
		t+=e.offsetTop;  
	}  
	return t;  
}  
function ie_x(e){  
	var l=e.offsetLeft;  
	while(e=e.offsetParent){  
		l+=e.offsetLeft;  
	}  
	return l;  
}

function highlightmenu(e,state){
	if (document.all)
		source_el=event.srcElement
		while(source_el.id!="popmenu"){
			source_el=document.getElementById? source_el.parentNode : source_el.parentElement
			if (source_el.className=="menuitems"){
				source_el.id=(state=="on")? "mouseoverstyle" : ""
		}
	}
}


function hidemenu(){if (window.menuobj)menuobj.thestyle.visibility="hidden"}
function dynamichide(e){if ((ie4||ns6)&&!menuobj.contains(e.toElement))hidemenu()}
document.onclick=hidemenu
document.write("<div class=menuskin id=popmenu onmouseover=highlightmenu(event,'on') onmouseout=highlightmenu(event,'off');dynamichide(event)  style=\"position:absolute;  height:250px;  overflow: auto;\"></div>")
// 菜单END

// add area script
function focusEdit(editBox)
{
 if ( editBox.value == editBox.helptext )
 {
 editBox.value = '';
 editBox.className = 'editbox';
 }
 return true;
}
function blurEdit(editBox)
{
 if ( editBox.value.length == 0 )
 {
 editBox.className = 'editbox Graytitle';
 editBox.value = editBox.helptext;
 }
}
function ValidateTextboxAdd(box, button)
{
 var buttonCtrl = document.getElementById( button );
 if ( buttonCtrl != null )
 {
 if (box.value == "" || box.value == box.helptext)
 {
 buttonCtrl.disabled = true;
 }
 else
 {
 buttonCtrl.disabled = false;
 }
 }
}
// add area script end


function loadtree(ino,bbsname){
document.frames["hiddenframe"].location.replace("ForumTree.asp?id="+ino+"")
}
function loadtree1(ino,bbsname){
document.frames["hiddenframe"].location.replace("4ForumTree.asp?id="+ino+"")
}
function loadtree2(ino,bbsname){
document.frames["hiddenframe"].location.replace("1ForumTree.asp?id="+ino+"")
}
function loadtree3(ino,bbsname){
document.frames["hiddenframe"].location.replace("3ForumTree.asp?id="+ino+"")
}
function loadtree4(ino,bbsname){
document.frames["hiddenframe"].location.replace("2ForumTree.asp?id="+ino+"")
}
function loadtree5(ino,bbsname){
document.frames["hiddenframe"].location.replace("5ForumTree.asp?id="+ino+"")
}
function loadThreadFollow(ino,online){
var targetImg =eval("followImg" + ino);
var targetDiv =eval("follow" + ino);
if (targetDiv.style.display!='block'){
if(targetImg.loaded=="no"){document.frames["hiddenframe"].location.replace("loading.asp?id="+ino+"&forumid="+online+"");}
targetDiv.style.display="block";
targetImg.src="images/minus.gif";
}else{
targetDiv.style.display="none";
targetImg.src="images/plus.gif";
}
}
//document.write("<iframe height=0 width=0 name=hiddenframe></iframe>")
function loadThreadFollow4(ino,online){
var targetImg =eval("followImg" + ino);
var targetDiv =eval("follow" + ino);
if (targetDiv.style.display!='block'){
if(targetImg.loaded=="no"){document.frames["hiddenframe"].location.replace("loading4.asp?id="+ino+"&forumid="+online+"");}
targetDiv.style.display="block";
targetImg.src="images/minus.gif";
}else{
targetDiv.style.display="none";
targetImg.src="images/plus.gif";
}
}

function loadThreadFollow5(ino,online){

document.frames["hiddenframe"].location.replace("loading5.asp?id="+ino+"&forumid="+online+"");

}

function loadThreadFollow3(ino,online){
var targetImg =eval("followImg" + ino);
var targetDiv =eval("follow" + ino);
if (targetDiv.style.display!='block'){
if(targetImg.loaded=="no"){document.frames["hiddenframe"].location.replace("loading3.asp?id="+ino+"&forumid="+online+"");}
targetDiv.style.display="block";
targetImg.src="images/minus.gif";
}else{
targetDiv.style.display="none";
targetImg.src="images/plus.gif";
}
}
function loadPaipanly(ino,online){
var targetDiv =eval("floater");
parent.document.getElementById("xiayaa").style.height="444";
document.getElementById("shurud").style.height="160";
//if (targetDiv.style.display!='block'){
document.frames["hiddenframe"].location.replace("loading2.asp?id=ly");
targetDiv.style.display="block";
//}
//else{
//targetDiv.style.display="none";
//}
}

function loadPaipansz(ino,online){
var targetDiv =eval("floater");
parent.document.getElementById("xiayaa").style.height="444";
document.getElementById("shurud").style.height="152";
//if (targetDiv.style.display!='block'){
document.frames["hiddenframe"].location.replace("loading2.asp?id=sz");
targetDiv.style.display="block";


}
function loadPaipanyg(ino,online){
var targetDiv =eval("floater");
parent.document.getElementById("xiayaa").style.height="444";
document.getElementById("shurud").style.height="160";
//if (targetDiv.style.display!='block'){
document.frames["hiddenframe"].location.replace("loading2.asp?id=yg");
targetDiv.style.display="block";


}
document.write("<iframe height=0 width=0 name=hiddenframe></iframe>")


