<script language=javascript>
function picsize(obj,MaxWidth){

  img=new Image();
  img.src=obj.src;
  if (img.width>MaxWidth)
  {
    return MaxWidth;
  }
  else
  {
    return img.width;
  }
}
</script>


<%
Function code_jk(strers)
  dim strer:strer=strers
  if strer="" or isnull(strer) then code_jk="":exit function
  
  strer=health_var(strer,1)
  
    strer = replace(strer, ">", "&gt;")
    strer = replace(strer, "<", "&lt;")
    strer = replace(strer," ","&nbsp")		'空格
    strer = Replace(strer, CHR(32), "&nbsp;")
    strer = Replace(strer, CHR(9), "&nbsp;")		'table
    strer = Replace(strer, CHR(34), "&quot;")		'双引号
    strer = Replace(strer, CHR(39), "&#39;")		'单引号
    strer = Replace(strer, CHR(13), "")
    'strer = Replace(strer, CHR(10) & CHR(10), "</P><P> ")
    strer = Replace(strer, CHR(10), "<BR> ")

  dim re,re_v
  re_v="[^\(\)\;\'\[]*"
  're_v=".[^\[]*"

  Set re=new RegExp
  re.IgnoreCase =True
  re.Global=True
  
  re.Pattern="(javascript:)"
  strer=re.Replace(strer,"javascript：")
  re.Pattern="(javascript)"
  strer=re.Replace(strer,"&#106avascript")
  re.Pattern="(jscript:)"
  strer=re.Replace(strer,"&#106script:")
  re.Pattern="(js:)"
  strer=re.Replace(strer,"&#106s:")
  re.Pattern="(value)"
  strer=re.Replace(strer,"&#118alue")
  re.Pattern="(about:)"
  strer=re.Replace(strer,"about&#58")
  re.Pattern="(file:)"
  strer=re.Replace(strer,"file&&#58")
  re.Pattern="(document.cookie)"
  strer=re.Replace(strer,"documents&#46cookie")
  re.Pattern="(document.)"
  strer=re.Replace(strer,"document．")
  re.Pattern="(vbscript:)"
  strer=re.Replace(strer,"&#118bscript:")
  re.Pattern="(vbs:)"
  strer=re.Replace(strer,"&#118bs &#58")
  re.Pattern="(on(mouse|exit|error|click|key))"
  strer=re.Replace(strer,"&#111n$2")
  
  re.Pattern="\[IMGS\](.[^\[]*(gif|jpg|jpeg|bmp|png))\[\/IMGS\]"
  're.Pattern="\[IMG\](http|https|ftp):\/\/(.[^\[]*)\[\/IMG\]"
  strer=re.Replace(strer,"<IMG SRC='$1' align=center border=0 onload=""javascript:if(this.width>screen.width-max-width)this.width=screen.width-max-width"">")
  re.Pattern="\[IMG\](.[^\[]*(gif|jpg|jpeg|bmp|png))\[\/IMG\]"
  strer=re.Replace(strer,"<a href=$1 target=_blank><IMG SRC=$1 align=center border=0 onload=""javascript:this.width=picsize(this,575)"" alt='按此在新窗口浏览图片'></a>")
  
  re.Pattern="\[DIR=*([0-9]*),*([0-9]*)\]("&re_v&")\[\/DIR]"
  strer=re.Replace(strer,"<object classid=clsid:166B1BCA-3F9C-11CF-8075-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0 width=$1 height=$2><param name=src value=$3><embed src=$3 pluginspage=http://www.macromedia.com/shockwave/download/ width=$1 height=$2></embed></object>")
  re.Pattern="\[QT=*([0-9]*),*([0-9]*)\]("&re_v&")\[\/QT]"
  strer=re.Replace(strer,"<embed src=$3 width=$1 height=$2 autoplay=true loop=false controller=true playeveryframe=false cache=false scale=TOFIT bgcolor=#ededed kioskmode=false targetcache=false pluginspage=http://www.apple.com/quicktime/>")
  re.Pattern="\[MP=*([0-9]*),*([0-9]*)\]("&re_v&")\[\/MP]"
  strer=re.Replace(strer,"<object align=middle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=OBJECT id=MediaPlayer width=$1 height=$2 ><param name=ShowStatusBar value=-1><param name=Filename value=$3><embed type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 flename=mp src=$3  width=$1 height=$2></embed></object>")
  re.Pattern="\[RM=*([0-9]*),*([0-9]*)\]("&re_v&")\[\/RM]"
  strer=re.Replace(strer,"<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=$1 height=$2><PARAM NAME=SRC VALUE=$3><PARAM NAME=CONSOLE VALUE=Clip1><PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true></OBJECT><br><OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width=$1><PARAM NAME=SRC VALUE=$3><PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>")
  re.Pattern="(\[FLASH=*([0-9]*),*([0-9]*)\])("&re_v&"(.swf))(\[\/FLASH\])"
  strer=re.Replace(strer,"<img src='images/small/flash.gif' border=0 align=absMiddle width=16 height=16> <a href='$4' TARGET=_blank>『 全屏欣赏 』</a><br><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=$2 height=$3><PARAM NAME=movie VALUE='$4'><PARAM NAME=quality VALUE=high><embed src='$4' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=$2 height=$3>$4</embed></OBJECT>")
  re.Pattern="(\[FLASHS=*([0-9]*),*([0-9]*)\])("&re_v&"(.swf))(\[\/FLASHS\])"
  strer=re.Replace(strer,"<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=max-width height=max-height><PARAM NAME=movie VALUE=""$2""><PARAM NAME=quality VALUE=high><embed src=""$2"" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=max-width height=max-height>$2</embed></OBJECT>")
  
  re.Pattern="(\[DOWNLOAD\])("&re_v&")(\[\/DOWNLOAD\])"
  strer=re.Replace(strer,"<img src=images/small/download.gif border=0 align=absMiddle height=16 width=16> <a href=""$2"" TARGET=_blank>『 点击下载 』</a>")
  re.Pattern="(\[URL\])("&re_v&")(\[\/URL\])"
  strer=re.Replace(strer,"<A HREF='$2' TARGET=_blank>$2</A>")
  re.Pattern="(\[URL=(.[^\[]*)\])(.[^\[]*)(\[\/URL\])"
  strer=re.Replace(strer,"<A HREF='$2' TARGET=_blank>$3</A>")
  re.Pattern="(\[EMAIL\])(\S+\@.[^\[]*)(\[\/EMAIL\])"
  strer=re.Replace(strer,"<img align=absmiddle src=images/small/email.gif><A HREF=""mailto:$2"">$2</A>")
  re.Pattern="(\[EMAIL=(\S+\@.[^\[]*)\])(.[^\[]*)(\[\/EMAIL\])"
  strer=re.Replace(strer,"<img align=absmiddle src=images/small/email.gif><A HREF=""mailto:$2"" TARGET=_blank>$3</A>")
  re.Pattern ="^(http://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="(http://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)$"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="([^>='])(http://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"$1<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$2>$2</a>")
  re.Pattern ="^(ftp://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="(ftp://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)$"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="[^>='](ftp://[A-Za-z0-9\.\/=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="^(rtsp://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="(rtsp://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)$"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="[^>='](rtsp://[A-Za-z0-9\.\/=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="^(mms://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="(mms://[A-Za-z0-9\./=\?%\-&_~`@':+!]+)$"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern ="[^>='](mms://[A-Za-z0-9\.\/=\?%\-&_~`@':+!]+)"
  strer =re.Replace(strer,"<img align=absmiddle src='images/small/url.gif'><a target=_blank href=$1>$1</a>")
  re.Pattern="\[face=(.[^\[]*)\](.[^\[]*)\[\/face\]"
  strer=re.Replace(strer,"<font face=$1>$2</font>")
  re.Pattern="\[size=([1-4])\](.[^\[]*)\[\/size\]"
  strer=re.Replace(strer,"<font size=$1>$2</font>")
  re.Pattern="\[color=(.[^\[]*)\](.[^\[]*)\[\/color\]"
  strer=re.Replace(strer,"<font color=$1>$2</font>")
  re.Pattern="\[align=(.[^\[]*)\](.[^\[]*)\[\/align\]"
  strer=re.Replace(strer,"<div align=$1>$2</div>")
  re.Pattern="\[align=(.[^\[]*)\](.*)\[\/align\]"
  strer=re.Replace(strer,"<div align=$1>$2</div>")
  re.Pattern="\[center\](.[^\[]*)\[\/center\]"
  strer=re.Replace(strer,"<div align=center>$1</div>")
  re.Pattern="\[QUOTE\](.*)\[\/QUOTE\]"
  strer=re.Replace(strer,"<table border=1 cellspacing=0 cellpadding=4 width='98%' bordercolorlight="&web_var(web_color,4)&" bordercolordark="&web_var(web_color,1)&" bgcolor="&web_var(web_color,1)&" style=""TABLE-LAYOUT: fixed"" align=center><tr><td style=""WORD-WRAP: break-word"">$1</td></tr></table><br>")
  're.Pattern="\[HTML\](.[^\[]*)\[\/HTML\]"
  'strer=re.Replace(strer,"<table width='100%' border='0' cellspacing='0' cellpadding='6' class='"&abgcolor&"'><td><b>以下内容为程序代码:</b><br>$1</td></table>")
  re.Pattern="\[CODE\](.*)\[\/CODE\]"
  strer=re.Replace(strer,"<table border=1 cellspacing=0 cellpadding=4 width='98%' bordercolorlight="&web_var(web_color,4)&" bordercolordark="&web_var(web_color,1)&" bgcolor="&web_var(web_color,1)&" style=""TABLE-LAYOUT: fixed"" align=center><tr><td style=""WORD-WRAP: break-word"">$1</td></tr></table><br>")
  re.Pattern="\[fly\](.[^\[]*)\[\/fly\]"
  strer=re.Replace(strer,"<marquee width=90% behavior=alternate scrollamount=3>$1</marquee>")
  re.Pattern="\[move\](.[^\[]*)\[\/move\]"
  strer=re.Replace(strer,"<MARQUEE scrollamount=3>$1</marquee>")  
  re.Pattern="\[GLOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/GLOW]"
  strer=re.Replace(strer,"<table width=$1 style=""filter:glow(color=$2, strength=$3)"">$4</table>")
  re.Pattern="\[SHADOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/SHADOW]"
  strer=re.Replace(strer,"<table width=$1 style=""filter:shadow(color=$2, strength=$3)"">$4</table>")
  re.Pattern="\[i\](.[^\[]*)\[\/i\]"
  strer=re.Replace(strer,"<i>$1</i>")
  re.Pattern="\[u\](.[^\[]*)(\[\/u\])"
  strer=re.Replace(strer,"<u>$1</u>")
  re.Pattern="\[b\](.[^\[]*)(\[\/b\])"
  strer=re.Replace(strer,"<b>$1</b>")
  
  dim emci
  for emci=1 to 16
    strer=Replace(strer,"[em"&emci&"]","<image src='images/icon/em"&emci&".gif' border=0>&nbsp;")
  next
  for emci=1 to 28
    strer=Replace(strer,"[emb"&emci&"]","<image src='images/icon/emb"&emci&".gif' border=0>&nbsp;")
  next
  
   '================================
     '新动作
if u_username<>"" then
   dim AlertFontColor,AlertFontColor1
AlertFontColor="#ff0000"
AlertFontColor1="blue"
re.Pattern="(\/恶心)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">觉得一阵恶心，哇啦哇啦地吐了一地……</b></font><img src=images/dongz/043.gif border=0 align=middle>")
re.Pattern="(\/高兴)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">高兴地跳了起来。</b></font><img src=images/dongz/046.gif border=0 align=middle>")
re.Pattern="(\/招呼)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">逢人就打招呼：大家好，今天是我大喜的日子！请吃糖！ 请吃糖！</b></font><img src=images/dongz/05.gif border=0 align=middle>")
re.Pattern="(\/欢迎)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">:高兴的叫道：欢迎、欢迎、热烈欢迎～～</b></font><img src=images/dongz/085.gif border=0 align=middle>")
re.Pattern="(\/灌水)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">嚷道：“新来的，别乱欺负哦，灌水先”</b></font><img src=images/dongz/034.gif border=0 align=middle>")
re.Pattern="(\/无聊)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">拿出一张钞票：“好无聊啊，谁要陪我灌水？” </b></font><img src=images/dongz/01.gif border=0 align=middle>")
re.Pattern="(\/负责)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">哭着说：“都这样了，555，你可要对我负责呀！”呜～～</b></font><img src=images/dongz/02.gif border=0 align=middle>")
re.Pattern="(\/生气)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">撅了撅嘴说：“气死我了呀！呀！呀！”</b></font><img src=images/dongz/03.gif border=0 align=middle>")
re.Pattern="(\/鼓掌)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">鼓掌喝采“好ＹＥ！好ＹＥ！”</b></font><img src=images/dongz/06.gif border=0 align=middle>")
re.Pattern="(\/等待)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">悲伤的唱到：“你知不知道，你知不知道？我等到花儿也谢了...” </b></font><img src=images/dongz/07.gif border=0 align=middle>")
re.Pattern="(\/反对)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&"><img src=images/dongz/08.gif border=0 align=middle>不行！我坚决反对！</b></font>")
re.Pattern="(\/浪漫)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">像罗密欧与朱丽叶式的吹起曲子来“我悄悄地蒙上你的眼睛，让你猜猜我是谁？” </b></font><img src=images/dongz/019.gif border=0 align=middle>")
re.Pattern="(\/不要)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">摆了摆手，说：“不要呀！” </b></font><img src=images/dongz/010.gif border=0 align=middle>")
re.Pattern="(\/找死)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">说：跟我斗，你还嫩着哩；刚练成的无筋腿，拿你试试先！</b></font><img src=images/dongz/023.gif border=0 align=middle>")
re.Pattern="(\/去死)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">说：嘿嘿，你去死吧！</b></font><img src=images/dongz/011.gif border=0 align=middle>")
re.Pattern="(\/狂笑)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">仰天狂笑<img src=images/dongz/012.gif border=0 align=middle>“普天之下，竟然没有我的对手...”</b></font>")
re.Pattern="(\/傻笑)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor&"><b>西西、禾禾～～ </font><font color="&AlertFontColor1&">"&u_username &"</font><font color="&AlertFontColor&">突然笑了起来.. </b></font><img src=images/dongz/031.gif border=0 align=middle>")
re.Pattern="(\/痛哭)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">鼻子一酸，开始叭嗒叭嗒掉眼泪了…… </b></font><img src=images/dongz/013.gif border=0 align=middle>")
re.Pattern="(\/道别)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">向在场的所有人道：“小生先行告退，后会有期。” </b></font><img src=images/dongz/015.gif border=0 align=middle>")
re.Pattern="(\/跳舞)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">乐地手足蹈舞！</b></font><img src=images/dongz/017.gif border=0 align=middle>")
re.Pattern="(\/失望)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">低下头，神情失望极了。</b></font><img src=images/dongz/018.gif border=0 align=middle>")
re.Pattern="(\/唱歌)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">清清嗓子唱起歌来：东方红，太阳升…… </b></font><img src=images/dongz/09.gif border=0 align=middle>")
re.Pattern="(\/害羞)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">害羞地脸都红了，恨没有地洞，好钻进去躲起来~~ </b></font><img src=images/dongz/020.gif border=0 align=middle>")
re.Pattern="(\/比酷)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">:摆了个ＰＯＳＥ道：“你、你、你没我酷..” </b></font><img src=images/dongz/021.gif border=0 align=middle>")
re.Pattern="(\/救命)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">大叫：狼来了！狼来了！救命啊！救命啊！</b></font><img src=images/dongz/022.gif border=0 align=middle>")
re.Pattern="(\/狂妄)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">:剑眉一轩，冷冷的瞥了一眼，背转身淡淡说道：你，不是我的，对手！</b></font><img src=images/dongz/025.gif border=0 align=middle>")
re.Pattern="(\/拳击)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">:叫道：这会人兄身材好有型哦！给我练拳不？</b></font><img src=images/dongz/026.gif border=0 align=middle>")
re.Pattern="(\/我踢)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">说：我踢、我踢、我踢死你 </b></font><img src=images/dongz/029.gif border=0 align=middle>")
re.Pattern="(\/我踩)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">大叫：我踩、我踩、踩死楼上的，踩扁楼下的！</b></font><img src=images/dongz/027.gif border=0 align=middle>")
re.Pattern="(\/饶命)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">大喊：老婆！你就饶了我吧！</b></font><img src=images/dongz/028.gif border=0 align=middle>")
re.Pattern="(\/眨眼)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">天真地眨了眨眼睛！一对会说话的眼睛闪闪动人^)^ </b></font><img src=images/dongz/032.gif border=0 align=middle>")
re.Pattern="(\/臭美)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">嚷道：“你当你是谁呀，你以为你是张学友呀？” </b></font><img src=images/dongz/033.gif border=0 align=middle>")
re.Pattern="(\/变态)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">对偻上的说：“你真的好变态哦”</b></font><img src=images/dongz/037.gif border=0 align=middle>")
re.Pattern="(\/拼酒)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">说：“什么时候咋俩拼拼酒啊。” </b></font><img src=images/dongz/038.gif border=0 align=middle>")
re.Pattern="(\/深情)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">深情地唱道：我早已为你种下，九百九十九朵玫瑰.. </b></font><img src=images/dongz/042.gif border=0 align=middle>")
re.Pattern="(\/惊讶)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">惊讶得两眼瞪得贼大！</b></font><img src=images/dongz/044.gif border=0 align=middle>")
re.Pattern="(\/抽烟)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">从烟缸中拣出个烟屁股，用两根手指夹着点着了，眯起眼睛狂嘬几口。</b></font><img src=images/dongz/045.gif border=0 align=middle>")
re.Pattern="(\/怀疑)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">抓了抓头皮，问道：“有这回事吗？” </b></font><img src=images/dongz/047.gif border=0 align=middle>")
re.Pattern="(\/拉勾)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">对楼上的说：我们<img src=images/dongz/050.gif border=0 align=middle>就不许反悔了。</b></font>")
re.Pattern="(\/经典)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">呢喃道：“好久没见过这么经典的东东了。”</b></font><img src=images/dongz/051.gif border=0 align=middle>")
re.Pattern="(\/同意)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">说：“你们都对，行了吧！￣”</b></font><img src=images/dongz/052.gif border=0 align=middle>")
re.Pattern="(\/ＯＫ)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">怪腔怪调地说：“ＯＫ啦！～”</b></font><img src=images/dongz/084.gif border=0 align=middle>")
re.Pattern="(\/kiss)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&"><img src=images/dongz/053.gif border=0 align=middle>小孩子不要偷看！</b></font>")
re.Pattern="(\/生日)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">猪你生日快乐！</b></font><img src=images/dongz/055.gif border=0 align=middle>")
re.Pattern="(\/晕倒)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">突然觉得天昏地暗，一声“我要晕了”后就倒下了！</b></font><img src=images/dongz/056.gif border=0 align=middle>")
re.Pattern="(\/气你)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">对楼上的说：“哈哈，我气死你。”</b></font><img src=images/dongz/058.gif border=0 align=middle>")
re.Pattern="(\/错啦)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">说：“又搞错啦！”</b></font><img src=images/dongz/059.gif border=0 align=middle>")
re.Pattern="(\/加油)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">内心在默默地喊着加油。</b></font><img src=images/dongz/060.gif border=0 align=middle>")
re.Pattern="(\/恭喜)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">恭喜、贺喜<img src=images/dongz/061.gif border=0 align=middle>什么时候请吃酒啊？</b></font>")
re.Pattern="(\/简单)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&"><img src=images/dongz/063.gif border=0 align=middle>抓了抓脑袋道：喔，原来这么简单呀？！</b></font>")
re.Pattern="(\/加油)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">内心在默默地喊着加油。</b></font><img src=images/dongz/063.gif border=0 align=middle>")
re.Pattern="(\/鼓励)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">挥着手说道：同志们辛苦了！</b></font><img src=images/dongz/064.gif border=0 align=middle>")
re.Pattern="(\/过奖)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">拱了拱手道：<img src=images/dongz/065.gif border=0 align=middle>过奖，过奖！</b></font>")
re.Pattern="(\/原谅)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">连哭带喊跪在地上<img src=images/dongz/066.gif border=0 align=middle>叫道：你们大家再原谅我一次吧！</b></font>")
re.Pattern="(\/大笑)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">开怀大笑。</b></font><img src=images/dongz/067.gif border=0 align=middle>")
re.Pattern="(\/感动)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">感动极了，一行热泪夺眶而出。</b></font><img src=images/dongz/069.gif border=0 align=middle>")
re.Pattern="(\/叹气)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">长叹了一口气那神情仿佛是在说：“我都是要进棺材的人了，还在乎些什么？？！”</b></font>")
re.Pattern="(\/道谢)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">对在场的所有人鞠躬道谢！</b></font><img src=images/dongz/075.gif border=0 align=middle>")
re.Pattern="(\/摇头)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">拼命地摇摇头, 一副很无辜的样子。</b></font><img src=images/dongz/077.gif border=0 align=middle>")
re.Pattern="(\/点头)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">同意地点了点头。</b></font><img src=images/dongz/078.gif border=0 align=middle>")
re.Pattern="(\/拥抱)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b>"&u_username &"</font><font color="&AlertFontColor&">张开双臂来吧，小宝贝儿！让叔叔抱！</b></font><img src=images/dongz/080.gif border=0 align=middle>")

