function bbs(bid,bidname,logo,bidinfo,lasttopic,lastname,lasttime,str)
{
document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#999999'>  ");
document.write("  <tr>");
document.write(" <td width='30%' bgcolor='#ffffff'> <table width='100%' border='0' cellpadding='3' cellspacing='1' bgcolor='#999999'>  ");

document.write("  <tr >");
document.write(" <td width='10%' rowspan='3' bgcolor='#FFFFFF'> <div align='center'><img src="+logo+" width='60' height='60'></div></td>  ");
document.write(" <td width='44%' rowspan='3' bgcolor='#F7FEFF' valign='top'> <div align='left'>『 <a href=cmd.asp?bid="+bid+"><font color='#333333'><b>"+bidname+"</b></font></a> 』<a href=post.asp?bid="+bid+"><img src='images/mini_post.gif' border='0'></a> <a href=list.asp?bid="+bid+"><img src='images/mini_query.gif' border='0'></a> <a href=jinhua.asp?bid="+bid+"><img src='images/mini_votes.gif' border='0'></a><br>"+bidinfo+"");
document.write("  <br>  ");
document.write("</div></td>  ");
document.write(" <td width='6%' bgcolor='#F1F1F1'> <div align='right'>新帖： </div></td>  ");
document.write(" <td width='40%' height='20' bgcolor='#FFFFFF'> <div align='left'><img src='images/dot_04.gif' width='10' height='10' border='0'> "+lasttopic+"");
document.write("  <br>  ");
document.write("</div></td>  ");
document.write("  </tr>  ");
document.write("  <tr>");
document.write(" <td bgcolor='#F1F1F1'> <div align='right'>作者： </div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='left'><img src='images/dot_04.gif' width='10' height='10' border='0'> <a href=Userlist_data.asp?username="+lastname+">"+lastname+"</a> <br>  ");
document.write("</div></td>  ");
document.write("  </tr>  ");
document.write("  <tr>");
document.write(" <td bgcolor='#F1F1F1'> <div align='right'>时间：<br>  ");
document.write("</div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='left'><img src='images/dot_04.gif' width='10' height='10' border='0'> "+lasttime+"</div></td>  ");
document.write("  </tr>  ");
document.write("</table></td>  ");
document.write("  </tr>  ");
document.write("</table> ");
}

