<%
sub frm_keyes(kt)
  response.write "<input type=text name=keyes value='"&kt&"' size=20 maxlength=20> 多个请用“,”隔开，如：计算所,科学,术语"
end sub

sub frm_ubb(fn,tn,uw)
%><script language=javascript src='style/ubb_help.js'></script>
<script language=javascript>
<!--
function AddText(NewCode)
{
  if(document.all)
  { insertAtCaret(document.<%response.write fn&"."&tn%>, NewCode); setfocus(); } 
  else
  { document.<%response.write fn&"."&tn%>.value += NewCode; setfocus(); }
}

function setfocus() { document.<%response.write fn&"."&tn%>.focus(); }
-->
</script><table border=0 cellspacing=0 cellpadding=0><tr>
<td height=30><%response.write uw%><select onchange="javascript:jk_ubb_font(this.options[this.selectedIndex].value);" size=1 name=font>
<option value=宋体>宋体</option>
<option value=黑体>黑体</option>
<option value=arial>arial</option>
<option value="Book antiqua">Book antiqua</option>
<option value="Century Gothic">Century Gothic</option>
<option value="Courier New" selected>Courier New</option>
<option value=Georgia>Georgia</option>
<option value=Impact>Impact</option>
<option value=Tahoma>Tahoma</option>
<option value="Times New Roman">Times New Roman</option>
<option value=Verdana>Verdana</option>
</select></td>
<td>&nbsp;&nbsp;<select onchange="javascript:jk_ubb_size(this.options[this.selectedIndex].value);" size=1 name=size>
<option value=-2>-2</option>
<option value=-1>-1</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3 selected>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
</select></td>
<td>&nbsp;&nbsp;<select onchange="javascript:jk_ubb_color(this.options[this.selectedIndex].value);" size=1 name=color>
<option style="COLOR: white" value=White selected>White</option>
<option style="COLOR: black" value=Black>Black</option>
<option style="COLOR: red" value=Red>Red</option>
<option style="COLOR: yellow" value=Yellow>Yellow</option>
<option style="COLOR: pink" value=Pink>Pink</option>
<option style="COLOR: green" value=Green>Green</option>
<option style="COLOR: orange" value=Orange>Orange</option>
<option style="COLOR: purple" value=Purple>Purple</option>
<option style="COLOR: blue" value=Blue>Blue</option>
<option style="COLOR: beige" value=Beige>Beige</option>
<option style="COLOR: brown" value=Brown>Brown</option>
<option style="COLOR: teal" value=Teal>Teal</option>
<option style="COLOR: navy" value=Navy>Navy</option>
<option style="COLOR: maroon" value=Maroon>Maroon</option>
<option style="COLOR: limegreen" value=LimeGreen>LimeGreen</option>
</select></td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=0>
<tr><td height=30><%response.write uw%><a href="javascript:jk_ubb_bold();"><img alt='插入粗体文本' src='images/ubb/bold.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_italicize();"><img alt='插入斜体文本' src='images/ubb/italicize.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_underline();"><img alt='插入下划线' src='images/ubb/underline.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_center();"><img alt='居中对齐' src='images/ubb/center.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_link();"><img alt='插入超级链接' src='images/ubb/url.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_email();"><img alt='插入邮件地址' src='images/ubb/email.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_image();"><img alt='插入图像' src='images/ubb/image.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_flash();"><img alt='插入 flash' src='images/ubb/flash.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_code();"><img alt='插入代码' src='images/ubb/code.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_quote();"><img alt='插入引用' src='images/ubb/quote.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_rm();"><img alt='插入Realplay视频文件' src='images/ubb/rm.gif' border=0></a>&nbsp;
<a href="javascript:jk_ubb_mp();"><img alt='插入Media Player播放文件' src='images/ubb/mp.gif' border=0></a></td></tr></table><%
end sub

sub frm_ubb_type(trc)
%>UBB辅助：<br>
<input onclick="javascript:jk_ubb_mode('2');" type=radio value=2 name=mode <%response.write trc%>> 提示插入<br>
<input onclick="javascript:jk_ubb_mode('0');" type=radio checked value=0 name=mode <%response.write trc%>> 直接插入<br>
<input onclick="javascript:jk_ubb_mode('1');" type=radio value=1 name=mode <%response.write trc%>> 帮助信息<%
end sub

sub frm_word_size(fn,tn,ws,wv)
%>
<a href="###" onclick="javascript:checklength(document.<%response.write fn%>);">[字数检查]</a><br>
<font color=red>发布下面类型贴将<br>内容放在代码之间。</font><br>
<a href="javascript:jk_ubb_reply();">[<font color=blue>回复贴</font>]</a>&nbsp;&nbsp;
<a href="javascript:jk_ubb_money();">[<font color=blue>金钱贴</font>]</a>
<br>
<a href="javascript:jk_ubb_point();">[<font color=blue>积分贴</font>]</a>&nbsp;&nbsp;
<a href="javascript:jk_ubb_usemoney();">[<font color=blue>买卖贴</font>]</a>
<br>
<script language=JavaScript>
<!--
function checklength(theform)
{
  var postmaxchars=<%response.write ws%>;
  var postchars=theform.<%response.write tn%>.value.length;
  var post_1="您输入的<%response.write wv%>已经超过系统允许的最大值！\n请删减部分<%response.write wv%>！";
  var message="";
  if (postmaxchars != 0) { message = "系统允许："+postmaxchars+"KB（约"+postmaxchars*1024+"个字符）"; }
  if (postmaxchars*1024>=postchars)
  {
    var postc=postmaxchars*1024-postchars;
    post_1="您还可以输入："+postc+"个字符（约"+Math.round(postc/1024)+"KB）";
  }
  alert("您输入的<%response.write wv%>的统计信息如下：\n\n当前长度："+postchars+"个字符（约"+Math.round(postchars/1024)+"KB）\n"+message+"\n"+post_1);
}
-->
</script><%
end sub

sub frm_topic(fn,tn)
%><select onchange="document.<%response.write fn&"."&tn%>.focus(); document.<%response.write fn&"."&tn%>.value = this.options[this.selectedIndex].value + document.<%response.write fn&"."&tn%>.value;"> 
<option value='' selected>选择</option>
<option value=[原创]>[原创]</option>
<option value=[转帖]>[转帖]</option>
<option value=[Hack]>[Hack]</option>
<option value=[砖头]>[砖头]</option>
<option value=[乱弹]>[乱弹]</option>
<option value=[灌水]>[灌水]</option>
<option value=[讨论]>[讨论]</option>
<option value=[警告]>[警告]</option> 
<option value=[求助]>[求助]</option>
<option value=[推荐]>[推荐]</option> 
<option value=[公告]>[公告]</option>
<option value=[成人]>[成人]</option> 
<option value=[注意]>[注意]</option>
<option value=[贴图]>[贴图]</option> 
<option value=[建议]>[建议]</option>
<option value=[下载]>[下载]</option>
<option value=[分享]>[分享]</option>
</select><%
end sub
%>