end if

'-------------------------
     '新音乐
if u_username<>"" then
   dim AlertFontColor2,AlertFontColor3
AlertFontColor2="#ff0000"
AlertFontColor3="blue"
re.Pattern="(\/奉献)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/fenxian.MID border=0 align=middle>")
re.Pattern="(\/心雨)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/xinyu.MID border=0 align=middle>")
re.Pattern="(\/童年)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/tongnian.MID border=0 align=middle>")
re.Pattern="(\/国歌)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/guoge.MID border=0 align=middle>")
re.Pattern="(\/天涯)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/tianya.MID border=0 align=middle>")
re.Pattern="(\/天意)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/tianyi.MID border=0 align=middle>")
re.Pattern="(\/女人)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/nvren.MID border=0 align=middle>")
re.Pattern="(\/后来)"
    strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/76.mid border=0 align=middle>")
re.Pattern="(\/彩虹)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/95.mid border=0 align=middle>")
re.Pattern="(\/最美)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/3.mid border=0 align=middle>")
re.Pattern="(\/心动)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/90.mid border=0 align=middle>")
re.Pattern="(\/勇气)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/87.mid border=0 align=middle>")
re.Pattern="(\/星晴)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/57.mid border=0 align=middle>")
re.Pattern="(\/约定)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/61.mid border=0 align=middle>")
re.Pattern="(\/宽容)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/19.mid border=0 align=middle>")
re.Pattern="(\/第一次)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/62.mid border=0 align=middle>")
re.Pattern="(\/心太软)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/xintairuan.MID border=0 align=middle>")
re.Pattern="(\/比较烦)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/bijiaofan.MID border=0 align=middle>")
re.Pattern="(\/辣妹子)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/lameizi.MID border=0 align=middle>")
re.Pattern="(\/梦驼铃)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/mengtuoling.MID border=0 align=middle>")
re.Pattern="(\/死不了)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/sibuliao.MID border=0 align=middle>")
re.Pattern="(\/好日子)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/haorizi.MID border=0 align=middle>")
re.Pattern="(\/盼红军)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/panhongjun.MID border=0 align=middle>")
re.Pattern="(\/山丹丹)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/sandandan.MID border=0 align=middle>")
re.Pattern="(\/柠檬树)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/linmengshu.MID border=0 align=middle>")
re.Pattern="(\/爱的奉献)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/aidefengxian.MID border=0 align=middle>")
re.Pattern="(\/爱的呼唤)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/aidehuhuan.MID border=0 align=middle>")
re.Pattern="(\/不能分离)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/buyaofenli.MID border=0 align=middle>")
re.Pattern="(\/迟来的爱)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/chilaideai.MID border=0 align=middle>")
re.Pattern="(\/春节序曲)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/chunjiexuqu.MID border=0 align=middle>")
re.Pattern="(\/单身情歌)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/danshenqingge.mid border=0 align=middle>")
re.Pattern="(\/今宵珍重)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/jinxiaozhengzhong.MID border=0 align=middle>")
re.Pattern="(\/京腔京韵)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/jinqiangjinyun.MID border=0 align=middle>")
re.Pattern="(\/九月九酒)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/jiuyuejiujiu.MID border=0 align=middle>")
re.Pattern="(\/秘密情人)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/mimiqingren.MID border=0 align=middle>")
re.Pattern="(\/同桌的你)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/tongzuodeni.MID border=0 align=middle>")
re.Pattern="(\/弯弯月亮)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/wangwangdeyueliang.MID border=0 align=middle>")
re.Pattern="(\/笑傲江湖)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/haoaojianghu.MID border=0 align=middle>")
re.Pattern="(\/新上海滩)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/shanghaitan.MID border=0 align=middle>")
re.Pattern="(\/心语星愿)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/30.mid border=0 align=middle>")
re.Pattern="(\/单身情歌)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/64.mid border=0 align=middle>")
re.Pattern="(\/秘密花园)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/28.mid border=0 align=middle>")
re.Pattern="(\/风雨无阻)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/72.mid border=0 align=middle>")
re.Pattern="(\/生日快乐)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/15.mid border=0 align=middle>")
re.Pattern="(\/仙剑奇侠)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/6.mid border=0 align=middle>")
re.Pattern="(\/精典音乐1)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/107.mid border=0 align=middle>")
re.Pattern="(\/精典音乐2)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/108.mid border=0 align=middle>")
re.Pattern="(\/精典音乐3)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/109.mid border=0 align=middle>")
re.Pattern="(\/如果云知道)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/65.mid border=0 align=middle>")
re.Pattern="(\/最浪漫的事)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/1.mid border=0 align=middle>")
re.Pattern="(\/缘份的天空)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/2.mid border=0 align=middle>")
re.Pattern="(\/谢谢你的爱)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/13.mid border=0 align=middle>")
re.Pattern="(\/但愿人长久)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/8.mid border=0 align=middle>")
re.Pattern="(\/我的野蛮女友)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/89.mid border=0 align=middle>")
re.Pattern="(\/可惜我是水瓶座)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/101.mid border=0 align=middle>")
re.Pattern="(\/罗密欧与茱丽叶)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/45.mid border=0 align=middle>")
re.Pattern="(\/风中有朵雨做的云)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/71.mid border=0 align=middle>")
re.Pattern="(\/不让我的眼泪陪我过夜)"
	strer=re.Replace(strer,"<br><font color="&AlertFontColor1&"><b></font><font color="&AlertFontColor&"></b></font><bgsound src=pic/bmusic/63.mid border=0 align=middle>")
