<!-- #include file="jk_frm.asp" -->
<!-- #include file="jk_upload.asp" -->
<!-- #include file="jk_val_code.asp" -->
<%

dim word_size
word_size=dim_num(4)

function form_icon()
  dim temp1
  temp1=trim(request.form("icon"))
  if not isnumeric(temp1) then
    temp1="0"
  end if
  form_icon=temp1
end function

sub forum_readonly()
  if int(forumpro)<>1 then
    exit sub
  end if
  if not forum_power_true(forumpower) then
    call web_error("readonly")
  end if
end sub

sub forum_write_frm_check()
%>
<script language=javascript>
<!--
function write_frm_check(topic_true)
{
  //return true;
  if (topic_true==1)
  {
    if(write_frm.topic.value=="" || write_frm.topic.value.length>50)
    {
     alert("你还没完全留下所需信息！\r\n\n贴子的 主题 是必须要的；\n且长度不能超过50个字符。");
     write_frm.topic.focus();
     return false;
    }
  }
  if(write_frm.jk_word.value=="" || write_frm.jk_word.value.length><%response.write word_size*1024%>)
  {
   alert("你还没完全留下所需信息！\r\n\n贴子的 内容 是必须要的；\n且大小不能超过<%response.write word_size%>KB。");
   write_frm.jk_word.focus();
   return false;
  }
}
-->
</script>
<%
end sub
%>