strContent=funkillWord(strContent)
UbbCode=strContent
if (instr(strContent,"[")=0 or instr(strContent,"]")=0) and instr(strContent,"http://")=0 then
exit function
end if
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
if instr(1,strContent,"[IMG]",1)>0 then
re.Pattern="(\[IMG\])(.[^\[]*)(\[\/IMG\])"
if imgUbb then
strContent=re.Replace(strContent,"<a href=""$2"" target=_blank><IMG SRC=""$2"" border=0 alt=按此在新窗口浏览图片 onload=""javascript:if(this.width>500)this.width=500""></a> ")
else
strContent=re.Replace(strContent,"<img align=absmiddle src=images/url.gif><a href=""$2"" target=_blank>$2</a> ")
end if
end if