end if


'.........................................特殊贴开始...........................................
if Right(tit,6)="（浏览贴子）" then
dim vrs,ii,po

'.........................................回复可见开始.........................................
	re.Pattern="(\[replyview\])(.[^\[]*)(\[\/replyview\])"
    if login_mode="admin" then
	strer=re.Replace(strer,"<hr noshade size=1>以下内容为需要回复才能浏览<BR>$2<hr noshade size=1>")
    else
	set vrs=conn.execute("select id from bbs_data where forum_id="&forumid&" and reply_id="&viewid&" and username='"&login_username&"'")
	if vrs.eof and vrs.bof then
	strer=re.Replace(strer,"<hr noshade size=1><font class=red_3>此内容需要回复才能浏览</font><hr noshade size=1>")
	else
	strer=re.Replace(strer,"<hr noshade size=1>以下内容为需要回复才能浏览<BR>$2<hr noshade size=1>")
	end if
	vrs.close:set vrs=nothing
	end if
'.........................................回复可见结束..........................................
'.........................................购买可见开始.........................................
'购买帖子
re.Pattern="(^.*)(\[usemoney=*([0-9]*)\])(.[^\[]*)(\[\/usemoney\])(.*)"
po=re.Replace(strer,"$3")
if IsNumeric(po) then
	ii=int(po) 
