/*********************************************************
	论坛版本：	DCBBSV4.0
	修改日期:	2005-5-20
	修改作者：	Dreamcool
	服务网址：      HTTP://WWW.DREAMCOOL.NET
**********************************************************/
var i=0;
var ii=3;

var a=4;
function create() { 
this.under = '' 
}
b = new Array() 
for(var jq=1; jq<=a; jq++) { b[jq] = new create() } 
b[1].under = '<font color="#FF0000"><a href=http://www.dreamcool.net>本社区QQ群是2991589,2991589 欢迎大家加入</a></font>'
b[2].under = '<font color="#FF0000">论坛刚刚起步，现正招斑竹...有兴趣者...可以到【版主申请】板块发贴......</a></font>'
b[3].under = '<font color="#FF0000">社区的新功能不断更新中，希望多多关注</a></font>'
b[4].under = '<font color="#FF0000">大家可以更换自己喜欢的风格，在论坛首页风格里面换！</a></font>'

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 ShowPost(id,username,content,posttime,honor,userface,sex,birthday,experience,membercode,faction,consort,magicpower,power,money,savemoney,mypet,postcount,regtime,userlife,building,usermail,userhome,sign,myshow,show,lock,landtime,car,userxz,color)
{
document.write("<table class=a2 style=TABLE-LAYOUT:fixed cellPadding=5 width=97% align=center border=0 cellSpacing=1>");
ii++
if (""+honor+"" !=""){
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=177 align=center valign=top>");
document.write("<table border=0 width=90%><tr><td><font color=#ff0000 style=font-size:10pt><b>"+username+"</b></font><br>头衔:<font color=#ff0000>"+honor+"</font></td><td align=right valign=top>");}
else{
if(ii==5){ii=3}
document.write("<tr class=a"+ii+"><td width=177 align=center valign=top>");
document.write("<table border=0 width=90%><tr><td><font color=#ff0000 style=font-size:10pt><b>"+username+"</b></font><br>头衔:<font color=#ff0066>公民</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 (show == 1)
{if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("<table class=tablebody2 border=0 align=center cellspacing=0 cellpadding=0><tr><td><img src=images/bic/c1.gif></td><td background=images/bic/s1.gif align=center></td><td><img src=images/bic/c2.gif></td></tr><tr><td vAlign=middle background=images/bic/s4.gif></td><td id=fontsize22>");

document.write("<table width=90% border=0><tr><td align=middle><DIV style='padding:0;position:relative;top:0;left:0;height:190px;overflow:hidden'><div id='bodyshow"+id+"' title='"+username+" 离线' style='filter: gray;border:0px solid #000000;padding:0;POSITION: relative; Left: 0; TOP: -35; HEIGHT: 226px;  WIDTH: 140px;'></div></div></td></tr></table>")
showit(myshow,id)

document.write("</td><td vAlign=middle background=images/bic/s2.gif></td></tr><tr><td vAlign=top><img src=images/bic/c4.gif></td><td background=images/bic/s3.gif align=left></td><td align=right><img src=images/bic/c3.gif></td></tr></table>");
}
else{
document.write("<table class=tablebody2 border=0 align=center cellspacing=0 cellpadding=0><tr><td><img src=images/bic/c1.gif></td><td background=images/bic/s1.gif align=center></td><td><img src=images/bic/c2.gif></td></tr><tr><td vAlign=middle background=images/bic/s4.gif></td><td id=fontsize22>");

document.write("<table width=90% border=0><tr><td align=middle><DIV style='padding:0;position:relative;top:0;left:0;height:190px;overflow:hidden'><div id='bodyshow"+id+"' title='"+username+" 在线' style='border:0px solid #000000;padding:0;POSITION: relative; Left: 0; TOP: -35; HEIGHT: 226px;  WIDTH: 140px;'></div></div></td></tr></table>")
showit(myshow,id)

document.write("</td><td vAlign=middle background=images/bic/s2.gif></td></tr><tr><td vAlign=top><img src=images/bic/c4.gif></td><td background=images/bic/s3.gif align=left></td><td align=right><img src=images/bic/c3.gif></td></tr></table>");
}
}
else
{

if(onlinelist.indexOf("|"+username+"|") == -1 ){
if (getCookie('showface')!='0'){
document.write("<table width=90 class=tablebody2 border=0 align=center cellspacing=0 cellpadding=0><tr><td><img src=images/bic/c1.gif></td><td background=images/bic/s1.gif align=center></td><td><img src=images/bic/c2.gif></td></tr><tr><td vAlign=middle background=images/bic/s4.gif></td> <td vAlign=middle align=center width=90 id=fontsize22>");

document.write("<table width=100 border=0 bgcolor=#cccccc><tr><td align=middle vAlign=middle bgcolor=#ffffff><img src='"+userface+"' alt='"+username+" 离线' style='filter: Gray;' onload='javascript:if(this.width>100)this.width=100;if(this.height>100)this.height=100;'></td></tr></table>")

document.write("</td><td vAlign=middle background=images/bic/s2.gif></td></tr><tr><td vAlign=top><img src=images/bic/c4.gif></td><td background=images/bic/s3.gif align=left></td><td align=right><img src=images/bic/c3.gif></td></tr></table>");
}
}
else{
if (getCookie('showface')!='0'){
document.write("<table width=90 class=tablebody2 border=0 align=center cellspacing=0 cellpadding=0><tr><td><img src=images/bic/c1.gif></td><td background=images/bic/s1.gif align=center></td><td><img src=images/bic/c2.gif></td></tr><tr><td vAlign=middle background=images/bic/s4.gif></td> <td vAlign=middle align=center width=90 id=fontsize22>");

document.write("<table width=100 border=0 bgcolor=#ffffff><tr><td align=middle vAlign=middle bgcolor=#ffffff><img src='"+userface+"' alt='"+username+" 在线' onload='javascript:if(this.width>100)this.width=100;if(this.height>100)this.height=100;'></td></tr></table>")

document.write("</td><td vAlign=middle background=images/bic/s2.gif></td></tr><tr><td vAlign=top><img src=images/bic/c4.gif></td><td background=images/bic/s3.gif align=left></td><td align=right><img src=images/bic/c3.gif></td></tr></table>");
} 
}

}
if (userxz!=''){
document.write(""+userxz+"");
}

document.write("<table width=85%><tr><td>"+level(experience,membercode,username,moderated)+levelimage+"<br><img src=images/tb.gif>&nbsp;等&nbsp;级：<font color=#000080 >"+levelname+"</font><br>");
if (""+faction+"" !="") {document.write("<img src=images/tb.gif>&nbsp;门&nbsp;派："+faction+"<br>");}
document.write("<img src=images/tb.gif>&nbsp;经&nbsp;验：<font color=#FFA500 >"+experience+"</font><br>");
document.write("<img src=images/tb.gif>&nbsp;威&nbsp;望：<font color=red>+</font>"+power+"<br>");
document.write("<img src=images/tb.gif>&nbsp;魅&nbsp;力：<font color=red>+</font>"+magicpower+"<br>");
document.write("<img src=images/tb.gif>&nbsp;金&nbsp;币："+money+"<br>");
document.write("<img src=images/tb.gif>&nbsp;存&nbsp;款："+savemoney+"<br>");
if (postcount<1) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：1级 <img src=images/xunzhang/icon_star_new1.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯加油加油><br>")}
else
if (postcount<100) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：2级 <img src=images/xunzhang/icon_star_new2.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯哎哟哎哟><br>")}
else
if (postcount<200) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：3级 <img src=images/xunzhang/icon_star_new3.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快4级咯><br>")}
else 
if (postcount<300) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：4级 <img src=images/xunzhang/icon_star_new4.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快5级咯><br>")}
else
if (postcount<400) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：5级 <img src=images/xunzhang/icon_star_new5.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快6级咯><br>")}
else 
if (postcount<500) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：6级 <img src=images/xunzhang/icon_star_new6.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快7级咯><br>")}
else
if (postcount<600) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：7级 <img src=images/xunzhang/icon_star_new7.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快8级咯><br>")}
else
if (postcount<700) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：8级 <img src=images/xunzhang/icon_star_new8.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快9级咯><br>")}
else
if (postcount<800) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：9级 <img src=images/xunzhang/icon_star_new9.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯马上就要文坛巨匠咯><br>")}
else
if (postcount<900) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：文坛巨匠 <img src=images/xunzhang/icon_star_new10.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯文坛巨匠了不起哦><br>")}
else
if (postcount<1000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：11级 <img src=images/xunzhang/icon_star_new11.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快12级咯><br>")}
else 
if (postcount<2000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：12级 <img src=images/xunzhang/icon_star_new12.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快13级咯><br>")}
else 
if (postcount<3000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：13级 <img src=images/xunzhang/icon_star_new13.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快14级咯><br>")}
else 
if (postcount<4000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：14级 <img src=images/xunzhang/icon_star_new14.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快15级咯><br>")}
else 
if (postcount<5000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：15级 <img src=images/xunzhang/icon_star_new15.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快16级咯><br>")}
else
if (postcount<6000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：16级 <img src=images/xunzhang/icon_star_new16.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快17级咯><br>")}
else
if (postcount<7000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：17级 <img src=images/xunzhang/icon_star_new17.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快18级咯><br>")}
else
if (postcount<8000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：18级 <img src=images/xunzhang/icon_star_new18.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快19级咯><br>")}
else
if (postcount<9000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：19级 <img src=images/xunzhang/icon_star_new19.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯马上就要做水神了啊><br>")}
else
if (postcount<10000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：水  神 <img src=images/xunzhang/icon_star_new20.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯水神啊！><br>")}
else
if (postcount<20000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：21级 <img src=images/xunzhang/icon_star_new21.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快22级咯><br>")}
else
if (postcount<30000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：22级 <img src=images/xunzhang/icon_star_new22.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快23级咯><br>")}
else
if (postcount<40000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：23级 <img src=images/xunzhang/icon_star_new23.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快24级咯><br>")}
else
if (postcount<50000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：24级 <img src=images/xunzhang/icon_star_new24.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快25级咯><br>")}
else
if (postcount<60000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：25级 <img src=images/xunzhang/icon_star_new25.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快26级咯><br>")}
else
if (postcount<70000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：26级 <img src=images/xunzhang/icon_star_new26.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快27级咯><br>")}
else
if (postcount<80000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：27级 <img src=images/xunzhang/icon_star_new27.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快28级咯><br>")}
else
if (postcount<90000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：28级 <img src=images/xunzhang/icon_star_new28.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯快29级咯><br>")}
else
if (postcount<100000) {document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：29级 <img src=images/xunzhang/icon_star_new29.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯马上就可以当水龙王了啊><br>")}
else
{document.write ("<img src=images/tb.gif>&nbsp;功&nbsp;勋：<font color=red>水龙王</font> <img src=images/xunzhang/icon_star_new30.gif align=absmiddle alt=已经发了"+postcount+"篇文章咯水龙王非你莫属><br>")};



{if (""+sex+"" =="male") {document.write("<img src=images/tb.gif>&nbsp;老&nbsp;婆：<font color=red>"+consort+"</font><img src=images/love.gif><br>");}
else
document.write("<img src=images/tb.gif>&nbsp;老&nbsp;公：<font color=red>"+consort+"</font><img src=images/love.gif><br>");}
if (landtime==0) {document.write("<img src=images/tb.gif>&nbsp;考&nbsp;勤：<font color=red>全勤</font><br>");}
if (landtime==1) {document.write("<img src=images/tb.gif>&nbsp;考&nbsp;勤：<font color=red>昨天来过</font><br>");}
if (landtime==2) {document.write("<img src=images/tb.gif>&nbsp;考&nbsp;勤：<font color=red>前天来过</font><br>");}
if (landtime>=3) {document.write("<img src=images/tb.gif>&nbsp;考&nbsp;勤：<font color=red>"+landtime+"</font>天前<br>");}
if(onlinelist.indexOf("|"+username+"|") == -1 ){
document.write("<img src=images/tb.gif>&nbsp;离线：<img border=0 src=images/offline.gif alt='哎，身体不舒服回家休息了'><br>");
}else{
document.write("<img src=images/tb.gif>&nbsp;在线：<img border=0 src=images/online.gif alt='我在呀，别打我小报告'><br>");
}
document.write("<img src=images/tb.gif>&nbsp;注册时间："+regtime+"<br>");
if (""+building+"" !="") {document.write("<hr width=100% color=777777 size=1>&nbsp;&nbsp;<a><img src=images/plus/bbsmyhome.gif alt=体力:"+userlife+" border=0>"+building+"</a><br><br>");
}else{
document.write("<hr width=100% color=777777 size=1>&nbsp;&nbsp;<a href=building.asp target=_blank><img src=images/plus/bbshome.gif alt=体力:"+userlife+" border=0></a><br><br>");
}

if (""+mypet+"" !="") {document.write("<font color=red><img src=images/baobao.gif alt='宝宝:来啊,PK,PK'><b>"+mypet+"</b></font><br><br>");}else{
document.write("<a href=petcenter.asp><font color=#FF0000 style=behavior:url(inc/font.htc);>赚钱买宝宝吧</font><br><br>");
}
if (""+car+"" !="") {document.write("<img src=images/car/carlogo2.gif alt='汽车:去兜风了'><font color=red><b>"+car+"</b></font><br><br>");}else{
document.write("<a href=car.asp><font color=#FF0000 style=behavior:url(inc/font.htc);>快努力赚钱买汽车吧</font></a><br><br>");
}
document.write("<hr width=100% color=777777 size=1>")
document.write("<p><font color=RED>送我</font>:&nbsp;&nbsp;&nbsp;&nbsp;<a href='shop.asp?menu=flowers&vs="+username+"'><img alt='送"+username+"鲜花' src=images/flowers2.gif border=0></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='shop.asp?menu=egg&vs="+username+"'><img alt='扔"+username+"鸡蛋' src=images/eggs.gif border=0></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=80%><a href='Profile.asp?username="+username+"' title='查看"+username+"的个人资料'>信息</a> <a style=cursor:hand onclick=\"javascript:open('friend.asp?menu=post&incept="+username+"','','width=320,height=170')\" title='发送短讯息给"+username+"'>短信</a> <a href='friend.asp?menu=add&username="+username+"' title='把"+username+"加入好友'>好友</a> <a href='search.asp?menu=ok&search=author&searchxm=username&content="+username+"' title='查看"+username+"的文集'>文集</a> <a href=mailto:"+usermail+" title='发送电邮给"+username+"'>邮箱</a> ");

if (userhome!="" && userhome!="http://"){
document.write("<a target=_blank href="+userhome+" title=访问"+userhome+"的主页>主页</a>");
}
i=i+1
if (i<2){
document.write(" <a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子>复制</a> <a href='retopic.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"' title=引用回复这个帖子>引用</a> <a href='retopic.asp?id="+topicid+"&topic="+topic+"' title=回复这个帖子>回复</a></td><td align=right><font color=red><b>楼主</b></font>&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1></td></tr>");}
else{
document.write(" <a href=javascript:copyText(document.all.yu"+id+") title=复制这个帖子>复制</a> <a href='retopic.asp?id="+topicid+"&retopicid="+id+"&quote=1&topic="+topic+"' title=引用回复这个帖子>引用</a> <a href='retopic.asp?id="+topicid+"&topic="+topic+"' title=回复这个帖子>回复</a></td><td align=right>第<font color=red><b>"+i+"</b></font>楼&nbsp;</td></tr><tr vAlign=top><td colSpan=4><hr width=100% color=#777777 SIZE=1>");}

document.write("<tr vAlign=top><td colSpan=4 height=100% style=word-break:break-all>");


if(badlist.indexOf(username) == -1 ){
document.write("<table class=tablebody2 border=0 align=center cellspacing=0  cellpadding=0><tr><td><img src=images/bic/c1.gif></td><td background=images/bic/s1.gif align=center></td><td><img src=images/bic/c2.gif></td></tr><tr><td vAlign=middle background=images/bic/s4.gif></td><td width=100% id=fontsize22 bgColor=#FFFFFF>");
if (lock==1){
document.write("<span id=yu"+id+">================================<br><font color=red>该用户发言已被管理员屏蔽　　</font><br>================================</span>")
}
else{
document.write("<font face=Wingdings size=3 color=#000000>@</font><b><font color=#000000>主题: "+topic+"</b></font><br><br>");
document.write("<table width=100% border=0 cellspacing=0 cellpadding=0 style=TABLE-LAYOUT:fixed align=center><tr><td style=width:520>");	
document.write(ybbcode("<span id=yu"+id+">"+content+"</span>"));
document.write("</td></tr></table>");
}
document.write("</td><td vAlign=middle background=images/bic/s2.gif></td></tr><tr><td vAlign=top><img src=images/bic/c4.gif></td><td background=images/bic/s3.gif align=left><img src=images/bic/dd1.gif></td><td align=right><img src=images/bic/c3.gif></td></tr></table>");	
document.write("<font color=#ff0066>"+username+"说道.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#000000>♂本帖图象和文字版权归&nbsp;<B><font color=#ff0066>"+username+"&nbsp;</B></font>和&nbsp;<B><font color=#ff0066>惜缘论坛&nbsp;</font></B>共同所有,未经同意请勿转载♂<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;♀<font color=#000000><a target='_blank' href='http://www.dreamcool.net'>DremaCool工作室</a></font><font color=#ff0066>非常感谢</font>&nbsp;<B><font color=#ff0066>"+username+"&nbsp;</B></font>的支持与参与♀</font><br>");
}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=center>")
if (getCookie('sign')!='0' && sign!=""){
document.write("<span style='behavior:url(inc/font.htc)'>←←←←←←←←←←←←←←←←惜缘(Dreamcool)个性签名→→→→→→→→→→→→→→→→→ </span>");
document.write("<br>");
document.write("<table class=tablebody2 border=0 align=center width=98% cellspacing=0 cellpadding=0><tr><td width=35 height=35><img src=images/pic/c1.gif width=35 height=35></td><td background=images/pic/s1.gif align=center><img src=images/pic/clover.gif width=57 height=35></td><td width=35 height=35><img src=images/pic/c2.gif width=35 height=35></td></tr><tr><td vAlign=middle background=images/pic/s4.gif><img src=images/pic/clo_tl.gif width=35 height=64></td><td id=fontsize22 >");
document.write(""+ybbcode(sign)+"");

document.write("<hr width=100% color=777777 size=1>") 
var slump = Math.random(); 
var talet = Math.round(slump * (a-1))+1; 
document.write("<center><font color=red><b>[注意]</b></font> "+b[talet].under);


document.write("</td><td vAlign=middle background=images/pic/s2.gif><img src=images/pic/clo_tr.gif width=35 height=62></td></tr><tr><td vAlign=top><img src=images/pic/c4.gif width=35 height=35></td><td background=images/pic/s3.gif align=center><img src=images/pic/clo_y.gif width=57 height=35></td><td align=right><img src=images/pic/c3.gif width=35 height=35></td></tr></table>");}


document.write("<hr width=100% color=777777 size=1></td></tr><tr class=a"+ii+"><td valign=bottom><img src=images/admin.gif border=0> ");
document.write("<a onMouseOver=\"showmenu(event,'<div class=menuitems><a href=EditTopic.asp?id="+topicid+"&retopicid="+id+"&topic="+topic+">编辑帖子</a></div><div class=menuitems><a href=manage.asp?menu=deltopic&id="+topicid+"&retopicid="+id+"&username="+username+">删除帖子</a></div><div class=menuitems><a href=manage_post.asp?id="+topicid+"&retopicid="+id+"&topic="+topic+">奖罚管理</a></div><div class=menuitems>");
if (lock == 0) 
document.write("<a href=manage.asp?menu=lockpage&id="+topicid+"&retopicid="+id+">单帖锁定</a>");
if (lock == 1) 
document.write("<a href=manage.asp?menu=unlockpage&id="+topicid+"&retopicid="+id+">解除锁定</a>");
document.write("</div>')\" style=cursor:hand>帖子管理</a>");
document.write("</td><td align=left valign=bottom><img src=images/lastpost.gif> 发表时间："+posttime+"　</td><td align=right valign=bottom><img src=images/ip.gif> IP：<a href=manage.asp?menu=lookip&id="+topicid+"&retopicid="+id+">已记录</a>&nbsp;&nbsp;<a href=# title='返回页面顶部'>返回页顶</a></td></tr></table></td></tr></table>");
}

//帖子列表
function ShowForum(ID,topic,newtopic,username,Views,icon,toptopic,locktopic,pollresult,goodtopic,replies,lastname,lasttime,color)
{
if(lasttime.indexOf(newDate) == 0){lasttime = lasttime.replace(newDate,"今日");}
topic = topic.replace(key_word,"<font color=red>"+key_word+"<\/font>");
if (color!=""){topic="<font color="+color+">"+topic+"</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="-"}

document.write("<tr height=25><td align=middle width=3% class=a4>"+reimage+"</td>");
document.write("<td width=3% class=a3 align=center>"+reimage2+"</td>");

if (toptopic == 2){

document.write("<td class=a4 width=45% onmouseout=\"this.className='a4'\" onmouseover=\"this.className='a3'\">&nbsp;<img src=images/top1.gif>&nbsp;<font color=red><b>总置顶</b></font>&nbsp;<a href=ShowPost.asp?id="+ID+"><font color=red>"+topic+"</font></a>");}
else if (toptopic == 1)
{
document.write("<td class=a4 width=45% onmouseout=\"this.className='a4'\" onmouseover=\"this.className='a3'\">&nbsp;<img src=images/top2.gif>&nbsp;<font color=blue><b>分置顶</b></font>&nbsp;<a href=ShowPost.asp?id="+ID+"><font color=blue>"+topic+"</font></a>");}
else
{
document.write("<td class=a4 width=45% onmouseout=\"this.className='a4'\" onmouseover=\"this.className='a3'\">&nbsp;<img loaded=no src=images/plus.gif id=followImg"+ID+" style=cursor:hand; onclick=loadThreadFollow("+ID+")> <img border=0 src=images/brow/"+icon+".gif> <a href=ShowPost.asp?id="+ID+" title='主题作者："+username+"<br>更新时间："+lasttime+"<br>回帖作者："+lastname+"'>"+topic+"</a>");}

if (replies > 15) {
var topicpage=""
var tol=replies/15+1;

for (var i=1; i < tol; i++) {
if(i<4 || i>=tol-2){
topicpage=topicpage+"<b><a href=ShowPost.asp?id="+ID+"&topage="+ i +">"+ i +"</a></b> ";
}
if (i >= tol-3  && i<tol-2 && i>3){topicpage=topicpage+" ... ";}
}
document.write(" ( <img src=images/multipage.gif> "+topicpage+")");
}

document.write(" "+newtopic+"</td><td align=middle width=9% class=a3><a href=Profile.asp?username="+username+">"+username+"</a></td><td align=middle width=6% class=a4>"+reimage3+"</td><td align=middle width=7% class=a3>"+Views+"</td><td width=27% class=a4>&nbsp;"+lasttime+" by <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 width=3% class=a3>　</td><td id=followTd"+ID+" align=left class=a4 width=94% colspan=5>　Loading...</td></tr>");
}


//论坛列表
function ShowList(pass,id,bbsname,icon,intro,moderated,today,toltopic,tolrestore,lasttime,lastname,lasttopic,password)
{
if(pass >2){password=1}

document.write("<tr><td width=5% align=middle bgcolor=FFFFFF>")

if(password==1){
document.write("<img src=images/skins/"+getCookie('skins')+"/Board3.gif>")
}else{
document.write("<img src=images/skins/"+getCookie('skins')+"/Board"+pass+".gif>")
}

document.write("</td><td bgcolor=FFFFFF>")

document.write("<table border=0 width=100% cellspacing=0 cellpadding=3><tr><td valign=top>『 <a href=ShowForum.asp?forumid="+id+">"+bbsname+"</a> 』<a href=newtopic.asp?forumid="+id+" title=在该论坛发表文章>发贴</a> <a href=ShowForum.asp?forumid="+id+"&search=goodtopic title=查看该论坛的精品文章> 精华</a> <a href=ShowForum.asp?forumid="+id+"&TimeLimit=1 title=查看该论坛当天的帖子> 新贴</a>&nbsp;")
if (""+pass+""=='5')document.write("<font color=gray title=需要VIP才可浏览 style=cursor:default>VIP论坛</font> ")
if (""+pass+""=='6')document.write("<font color=gray title=版主才可浏览 style=cursor:default>版主论坛</font> ")
if (""+pass+""=='7')document.write("<font color=gray title=超级才可浏览 style=cursor:default>超级版主</font> ")
document.write("</td></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>私密论坛")
}else{
document.write("<td rowspan=2 width=30%>主题:"+lasttopic+"<br>作者:<a href=Profile.asp?username="+lastname+">"+lastname+"</a><br>时间:"+lasttime+"")
}

document.write("</td></td><td rowspan=2 align=right>")
document.write("</td></tr><tr><td>"+ybbcode(intro)+"</td></tr><tr class=a3><td> 版主：")

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> ")
}
else{
document.write("<font color=red><a style=cursor:hand onclick=\"javascript:open('message.asp?menu=post&report=1&moderated=缘定今生&body=【版主申请帖】：','','width=320,height=170')\">申请版主</a></font>")
}
}

document.write("</td><td></td><td><table border=0 width=100% cellspacing=0><tr><td width=33%>今日:<font color=red>"+today+"</font></td><td width=33%>主题:"+toltopic+"</td><td width=33%>帖子:"+tolrestore+"</td></tr></table></td></tr></table></td></tr>")
i=0;
}


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 width=33%><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> 』<a href=newtopic.asp?forumid="+id+"> <img alt=在该论坛发表文章 src=images/bic/postdirect.gif border=0></a><a href=ShowForum.asp?forumid="+id+"&search=goodtopic> <img alt=查看该论坛的精品文章 src=images/bic/goodtopic.gif border=0></a><a href=ShowForum.asp?forumid="+id+"&TimeLimit=1> <img alt=查看该论坛当天的帖子 src=images/bic/today.gif border=0></a></td></tr><tr bgcolor=FFFFFF><td>今日:<font color=red>"+today+"</font></td><td>主题:"+toltopic+"</td><td>帖子:"+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<6){PageLong=11-topage;}
else
if (TotalPage-topage<6){PageLong=10-(TotalPage-topage)}
else{PageLong=5;}

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 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 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)></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 loadThreadFollow(ino,online){
var targetImg =eval("followImg" + ino);
var targetDiv =eval("follow" + ino);
if (targetDiv.style.display!='block'){
targetDiv.style.display="block";
targetImg.src="images/minus.gif";
if(targetImg.loaded=="no"){document.frames["hiddenframe"].location.replace("loading.asp?id="+ino+"&forumid="+online+"");}
}else{
targetDiv.style.display="none";
targetImg.src="images/plus.gif";
}
}
document.write("<iframe height=0 width=0 name=hiddenframe></iframe>")

function showit(usershow,id)
{
	showlayers=usershow.split('>');
	str="";
	for(xx=0;xx<showlayers.length;xx++)
	{
		if(showlayers[xx]!='0' && showlayers[xx]!='')
		{
			str+="<img src=http://qqshow-item.tencent.com/"+showlayers[xx]+"/"+xx+"/00/' style='padding:0;position:absolute;top:0;left:0;width:140;height:226;z-index:"+(xx+1)+";'>";
		}
	}
	str+="<img src='http://game.qq.com/images/base/blank.gif' style='padding:0;position:absolute;top:0;left:0;width:140;height:226;z-index:100;'>";
	eval("bodyshow"+id).innerHTML=str; 

}





