<%

oabusyname=request.cookies("oabusyname")
oabusyuserid=request.cookies("oabusyuserid")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='../default.asp';")
	response.write("</script>")
	response.end
end if
%> 

<!--#include file="top.asp"-->


<%session("new")="new"%>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center"style="BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid" bgcolor="#64B3D9" >
  <tr>
    <td> <SCRIPT language=JavaScript>
function FrontPage_Form1_Validator(theForm)
{
    if (theForm.title.value == "")
  {
    alert("发言要有中心思想");
    theForm.title.focus();
    return (false);
  }

  var checkOK = "0123456789abcdefghijklmnopqrstuvwxyz@._";
  var checkStr = theForm.email.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ".")
      allNum += ch;
  }
   }
  

  return (true);
}
</script>
      <form method="POST" action="addnews.asp" name="form1"  onsubmit="return FrontPage_Form1_Validator(this)">
        <br>
        <table border="0" width="98%" cellspacing="1" cellpadding="3" bordercolorlight="#FFE8E8" bordercolordark="#FFFFFF" align="center" bgcolor="#205E7B">
        <tr> 
          <td colspan="2" height="25"><b><font color="#FFFFFF">　　发表新帖子 </font></b> 
          </td>
        </tr>
        <tr> 
          <td width="16%" align="center" bgcolor="#92C8E2">发&nbsp; 表&nbsp; 人：</td>
          <td bgcolor="#92C8E2">  <%=oabusyname%>

            <input type="hidden" name="name" size="20" class="" value='<%=oabusyname%>' style="border:1 solid #000000">
              <font color="#FF0000">*</font> </td>
        </tr>
        <tr> 
          <td width="16%" align="center" bgcolor="#DAEDF5">帖 子 主 题：</td>
          <td bgcolor="#DAEDF5"> 
            <input type="text" name="title" size="50" maxlength="40" >
            （标题限制 <b>20</b> 个汉字以内）<font color="#FF0000">*</font></td>
        </tr>
        <tr> 
          <td width="16%" align="center" bgcolor="#92C8E2">选 择 表 情：</td>
          <td bgcolor="#92C8E2"> 
            <% for i=0 to 17 %>
            <input type="radio" value="<%=(i)%>" name="pic" <%if i=0 then response.write "checked"%>>
            <img src="<%="title/face" &(i) & ".gif"%>" >&nbsp;&nbsp; 
            <%if i>0 and ((i+1) mod 9=0) then response.write "<br>"%>
            <%next%>
          </td>
        </tr>
        <tr> 
          <td width="16%" align="center" bgcolor="#DAEDF5"> 
            <select name="face" size=1 onChange="document.images['idface'].src=options[selectedIndex].value;" >
              <option selected value="images/01.gif">用户头像-01 
              <option selected value="images/02.gif">用户头像-02 
              <option selected value="images/03.gif">用户头像-03 
              <option selected value="images/04.gif">用户头像-04 
              <option selected value="images/05.gif">用户头像-05 
              <option selected value="images/06.gif">用户头像-06 
              <option selected value="images/07.gif">用户头像-07 
              <option selected value="images/08.gif">用户头像-08 
              <option selected value="images/09.gif">用户头像-09 
              <option selected value="images/10.gif">用户头像-10 
              <option selected value="images/11.gif">用户头像-11 
              <option selected value="images/12.gif">用户头像-12 
              <option selected value="images/13.gif">用户头像-13 
              <option selected value="images/14.gif">用户头像-14 
              <option selected value="images/15.gif">用户头像-15 
              <option selected value="images/16.gif">用户头像-16 
              <option selected value="images/17.gif">用户头像-17 
              <option selected value="images/18.gif">用户头像-18 
              <option selected value="images/19.gif">用户头像-19 
              <option selected value="images/20.gif">用户头像-20 
            </select>
            <img id=idface src="images/01.gif" alt=个人形象代表> </td>
            <td valign="top" bgcolor="#DAEDF5">
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td> 
                    
<textarea name="nei" style="display:none"></textarea>
<IFRAME ID="eWebEditor1" SRC="../editor/ewebeditor.htm?id=nei&style=blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>


                  </td>
                  <td> </td>
                </tr>
              </table>
                </td>
        </tr>
        <tr> 
          <td colspan="2" > 
            <p align="center"> 
              <input type="submit" value=" 提交 " name="B1" >
              &nbsp;&nbsp;&nbsp; 
              <input type="reset" value=" 清除 " name="B2" >
          </td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center"bgcolor="#205E7B">
  <tr>
    <td align="center" height="30"class=td1> 
      <%=footer%>
    </td>
  </tr>
</table>

 
        </body>
</html>