else
	ii=0
end if
dim vrs2,SplitBuyUser,iPostBuyUser
set vrs2=conn.execute("select username from notes where nsort='b"&forumid&"' and iid="&viewid&" order by id")
if vrs2.eof and vrs2.bof then
iPostBuyUser="<select name=buyuser size=1><option>还没有用户购买</option>"
else
iPostBuyUser="<select name=buyuser size=1><option>已购买用户</option>"
end if
do while not vrs2.eof
SplitBuyUser=vrs2("username")
iPostBuyUser=iPostBuyUser & "<option>"&SplitBuyUser&"</option>"
vrs2.movenext
loop
iPostBuyUser=iPostBuyUser & "</select>"
vrs2.close:set vrs2=nothing
set vrs=conn.execute("select id from notes where username='"&login_username&"' and nsort='b"&forumid&"' and iid="&viewid&"")
if vrs.eof and vrs.bof then
if login_mode="admin" or u_username=login_username then
strer=re.Replace(strer,"$1<hr noshade size=1>以下为需要花<B>$3</B>金钱才能购买并浏览的内容&nbsp;&nbsp;"&iPostBuyUser&"<BR>$4<hr noshade size=1>$6")
else
if int(login_emoney)>ii then
	strer=re.Replace(strer,"$1<Form action=""BuyPost.asp"" mothod=post><hr noshade size=1><font class=red_3>此帖子内容需要您花$3金钱来购买浏览&nbsp;&nbsp;<input type=hidden value="&u_username&" name=username><input type=hidden value="&ii&" name=emoney><input type=hidden name=forum_id value="&forumid&"><input type=hidden value="&viewid&" name=view_id><input type=submit name=submit value=好黑啊…我…我买了！>&nbsp;&nbsp;"&iPostBuyUser&"</font><hr noshade size=1></form>$6")