function new1(id,bid,bidname,username,title,hits,reply,wdate)
{
document.write(" <tr>");
document.write(" <td bgcolor='#FFFFFF' width='67'>");
document.write("<div align='center'><a href=list.asp?bid="+bid+">"+bidname+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='50'>");
document.write("<div align='center'><a href=Userlist_data.asp?username="+username+">"+username+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='170'> <div align='left'><a href=show.asp?id="+id+">"+title+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='39'>");
document.write("<div align='center'>"+hits+"</div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='41'>");
document.write("<div align='center'>"+reply+"</div></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='122'>");
document.write("<div align='center'>"+wdate+"</div></td>  ");
document.write("  </tr>  ");
}
function new2(id,bid,bidname,username,title,hits,reply,wdate)
{
document.write(" <tr>");
document.write(" <td bgcolor='#FFFFFF' width='67'>");
document.write("<a href=bbs/list.asp?bid="+bid+">"+bidname+"</a></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='50'>");
document.write("<a href=bbs/Userlist_data.asp?username="+username+">"+username+"</a></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='170'> <a href=bbs/show.asp?id="+id+">"+title+"</a></td>  ");
document.write(" <td bgcolor='#FFFFFF' width='39'>");
document.write(" "+hits+"</td>  ");
document.write(" <td bgcolor='#FFFFFF' width='41'>");
document.write(" "+reply+"</td>  ");
document.write(" <td bgcolor='#FFFFFF' width='122'>");
document.write(" "+wdate+"</td>  ");
document.write("  <tr>  ");
document.write("  <td height='1' background='images/xian_001.gif'></td>  ");
document.write("  <td height='1' background='images/xian_001.gif'></td>  ");
document.write("  <td height='1' background='images/xian_001.gif'></td>  ");
document.write("  <td height='1' background='images/xian_001.gif'></td>  ");
document.write("  <td height='1' background='images/xian_001.gif'></td>  ");
document.write("  <td height='1' background='images/xian_001.gif'></td>  ");

document.write("  </tr>  ");
}
function bbslist(id,faceimg,title,username,hits,reply,ldate,lastname,gd,good,lock,vote_title,hot1,new1)
{	
if (lastname!="") {name=lastname}
else{name="----"}
if (gd == 2) {image="<img src=images/Order_16.gif border=0>"}
else
if (gd == 1) {image="<img src=images/top.gif border=0>"}
else
	{image="<img src=images/Order_13.gif border=0>"}
if	(good == 1) {image="<img src=images/Order_18.gif border=0>"}
else
if  (lock == 1)	{image="<img src=images/Order_15.gif border=0>"}
else
if  (vote_title != ""){image="<img src=images/Order_19.gif border=0>"}

if  (hot1 == "1"){imagehot="&nbsp;<img src=images/hot.gif border=0>"}else{imagehot=""}

if  (new1 == "1"){imagenew="&nbsp;<img src=images/new.gif border=0>"}else{imagenew=""}

//document.write("<tr> ");
document.write("<td bgcolor='#F1F1F1'> <div align='center'>"+image+"</div></td>  ");
document.write("<td> <div align='left'><img src=images/mood/"+faceimg+".gif><a href=show.asp?id="+id+">"+title+imagehot+imagenew+"</a></div></td>  ");
document.write("<td  bgcolor='#F1F1F1'> <div align='center'><a href=Userlist_data.asp?username="+username+">"+username+"</a></div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='center'><font color='ff0000'>"+hits+"</font></div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='center'>"+reply+"</div></td>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='left'>"+ldate+"|<a href=Userlist_data.asp?username="+name+">"+name+" </a> ");
document.write(" </div></td>  ");
//document.write(" </tr>");
}

 function online(name,ip,ltime)
{
	if (name!="") {name1=name}
else{name1="游客"}	  
document.write("<tr bgcolor='#ffffff'>");
document.write("<td width='186'>");
document.write("<p align='center'>"+name1+"</p>");
document.write("</td>");
document.write(" <td width='186'>");
document.write("<p align='center'>"+ip+"</p>");
document.write("</td> ");
document.write(" <td width='185'>");
document.write(" <p align='center'>"+ltime+"</p>");
document.write(" </td> </tr>  ");
}

  function user(username,reg_time,zjdlsj,topic,zw,oicq,email)
{

document.write(" <tr bgcolor='ffffff'> ");
document.write(" ");
document.write(" <td width='115'>  ");
document.write("<p align='center'><a href=Userlist_data.asp?username="+username+">"+username+"</a></p>");
document.write(" </td>  ");
document.write("");
document.write(" <td width='145'>");
document.write("<p align='center'>"+reg_time+"</p>");
document.write(" </td> ");
document.write("  ");
document.write(" <td width='125'> ");
document.write("<p align='center'>"+zjdlsj+"</p>");
document.write(" </td>");
document.write(" ");
document.write(" <td width='99'> ");
document.write("<p align='center'>"+topic+"</p> ");
document.write(" </td>  ");
document.write("");
document.write(" <td width='111'>");
document.write("<p align='center'>"+zw+"</p>  ");
document.write(" </td>  ");
document.write("");
document.write(" <td width='96'>");
document.write("<p align='center'>"+oicq+"</p>  ");
document.write(" </td>  ");
document.write("");
document.write(" <td width='83'>");
document.write("  ");
document.write(""+email+"");
document.write(" ");
document.write(" </td>");
document.write("  </tr> ");
}



function show_bbs(title,type,hits,page,number,username,pic,dj,zw,topic,reg_time,yucun,jifen,email,lock,body,qianming,regtime,wdate,id,bid,gd,lock,good,fid,weburl)

{
document.write("  <tr><td colspan='2' bgcolor='#CCCCCC' height='25'> <table width='100%' border='0' cellspacing='0' cellpadding='0'>  ");
document.write("  <tr>");
document.write(" <td class='listcontents3'><strong><font color='#3366FF'>&nbsp;&nbsp;帖子主题："+title+"</font></strong></td> ");
document.write(" <td><div align='right'>  ");
if (type==0) {
document.write("  本主题点击统计：<font color='#FF3300'><strong>"+hits+"</strong></font>次");
document.write("");
document.write("  "); }
if (page=="" ) {page=1}
else{page=page}
document.write("<B>"+page+"</B>栋<B>"+number+"</b>楼  ");
document.write("&nbsp;&nbsp;");
document.write("  ");
document.write("");
document.write("</div></td> ");
document.write("  </tr> ");
document.write("</table></td> ");
document.write("  </tr> ");
document.write("  <tr bgcolor='#FFFFFF'>  ");
document.write(" <td width='22%' valign='top' > <div align='center'>  ");
document.write("  <table width='150' border='0' align='center' cellpadding='0' cellspacing='0'> ");
document.write(" <tr>  ");
document.write("<td>");
document.write("   ");
document.write("  <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write(" <tr>  ");
document.write("<td height=6 bgcolor='ffffff'> <table width='120' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='ffffff'> ");
document.write(" <tr  ");

document.write("<td bgcolor='#FFFFFF'><div align='center'>");
document.write("  </div></td> ");

document.write(" </tr> ");
document.write("  </table> ");
document.write("  <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write(" <tr>  ");
document.write("<td height=7></td> ");
document.write(" </tr> ");
document.write("  </table> ");
document.write("  <div align='center'><img src=images/"+pic+" width='81' height='90'>  ");
document.write(" <table width='100%' border='0' cellspacing='0' cellpadding='0'> ");
document.write("<tr>  ");
document.write("  <td height=7></td> ");
document.write("</tr> ");
document.write(" </table> ");
document.write(" <table width='150' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='ffffff'> ");
document.write("<tr>  ");
document.write("  <td bgcolor='#FFFFFF'> ");
document.write(" <table width='100%' height='84' border='0' cellpadding='0' cellspacing='0'> ");
document.write("<tr>  ");
document.write("  <td width='40%'><div align='right'>昵称：</div></td> ");
document.write("  <td width='60%'>"+username+" <img src='images/Order_31.gif' width='13' height='13' align='absmiddle'>  ");
document.write(" ");
document.write("  </td> ");
document.write("</tr> ");
document.write("<tr>  ");
document.write("  <td width='40%'><div align='right'>等级：</div></td> ");
document.write("  <td width='60%'>"+dj+"  ");
document.write(" ");
document.write("  </td> ");
document.write("</tr> ");
document.write("<tr>  ");
document.write("  <td width='40%'><div align='right'>职位：</div></td> ");
document.write("  <td width='60%'>"+zw+"  ");
document.write(" ");
document.write("  </td> ");
document.write("</tr> ");
document.write("<tr>  ");
document.write("  <td><div align='right'>帖数：</div></td>");
document.write("  <td>"+topic+"</td>");
document.write("</tr>");
document.write("<tr> ");
document.write("  <td><div align='right'>积分：</div></td>");
document.write("  <td>"+jifen+"</td>  ");
document.write("</tr>  ");
document.write("<tr> ");
document.write("  <td><div align='right'>存款：</div></td>");
document.write("  <td><img src='images/money.gif' border='0'> "+yucun+"</td>  ");
document.write("</tr>  ");
document.write("<tr> ");
document.write("  <td><div align='right'>注册：</div></td>");
document.write("  <td>"+reg_time+"</td>  ");
document.write("</tr>  ");
document.write(" </table>  ");
document.write("  </td>  ");
document.write("</tr>  ");
document.write(" </table>  ");
document.write("  </div></td>  ");
document.write(" </tr>  ");
document.write("  </table>  ");
document.write("  </td> ");
document.write(" </tr> ");
document.write("  </table> ");
document.write("</div></td> ");
document.write(" <td width='78%' valign='top' bgcolor='#FFFFFF'> <table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#F1F1F1'> ");
document.write("  <tr>  ");
document.write(" <td><table width='100%' border='0' cellspacing='0' cellpadding='3'> ");
document.write("  <tr>  ");
document.write(" <td>&nbsp;&nbsp;<img src='images/Order_38.gif' width='13' height='14' align='absmiddle'>  ");
document.write("  <a href='Userlist_data.asp?username="+username+"'>个人档案</a> ");
document.write(" <img src='images/Order_40.gif' width='13' height='11' align='absmiddle'>  ");
document.write("  <a href='mailto:"+email+"'>作者邮箱</a> ");
document.write(" <img src='images/Order_41.gif' width='10' height='13' align='absmiddle'>  ");
document.write("  <a href='mysms.asp?menu=write&amp;username="+username+"'>发送短信给此作者</a> ");
document.write(" <img src='images/Order_46.gif' width='16' height='16' align='absmiddle'>");
document.write("  <a href='#' onclick='javascript:print()' title='打印此帖子'>打印此帖子</a>  ");
document.write(" <img src='images/Order_40.gif' width='13' height='11' align='absmiddle'>  ");
document.write(" <a href='/Diary/search.asp?lx=2&search="+username+"'>会员日记</a></td> ");
document.write("  </tr>  ");
document.write("</table>  ");

document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' >  ");
document.write("  <tr>");
document.write(" <td height=1 bgcolor='999999'></td>  ");
document.write("  </tr>  ");
document.write("</table></td>  ");
document.write("  </tr>  ");
document.write("</table>  ");
document.write("<table width='100%' border='0' cellpadding='10' cellspacing='0' >  ");
document.write("  <tr>");
document.write(" <td width='100%' class='listcontents2' height='98'> <div>");
document.write("  <table width='100%' border='0' cellpadding='0' cellspacing='0' style=TABLE-LAYOUT:fixed height='100%'>  ");
document.write(" <tr>");
document.write("<td ><strong></strong>");
document.write("  <p align='left'> ");
if (lock==1){body=" <p align='center'><font color=red>该帖子已经被锁定，不能查看</font></p>"}
 else {body=body}
document.write(""+body+"");

document.write("</td>  ");
document.write(" </tr>  ");
document.write("  </table>  ");
document.write("</div></td>  ");
document.write("  </tr>  ");
document.write("  <tr>");
document.write(" <td class='listcontents2' height='29' >");
document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'> ");
document.write("  <tr> ");
document.write(" <td width='100%'> ");
document.write(" <p><strong>本文地址</strong>: ");
		  str=""+weburl+"/bbs/show.asp?id="+id;
		  str1="show.asp?id="+id;
  		  document.write("<a href=",str1," target=_blank>",str,"</a>");
		  document.write("  <a href='javascript:' onclick='clipboardData.setData(\"Text\",\""+str+"\")' >复制</a>");
document.write("<br><font color=cccccc>-----------------------------------------------------------------------</font><br><img src='images/shows.gif' align='absmiddle'>&nbsp;<font color=0DBAF2>"+qianming+"</font></td> ");
document.write("  </tr> ");
document.write("</table> ");
document.write("  <center> </center> </td> ");
document.write("  </tr> ");
document.write("</table></td> ");
document.write("  </tr> ");
document.write("  <tr>  ");
document.write(" <td bgcolor='#FFFFFF'> <div align='center'><img src='images/Order_37.gif' width='23' height='13' align='absmiddle' title='最近登陆时间'> ");
document.write("  "+wdate+" </div></td>");
document.write(" <td bgcolor='#F7FEFF'><table width='100%' border='0' align='right' cellpadding='2' cellspacing='0'>");
document.write("<tr> ");

document.write(" <td> &nbsp;&nbsp;<img src='images/Order_47.gif' width='17' height='18' align='absmiddle'> ");
document.write("  <a href='post_edit.asp?id="+id+"&bid="+bid+"'>编辑</a>  ");
//document.write(" <img src='images/Order_44.gif' width='17' height='12'>");
//document.write("  <a href='move.asp?id="+id+"&bid="+bid+"'>移动</a> ");
document.write(" <img src='images/Order_48.gif' width='15' height='18' align='absmiddle'>  ");
if  (type==0)
	{
document.write("  <a href='del_post.asp?id="+id+"&amp;bid="+bid+"'>删除</a>  ");
}
else
{  
document.write("  <a href='del_post.asp?id="+id+"&amp;bid="+bid+"&fid="+fid+"&action=reply'>删除</a>  ");
	}
document.write(" ");
document.write("  ");
  if (type==0)
	{
document.write(" <img src='images/Order_16.gif'  align='absmiddle'> ");
document.write("  ");
if (gd!=2) {abc="<a href='set.asp?id="+id+"&amp;action=gd&amp;bid="+bid+"'>总固顶</a>"}
else {abc="<a href='set.asp?id="+id+"&amp;action=nogd&amp;bid="+bid+"'>取消总固顶</a>"}
document.write(""+abc+"");

document.write("");
document.write("  <img border='0' src='images/top.gif'>");
 if (gd!=1) {cde="<a href='set.asp?id="+id+"&amp;action=gd1&amp;bid="+bid+"'>固顶</a>"}
else {cde="<a href='set.asp?id="+id+"&amp;action=nogd1&amp;bid="+bid+"'>取消固顶</a>"}
document.write("  ");
document.write(""+cde+"");
document.write("   ");
document.write(" <img src='images/Order_50.gif' width='11' height='18' align='absmiddle'>");
if (lock!=1){lock="<a href='set.asp?id="+id+"&action=lock&bid="+bid+"'>锁定</a>"}
else {lock="<a href='set.asp?id="+id+"&action=nolock&bid="+bid+"'>恢复锁定</a>"}
document.write("  ");
document.write(""+lock+"");

document.write("  ");
document.write(" <img src='images/Order_51.gif' width='13' height='17' align='absmiddle'>");
document.write("  ");
if (good!=1){good="<a href='set.asp?id="+id+"&action=jh&bid="+bid+"'>精华</a>"}
else {good="<a href='set.asp?id="+id+"&action=nojh&bid="+bid+"'>取消精华</a>"} 
document.write(""+good+"");

document.write("</td> ");
	}
document.write("  </tr>  ");
document.write("  ");
document.write("</table></td>  ");
document.write("  </tr>  ");
}