else
	strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容要求金钱数达到$3以上才可以购买并浏览&nbsp;&nbsp;"&iPostBuyUser&"</font><hr noshade size=1>$6")
end if
end if
else 
strer=re.Replace(strer,"$1<hr noshade size=1>以下为需要花<B>$3</B>金钱才能购买并浏览的内容，您已经购买本贴&nbsp;&nbsp;"&iPostBuyUser&"<BR>$4<hr noshade size=1>$6")
end if
vrs.close:set vrs=nothing
'.........................................购买可见结束..........................................


'.........................................金钱可见开始.........................................
	re.Pattern="(^.*)(\[money=*([0-9]*)\])(.[^\[]*)(\[\/money\])(.*)"
	po=re.Replace(strer,"$3")
	if IsNumeric(po) then
		ii=int(po)
	else
		ii=0
	end if
    if login_mode="admin" or u_username=login_username or int(login_emoney)>ii then
		strer=re.Replace(strer,"$1<hr noshade size=1>以下为需要金钱数达到<B>$3</B>才能浏览的内容<BR>$4<hr noshade size=1>$6")
	else
		strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容要求金钱数达到$3以上才可以浏览</font><hr noshade size=1>$6")
	end if
'.........................................金钱可见结束..........................................
'.........................................贴子数开始.........................................
 re.Pattern="(^.*)(\[Post=*([0-9]*)\])(.[^\[]*)(\[\/Post\])(.*)"
 po=re.Replace(strer,"$3")
 if IsNumeric(po) then
  ii=int(po) 
 else
  ii=0
 end if
   if login_mode="admin" or u_username=login_username or int(login_bcounter)>ii then
   strer=re.Replace(strer,"$1<hr noshade size=1>以下为需要贴子数达到<B>$3</B>才能浏览的内容<BR>$4<hr noshade size=1>$6")
   else
   strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容要求贴子数达到$3以上才可以浏览</font><hr noshade size=1>$6")
   end if
'.........................................贴子数结束..........................................


else
  re.Pattern="(\[replyview\])(.[^\[]*)(\[\/replyview\])"
  strer=re.Replace(strer,"$2")
  re.Pattern="(\[money=*([0-9]*)\])(.[^\[]*)(\[\/money\])"
  strer=re.Replace(strer,"$3")
  re.Pattern="(\[Post=*([0-9]*)\])(.[^\[]*)(\[\/Post\])"
  strer=re.Replace(strer,"$3")
  re.Pattern="(\[point=*([0-9]*)\])(.[^\[]*)(\[\/point\])"
  strer=re.Replace(strer,"$3")
  re.Pattern="(\[usemoney=*([0-9]*)\])(.[^\[]*)(\[\/usemoney\])"
  strer=re.Replace(strer,"$3")
  re.Pattern="(\[power=([1-5])\])(.[^\[]*)(\[\/power\])"
  strer=re.Replace(strer,"$3")
  re.Pattern="(\[sex=([0-1])\])(.[^\[]*)(\[\/sex\])"
  strer=re.Replace(strer,"$3")
end if
'.........................................特殊贴结束...........................................
'.........................................积分可见开始.........................................
 re.Pattern="(^.*)(\[point=*([0-9]*)\])(.[^\[]*)(\[\/point\])(.*)"
 po=re.Replace(strer,"$3")
 if IsNumeric(po) then
  ii=int(po)
 else
  ii=0
 end if
  if login_mode="admin" or u_username=login_username or int(login_integral)>=ii then
  strer=re.Replace(strer,"$1<hr noshade size=1>以下为需要积分达到<B>$3</B>才能浏览的内容<BR>$4<hr noshade size=1>$6")
  else
  strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容要求积分达到$3以上才可以浏览</font><hr noshade size=1>$6")
  end if
'.........................................积分可见结束..........................................
'.........................................性别可见开始.........................................
dim sex
 re.Pattern="(^.*)(\[sex=([0-1])\])(.[^\[]*)(\[\/sex\])(.*)"
 po=re.Replace(strer,"$3")
 if IsNumeric(po) then
  ii=int(po)
 else
  ii=0
 end if
 if ii=0 then
 ii=false:sex="女孩"
 else
 ii=true:sex="男孩"
 end if
  if login_mode="admin" or u_username=login_username or login_sex&sex=ii&sex then
  strer=re.Replace(strer,"$1<hr noshade size=1>以下为只有"&sex&"才能浏览的内容<BR>$4<hr noshade size=1>$6")
  else
  strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容只有"&sex&"才可以浏览</font><hr noshade size=1>$6")
  end if
'.........................................性别可见结束..........................................
'.........................................权限可见开始.........................................
re.Pattern="(^.*)(\[Power=([1-5])\])(.[^\[]*)(\[\/Power\])(.*)"
po=re.Replace(strer,"$3")
if IsNumeric(po) then
	ii=int(po) 
else
	ii=0
end if
dim up1,up2
select case ii
case 1
up1="1"
case 2
up1="1.2"
case 3
up1="1.2.3"
case 4
up1="1.2.3.4"
case 5
up1="1.2.3.4.5"
case else
up1="1.2.3.4.5.0"
end select
up2=format_power(login_mode,2)
if not(isnumeric(up2)) then up2=0
up2=int(up2)
if up2="" or up2=0 then
strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容要求&nbsp;"&power_pic(0,up1,0)&"&nbsp;的权限才可以浏览</font><hr noshade size=1>$6")
else
if login_mode="admin" or u_username=login_username or up2=<ii then
strer=re.Replace(strer,"$1<hr noshade size=1>以下为需要&nbsp;"&power_pic(0,up1,0)&"&nbsp;的权限才能浏览的内容<BR>$4<hr noshade size=1>$6")
else
strer=re.Replace(strer,"$1<hr noshade size=1><font class=red_3>此内容要求&nbsp;"&power_pic(0,up1,0)&"&nbsp;的权限才可以浏览</font><hr noshade size=1>$6")
end if
end if
'.........................................权限可见结束.......................................... 
'.........................................指定可见开始.......................................... 

if instr(lcase(strer),"[/name]")>0 then
  re.Pattern="(^.*)(\[name=(.[^\[]*)\])(.*)(\[\/name\])(.*)"
  po=re.replace(strer,"$3")
    if login_mode="admin" or u_username=login_username or zdtusers(po)="yes" then
      strer=re.Replace(strer,"$1<hr noshade size=1>此內容只有作者、 <B>$3</B> 及管理员才能浏览。<BR>$4<hr noshade size=1>$6")
    else
      strer=re.Replace(strer,"$1<hr noshade size=1><font class=red>此內容只有作者、 <font class=blue><b>$3</b></font> 及管理员才能浏览。</font><BR><hr noshade size=1>$6")
  end if
end if
'.........................................指定可见结束.........................................
 
  '================================

  set re=Nothing

  strer=replace(strer,"[br]","<br>")
  strer=replace(strer,"[BR]","<br>")
  strer=replace(strer,vbCrLf,"<br>")
  strer=replace(strer,"max-width",web_var(web_num,9))
  strer=replace(strer,"max-height",web_var(web_num,10))
  code_jk=strer
end function

function code_jk2(strers)
  dim strer:strer=strers
  if strer="" or isnull(strer) then code_jk2="":exit function
  
  strer=health_var(strer,1)
  
  strer=replace(strer,"<","&lt;")
  strer=replace(strer,">","&gt;")
  strer=replace(strer," ","&nbsp")		'空格
  strer=replace(strer,CHR(9),"&nbsp")		'table
  strer=replace(strer,"'","&#39;")		'单引号
  strer=replace(strer,"""","&quot;")		'双引号
  'code_jk2=strer:exit function
  dim re,re_v
  re_v="[^\(\)\;\'\[]*"
  're_v=".[^\[]*"
  Set re=new RegExp
  re.IgnoreCase =True
  re.Global=True
  
  re.Pattern="(javascript:)"
  strer=re.Replace(strer,"javascript：")
  re.Pattern="(javascript)"
  strer=re.Replace(strer,"&#106avascript")
  re.Pattern="(jscript:)"
  strer=re.Replace(strer,"&#106script:")
  re.Pattern="(js:)"
  strer=re.Replace(strer,"&#106s:")
  re.Pattern="(value)"
  strer=re.Replace(strer,"&#118alue")
  re.Pattern="(about:)"
  strer=re.Replace(strer,"about&#58")
  re.Pattern="(file:)"
  strer=re.Replace(strer,"file&&#58")
  re.Pattern="(document.cookie)"
  strer=re.Replace(strer,"documents&#46cookie")
  re.Pattern="(document.)"
  strer=re.Replace(strer,"document．")
  re.Pattern="(vbscript:)"
  strer=re.Replace(strer,"&#118bscript:")
  re.Pattern="(vbs:)"
  strer=re.Replace(strer,"&#118bs &#58")
  re.Pattern="(on(mouse|exit|error|click|key))"
  strer=re.Replace(strer,"&#111n$2")
  
  re.Pattern="\[IMG\](.[^\[]*(gif|jpg|jpeg|bmp|png))\[\/IMG\]"
  're.Pattern="\[IMG\](http|https|ftp):\/\/(.[^\[]*)\[\/IMG\]"
  strer=re.Replace(strer,"<IMG SRC='$1' align=center border=0 onload=""javascript:if(this.width>screen.width-250)this.width=screen.width-250"">")
  re.Pattern="(\[URL\])(.[^\[]*)(\[\/URL\])"
  strer=re.Replace(strer,"<A HREF='$2' TARGET=_blank>$2</A>")
  re.Pattern="(\[URL=(.[^\[]*)\])(.[^\[]*)(\[\/URL\])"
  strer=re.Replace(strer,"<A HREF='$2' TARGET=_blank>$3</A>")
  re.Pattern="(\[EMAIL\])(\S+\@.[^\[]*)(\[\/EMAIL\])"
  strer=re.Replace(strer,"<img align=absmiddle src=images/small/email.gif><A HREF=""mailto:$2"">$2</A>")
  re.Pattern="(\[EMAIL=(\S+\@.[^\[]*)\])(.[^\[]*)(\[\/EMAIL\])"
  strer=re.Replace(strer,"<img align=absmiddle src=images/small/email.gif><A HREF=""mailto:$2"" TARGET=_blank>$3</A>")
  re.Pattern="\[face=(.[^\[]*)\](.[^\[]*)\[\/face\]"
  strer=re.Replace(strer,"<font face=$1>$2</font>")
  re.Pattern="\[size=([1-4])\](.[^\[]*)\[\/size\]"
  strer=re.Replace(strer,"<font size=$1>$2</font>")
  re.Pattern="\[color=(.[^\[]*)\](.[^\[]*)\[\/color\]"
  strer=re.Replace(strer,"<font color=$1>$2</font>")
  re.Pattern="\[align=(.[^\[]*)\](.[^\[]*)\[\/align\]"
  strer=re.Replace(strer,"<div align=$1>$2</div>")
  re.Pattern="\[align=(.[^\[]*)\](.*)\[\/align\]"
  strer=re.Replace(strer,"<div align=$1>$2</div>")
  re.Pattern="\[center\](.[^\[]*)\[\/center\]"
  strer=re.Replace(strer,"<div align=center>$1</div>")
  re.Pattern="\[fly\](.[^\[]*)\[\/fly\]"
  strer=re.Replace(strer,"<marquee width=90% behavior=alternate scrollamount=3>$1</marquee>")
  re.Pattern="\[move\](.[^\[]*)\[\/move\]"
  strer=re.Replace(strer,"<MARQUEE scrollamount=3>$1</marquee>")  
  re.Pattern="\[GLOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/GLOW]"
  strer=re.Replace(strer,"<table width=$1 style=""filter:glow(color=$2, strength=$3)"">$4</table>")
  re.Pattern="\[SHADOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\](.[^\[]*)\[\/SHADOW]"
  strer=re.Replace(strer,"<table width=$1 style=""filter:shadow(color=$2, strength=$3)"">$4</table>")
  re.Pattern="\[i\](.[^\[]*)\[\/i\]"
  strer=re.Replace(strer,"<i>$1</i>")
  re.Pattern="\[u\](.[^\[]*)(\[\/u\])"
  strer=re.Replace(strer,"<u>$1</u>")
  re.Pattern="\[b\](.[^\[]*)(\[\/b\])"
  strer=re.Replace(strer,"<b>$1</b>")

  set re=Nothing
  
  dim emci
  for emci=1 to 16
    strer=Replace(strer,"[em"&emci&"]","<image src='images/icon/em"&emci&".gif' border=0>&nbsp;")
  next
  for emci=1 to 28
    strer=Replace(strer,"[emb"&emci&"]","<image src='images/icon/emb"&emci&".gif' border=0>&nbsp;")
  next
  strer=replace(strer,"[br]","<br>")
  strer=replace(strer,"[BR]","<br>")
  strer=replace(strer,vbCrLf,"<br>")
  code_jk2=strer
end function

function reUBBCode(strer)
    strer = replace(strer, ">", "&gt;")
    strer = replace(strer, "<", "&lt;")
    strer = Replace(strer, CHR(32), "<I></I>&nbsp;")
    strer = Replace(strer, CHR(9), "&nbsp;")
    strer = Replace(strer, CHR(34), "&quot;")
    strer = Replace(strer, CHR(39), "&#39;")
    strer = Replace(strer, CHR(13), "")
    strer = Replace(strer, CHR(10) & CHR(10), " ")
    strer = Replace(strer, CHR(10), " ")
dim re
Set re=new RegExp
re.IgnoreCase=true
re.Global=True
strer=replace(strer,"&nbsp;"," ")
re.Pattern="(\[QUOTE\])(.[^\[]*)(\[\/QUOTE\])"
strer=re.Replace(strer,"")
  re.Pattern="(\[replyview\])(.*)(\[\/replyview\])"
strer=re.Replace(strer,"★★ 回复贴内容不能引用 ★★")	
  re.Pattern="(\[money=*([0-9]*)\])(.*)(\[\/money\])"
strer=re.Replace(strer,"★★ 金钱贴内容不能引用 ★★")
  re.Pattern="(\[Post=*([0-9]*)\])(.*)(\[\/Post\])"
strer=re.Replace(strer,"★★ 贴子数内容不能引用 ★★")
  re.Pattern="(\[point=*([0-9]*)\])(.*)(\[\/point\])"
strer=re.Replace(strer,"★★ 积分贴内容不能引用 ★★")
  re.Pattern="(\[usemoney=*([0-9]*)\])(.*)(\[\/usemoney\])"
strer=re.Replace(strer,"★★ 购买贴内容不能引用 ★★")
  re.Pattern="(\[Power=*([0-9]*)\])(.*)(\[\/Power\])"
strer=re.Replace(strer,"★★ 权限贴内容不能引用 ★★")
  re.Pattern="(\[sex=([0-1])\])(.*)(\[\/sex\])"
strer=re.Replace(strer,"★★ 性别贴内容不能引用 ★★")
  re.Pattern="(\[name=(.[^\[]*)\])(.*)(\[\/name\])"
strer=re.Replace(strer,"★★ 指定贴内容不能引用 ★★")
strer=replace(strer,"<I></I>","")
set re=Nothing
reUBBCode=strer
end function

function zdtusers(zdtname)
  dim zdtUserArr,iiii
    zdtname=replace(zdtname,"，",",")
	zdtusers = "no"
	If ""&zdtname&"" = "" Then
		Exit function
	End If
	If InStr(zdtname, ",") Then
		zdtUserArr	= Split(zdtname, ",")
		For iiii = 0 To UBound(zdtUserArr)
			If zdtUserArr(iiii) = login_username Then
				zdtusers = "yes"
				Exit function
			End If
		Next
	Else
		If zdtname = login_username Then
			zdtusers = "yes"
		End If
	End If
end function
%>