regist.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:25k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import="cn.js.fan.util.*"%>
  3. <%@ page import="cn.js.fan.web.Global"%>
  4. <%@ page import="com.redmoon.forum.person.UserSet"%>
  5. <%
  6. String skincode = UserSet.getSkin(request);
  7. if (skincode.equals(""))
  8. skincode = UserSet.defaultSkin;
  9. SkinMgr skm = new SkinMgr();
  10. Skin skin = skm.getSkin(skincode);
  11. if (skin==null)
  12. skin = skm.getSkin(UserSet.defaultSkin);
  13. String skinPath = skin.getPath();
  14. %>
  15. <html>
  16. <head>
  17. <title><%=Global.AppName%> - 注册</title>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19. <link href="forum/<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
  20. <script>
  21. function New(para_URL){var URL=new String(para_URL);window.open(URL,'','resizable,scrollbars')}
  22. function CheckRegName(){
  23. var Name=document.frmAnnounce.RegName.value;
  24. window.open("checkregname.jsp?RegName="+Name,"","width=200,height=20");
  25. }
  26. function showTableDetail() {
  27. if (tableDetail.style.display=="none")
  28. tableDetail.style.display = "";
  29. else
  30. tableDetail.style.display = "none";
  31. }
  32. </script>
  33. <script src="forum/inc/ubbcode.jsp"></script>
  34. </head>
  35. <%@ include file="forum/inc/header.jsp"%>
  36. <body bgcolor="#FFFFFF" text="#000000">
  37. <table width=98% align=center cellspacing=0 cellpadding=0 border=0>
  38.  <Form method="POST" action="regist_do.jsp"  name="frmAnnounce" onSubmit="return VerifyInput()"><tr>
  39.       <td bgcolor=#D3D3D3> <table width=100% border=0 cellpadding=0 cellspacing=1>
  40.           <tr> 
  41.             <td align=center bgcolor="#FFFFFF"> <table border=0 cellpadding=0 cellspacing=0 width=100%>
  42.                 <tr> 
  43.                   <td width=31 height=20 background="forum/<%=skinPath%>/images/bg1.gif">&nbsp;</td>
  44.                   <td width=131 background="forum/<%=skinPath%>/images/bg1.gif" class="td_title"><b> 会员代号及密码</b></td>
  45.                   <td height="26" background="forum/<%=skinPath%>/images/bg1.gif" class="td_title">注意:此栏必须填写</td>
  46.                 </tr>
  47.               </table>
  48.               <table width=100% border=0 cellpadding=0 cellspacing=1 bgcolor="#CCCCCC">
  49.                 <tr>
  50.                   <td width="128" height="28" align=left bgcolor="#FFFFFF">&nbsp;注册用户</td> 
  51.                   <td align=left bgcolor="#FFFFFF">
  52.                       &nbsp;
  53.                       <input name=RegName type=text size=20 maxlength="50">
  54.                       <font color="#FF0000"> * </font> 
  55.                       <input name=Button type=button onClick="javascript:CheckRegName()" value='检测用户名'>
  56.                   </td>
  57.                 </tr>
  58.                 <tr>
  59.                   <td height="28" align=left bgcolor="#FFFFFF">&nbsp;登陆密码</td> 
  60.                   <td align=left valign="top" bgcolor="#FFFFFF"><img src=/images/c.gif width=1 height=5><br>
  61.                       &nbsp; 
  62.                       <input name=Password type=password size=20 maxlength="20">
  63.                       <font color="#FF0000">*</font> 确认密码 
  64.                       <input name=Password2 type=password size=20 maxlength="20">
  65.                   <font color="#FF0000"> *</font></td>
  66.                 </tr>
  67.                 <tr>
  68.                   <td height="28" align=left bgcolor="#FFFFFF">&nbsp;密码问题</td> 
  69.                   <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp; 
  70.                     <input name=Question type=text size=20 maxlength=50>
  71.                       <font color="#FF0000">* </font>密码答案 
  72.                       <input name=Answer type=text size=20 maxlength=50>
  73.                   <font color="#FF0000">*</font></td>
  74.                 </tr>
  75.               <tr>
  76.                 <td height="28" align=left bgcolor="#FFFFFF">&nbsp;性别</td>
  77.                   <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp;
  78.                     <input type=radio name=Gender value=M checked>
  79.                     男
  80.                     <input type=radio name=Gender value=F>
  81.                   女                  </td>
  82.               </tr>           <tr>
  83.                   <td height="28" align=left bgcolor="#FFFFFF">&nbsp;Email</td>
  84.                   <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp;
  85.                     <input name=Email type=text size=20 maxlength="50">
  86.                   <font color="#FF0000">*</font></td>
  87.                 </tr>
  88.               </table>
  89.               <table width=100% border=0 cellpadding=0 cellspacing=0>
  90.                 <tr> 
  91.                   <td width=31 height=23 background="forum/<%=skinPath%>/images/bg1.gif">&nbsp;</td>
  92.                   <td height="23" background="forum/<%=skinPath%>/images/bg1.gif" class="td_title">+&nbsp;<a href="javascript:showTableDetail()">点击此处</a>&nbsp;&nbsp;填写详细资料
  93.                     <input name="isSecret" value="true" type="checkbox">
  94.                   将以下带*号信息保密</td>
  95.                 </tr>
  96.               </table>
  97.   <table id="tableDetail" name="tableDetail" width=100% border=0 cellpadding=0 cellspacing=1 style="display:none" bgcolor="#CCCCCC">
  98.                 <tr> 
  99.                   <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;真实姓名</td>
  100.                   <td width="188" height="25"  bgcolor="#FFFFFF" valign="middle"> &nbsp;
  101.                   <input name=RealName type=text size=12 maxlength=20>                  </td>
  102.                   <td width=103 height="25"  bgcolor="#FFFFFF" align=left> &nbsp;行业</td>
  103.                   <td height="25"  bgcolor="#FFFFFF" align=left>&nbsp;
  104.                     <select name=Career size=1>
  105.                       <option value="0" selected>请选...</option>
  106.                       <option value="政府机关/干部">政府机关/干部</option>
  107.                       <option value="学生">学生</option>
  108.                       <option value="邮电通信">邮电通信</option>
  109.                       <option value="计算机">计算机</option>
  110.                       <option value="网络">网络</option>
  111.                       <option value="商业/贸易">商业/贸易</option>
  112.                       <option value="银行/金融/证券/保险/投资">银行/金融/证券/保险/投资</option>
  113.                       <option value="税务">税务</option>
  114.                       <option value="咨询">咨询</option>
  115.                       <option value="社会服务">社会服务</option>
  116.                       <option value="旅游/饭店">旅游/饭店</option>
  117.                       <option value="健康/医疗服务">健康/医疗服务</option>
  118.                       <option value="房地产">房地产</option>
  119.                       <option value="交通运输">交通运输</option>
  120.                       <option value="法律/司法">法律/司法</option>
  121.                       <option value="文化/娱乐/体育">文化/娱乐/体育</option>
  122.                       <option value="媒介/广告">媒介/广告</option>
  123.                       <option value="科研/教育">科研/教育</option>
  124.                       <option value="农业/渔业/林业/畜牧业">农业/渔业/林业/畜牧业</option>
  125.                       <option value="矿业/制造业">矿业/制造业</option>
  126.                       <option value="自由职业">自由职业</option>
  127.                       <option value="其他">其他</option>
  128.                     </select></td>
  129.                 </tr>
  130.                 <tr> 
  131.                   <td width=128 height="28" align=left bgcolor="#FFFFFF"> &nbsp;手机号码</td>
  132.                   <td height="25" bgcolor="#FFFFFF"><span class="l15">
  133.                     &nbsp;
  134.                     <input name=Mobile type=text size=16 maxlength="16">
  135.                   </span></td>
  136.                   <td width=103 height="25" bgcolor="#FFFFFF"> &nbsp;职位</td>
  137.                   <td height="25" bgcolor="#FFFFFF" class=l15>&nbsp; 
  138.                     <select name=Job size=1>
  139.                       <option value="0" selected>请选...</option>
  140.                       <option value="普通职员">普通职员</option>
  141.                       <option value="工程师">工程师</option>
  142.                       <option value="总经理、董事长,CxO">总经理、董事长,CxO</option>
  143.                       <option value="市场部经理">市场部经理</option>
  144.                       <option value="销售部经理">销售部经理</option>
  145.                       <option value="行政主管">行政主管</option>
  146.                       <option value="人事主管">人事主管</option>
  147.                       <option value="财务主管">财务主管</option>
  148.                       <option value="技术主管">技术主管</option>
  149.                       <option value="退休">退休</option>
  150.                       <option value="其他" >其他</option>
  151.                   </select> </td>
  152.                 </tr>
  153.                 <tr> 
  154.                   <td width=128 height="28" align=left bgcolor="#FFFFFF" >&nbsp;出生日期</td>
  155.                   <td height="28" bgcolor="#FFFFFF">&nbsp; 
  156.                     <select name="BirthYear" class="input1">
  157.                       <script language="JavaScript">
  158.   <!--
  159. tmpDate = new Date();
  160. year= tmpDate.getYear();
  161. month = tmpDate.getMonth()+1;
  162. date = tmpDate.getDate();
  163. for (i=-50; i<=100; i++)
  164. document.write("<option value="+(year+i)+">"+(year+i)+"</option>")
  165.   //-->
  166.   </script>
  167.                     </select>年<select name="BirthMonth" class="input1">
  168.                       <option value="1" selected>1</option>
  169.                       <option value="2">2</option>
  170.                       <option value="3">3</option>
  171.                       <option value="4">4</option>
  172.                       <option value="5">5</option>
  173.                       <option value="6">6</option>
  174.                       <option value="7">7</option>
  175.                       <option value="8">8</option>
  176.                       <option value="9">9</option>
  177.                       <option value="10">10</option>
  178.                       <option value="11">11</option>
  179.                       <option value="12">12</option>
  180.                     </select>月<select name="BirthDay" class="input1">
  181.                       <option value="1" selected>1</option>
  182.                       <option value="2">2</option>
  183.                       <option value="3">3</option>
  184.                       <option value="4">4</option>
  185.                       <option value="5">5</option>
  186.                       <option value="6">6</option>
  187.                       <option value="7">7</option>
  188.                       <option value="8">8</option>
  189.                       <option value="9">9</option>
  190.                       <option value="10">10</option>
  191.                       <option value="11">11</option>
  192.                       <option value="12">12</option>
  193.                       <option value="13">13</option>
  194.                       <option value="14">14</option>
  195.                       <option value="15">15</option>
  196.                       <option value="16">16</option>
  197.                       <option value="17">17</option>
  198.                       <option value="18">18</option>
  199.                       <option value="19">19</option>
  200.                       <option value="20">20</option>
  201.                       <option value="21">21</option>
  202.                       <option value="22">22</option>
  203.                       <option value="23">23</option>
  204.                       <option value="24">24</option>
  205.                       <option value="25">25</option>
  206.                       <option value="26">26</option>
  207.                       <option value="27">27</option>
  208.                       <option value="28">28</option>
  209.                       <option value="29">29</option>
  210.                       <option value="30">30</option>
  211.                       <option value="31">31</option>
  212.                     </select>日
  213.  <script language="JavaScript">
  214.   <!--
  215. tmpDate = new Date();
  216. year= ""+tmpDate.getYear();
  217. month = tmpDate.getMonth()+1;
  218. //month = ""+month;
  219. //if (month.length==1)
  220. // month = "0"+month;
  221. //date = ""+tmpDate.getDate();
  222. //if (date.length==1)
  223. // date = "0"+date;
  224.   
  225.   frmAnnounce.BirthYear.value = year;
  226.   frmAnnounce.BirthMonth.value = month;
  227.   frmAnnounce.BirthDay.value = date;
  228.   //-->
  229.   </script>   </td>
  230.                   <td width=103 height="28" bgcolor="#FFFFFF" align="left"> &nbsp;婚姻状况</td>
  231.                   <td height="28" bgcolor="#FFFFFF" class=l15>                   
  232.    <span class="l15">
  233.                     &nbsp;
  234.                     <select name=Marriage size=1>
  235.                       <option value="0" selected>未婚</option>
  236.                       <option value="2">不详</option>
  237.                       <option value="1">已婚</option>
  238.                   </select>
  239.    </span></td>
  240.                 </tr>
  241.                 <tr> 
  242.                   <td width=128 height="28" align=left bgcolor="#FFFFFF"> &nbsp;电话</td>
  243.                   <td height="19" bgcolor="#FFFFFF" valign="middle">&nbsp;
  244.                   <input name=Phone type=text size=16 maxlength="20"> </td><td width=103 height="19" bgcolor="#FFFFFF"> &nbsp;QQ:</td>
  245.                   <td height="19" bgcolor="#FFFFFF" class=l15>&nbsp; 
  246.                   <input name=OICQ type=text size=16 maxlength="15"></td>
  247.                 </tr>
  248.                <tr> 
  249.                   <td width=128 height="28" align=left bgcolor="#FFFFFF"><img src=/images/c.gif width=1 height=5>
  250.                     省份</td>
  251.                   <td valign="middle" height="27"  bgcolor="#FFFFFF" > &nbsp;
  252.                     <select name=State size=1>
  253.                       <option value="0" selected>请选择…</option>
  254.                       <option value="安徽">安徽</option>
  255.                       <option value="北京">北京</option>
  256.                       <option value="重庆">重庆</option>
  257.                       <option value="福建">福建</option>
  258.                       <option value="甘肃">甘肃</option>
  259.                       <option value="广东">广东</option>
  260.                       <option value="广西">广西</option>
  261.                       <option value="贵州">贵州</option>
  262.                       <option value="海南">海南</option>
  263.                       <option value="河北">河北</option>
  264.                       <option value="黑龙江">黑龙江</option>
  265.                       <option value="河南">河南</option>
  266.                       <option value="湖北">湖北</option>
  267.                       <option value="湖南">湖南</option>
  268.                       <option value="内蒙古">内蒙古</option>
  269.                       <option value="江苏">江苏</option>
  270.                       <option value="江西">江西</option>
  271.                       <option value="吉林">吉林</option>
  272.                       <option value="辽宁">辽宁</option>
  273.                       <option value="宁夏">宁夏</option>
  274.                       <option value="青海">青海</option>
  275.                       <option value="山西">山西</option>
  276.                       <option value="陕西">陕西</option>
  277.                       <option value="山东">山东</option>
  278.                       <option value="上海">上海</option>
  279.                       <option value="四川">四川</option>
  280.                       <option value="天津">天津</option>
  281.                       <option value="西藏">西藏</option>
  282.                       <option value="新疆">新疆</option>
  283.                       <option value="云南">云南</option>
  284.                       <option value="浙江">浙江</option>
  285.                       <option value="其他">其他</option>
  286.                   </select> </td>
  287.                   <td colspan="2" rowspan="5" valign="middle" bgcolor="#FFFFFF" align="left"> <table width="87%" border="0" cellspacing="0" cellpadding="0" align="left">
  288.                       <tr> 
  289.                         <td height="56"  bgcolor="#FFFFFF">&nbsp;&nbsp;                          <img src="forum/images/face/face.gif" name="tus">&nbsp; 
  290.                           <script>function showimage(){document.images.tus.src="forum/images/face/face"+document.frmAnnounce.RealPic.options[document.frmAnnounce.RealPic.selectedIndex].value+".gif";}</script>
  291.                           <select name=RealPic size=1 onChange="showimage()">
  292.                             <option value="">默认头像</option>
  293.                             <%for (int i=1; i<=199; i++) {%>
  294.                             <option value="<%=i%>"><%=i%></option>
  295.                             <% } %>
  296.                           </select></td>
  297.                       </tr>
  298.                       <tr>
  299.                         <td height="56"  bgcolor="#FFFFFF">&nbsp;<a href="JavaScript:New('images/index.htm')">查看所有的头像列表</a></td>
  300.                       </tr>
  301.                   </table></td>
  302.                 </tr>
  303.                 <tr> 
  304.                   <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;城市</td>
  305.                   <td height="25" valign="middle" bgcolor="#FFFFFF"> &nbsp;
  306.                   <input name=City type=text size=10 maxlength="50">                  </td>
  307.                 </tr>
  308.                 <tr> 
  309.                   <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;地址</td>
  310.                   <td height="25" valign="middle" bgcolor="#FFFFFF"> &nbsp;
  311.                   <input name=Address type=text size=25 maxlength="100">                  </td>
  312.                 </tr>
  313.                 <tr> 
  314.                   <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;邮政编码</td>
  315.                   <td height="19" valign="middle" bgcolor="#FFFFFF"> 
  316.                   &nbsp;
  317.                   <input name=PostCode type=text size=10 maxlength="20">                  </td>
  318.                 </tr>
  319.                 <tr> 
  320.                   <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;身份证号码</td>
  321.                   <td height="29" bgcolor="#FFFFFF" valign="middle"> 
  322.                   &nbsp;
  323.                   <input name=IDCard type=text size=21 maxlength="50">                  </td>
  324.                 </tr>
  325.                 <tr>
  326.                   <td align=left height="28"  bgcolor="#FFFFFF">&nbsp;兴趣爱好</td>
  327.                   <td height="29" colspan="3" valign="middle" bgcolor="#FFFFFF">&nbsp;
  328.                   <input name=Hobbies type=text size=30></td></tr>
  329.                 <tr>
  330.                   <td align=left height="37"  bgcolor="#FFFFFF">&nbsp;个人主页</td>
  331.                   <td colspan="3" valign="middle"  bgcolor="#FFFFFF">&nbsp;
  332.                       <input name=home type=text value="" size=30 maxlength="50"></td>
  333.                 </tr>
  334.                 <tr>
  335.                   <td align=left height="37"  bgcolor="#FFFFFF">&nbsp;MSN</td>
  336.                   <td colspan="3" valign="middle"  bgcolor="#FFFFFF">&nbsp;
  337.                       <input name=msn type=text value="" size=30 maxlength="50"></td>
  338.                 </tr>
  339.                 <tr>
  340.                   <td align=left height="28"  bgcolor="#FFFFFF">&nbsp;时区</td>
  341.                   <td height="29" colspan="3" valign="middle" bgcolor="#FFFFFF">
  342. &nbsp;
  343. <select name="timeZone">
  344.           <option value="GMT-11:00">(GMT-11.00)中途岛,萨摩亚群岛</option>
  345.           <option value="GMT-10:00">(GMT-10.00)夏威夷</option>
  346.           <option value="GMT-09:00">(GMT-9.00)阿拉斯加</option>
  347.           <option value="GMT-08:00">(GMT-8.00)太平洋时间(美国和加拿大);蒂华纳</option>
  348.           <option value="GMT-07:00">(GMT-7.00)山地时间(美国和加拿大)</option>
  349.           <option value="GMT-06:00">(GMT-6.00)中美洲</option>
  350.           <option value="GMT-05:00">(GMT-5.00)波哥大,利马,基多</option>
  351.           <option value="GMT-04:00">(GMT-4.00)加拉加斯,拉巴斯</option>
  352.           <option value="GMT-03:00">(GMT-3.00)格陵兰</option>
  353.           <option value="GMT-02:00">(GMT-2.00)中大西洋</option>
  354.           <option value="GMT-01:00">(GMT-1.00)佛得角群岛</option>
  355.           <option value="GMT">(GMT)格林威治标准时间,都柏林,爱丁堡,伦敦,里斯本</option>
  356.           <option value="GMT+01:00">(GMT+1.00)阿姆斯特丹,柏林,伯尔尼,罗马,斯德哥尔摩,维也纳</option>
  357.           <option value="GMT+02:00">(GMT+2.00)雅典,贝鲁特,伊斯坦布尔,明斯克</option>
  358.           <option value="GMT+03:00">(GMT+3.00)莫斯科,圣彼得堡,伏尔加格勒</option>
  359.           <option value="GMT+04:00">(GMT+4.00)阿布扎比,马斯喀特</option>
  360.           <option value="GMT+04:30">(GMT+4.30)喀布尔</option>
  361.           <option value="GMT+05:00">(GMT+5.00)叶卡捷琳堡</option>
  362.           <option value="GMT+05:30">(GMT+5.30)马德拉斯,加尔各答,孟买,新德里</option>
  363.           <option value="GMT+05:45">(GMT+5.45)加德满都</option>
  364.   <option value="GMT+06:00">(GMT+6.00)阿拉木图,新西伯利亚</option>
  365.   <option value="GMT+06:30">(GMT+6.30)仰光</option>   
  366.           <option value="GMT+07:00">(GMT+7.00)曼谷,河内,雅加达</option>
  367.           <option value="GMT+08:00" selected="selected">(GMT+8.00)北京,台北,重庆,香港特别行政区,乌鲁木齐</option>
  368.           <option value="GMT+09:00">(GMT+9.00)汉城,大坂,东京,札幌</option>
  369.           <option value="GMT+09:30">(GMT+9.30)达尔文</option>
  370.           <option value="GMT+10:00">(GMT+10.00)关岛,莫尔兹比港</option>
  371.           <option value="GMT+11:00">(GMT+11.00)马加丹,索罗门群岛,新喀里多尼亚</option>
  372.           <option value="GMT+12:00">(GMT+12.00)斐济,堪察加半岛,马绍尔群岛</option>
  373.           <option value="GMT+13:00">(GMT+13.00)努库阿洛法</option>
  374. </select></td>
  375.                 </tr>              
  376.                 <tr>
  377.                   <td rowspan="2" align=left valign="middle"  bgcolor="#FFFFFF">
  378.   &nbsp;签名档<br>
  379.   <br>
  380.   &nbsp;UBB:
  381.   <%
  382.   com.redmoon.forum.Config cfg = new com.redmoon.forum.Config();
  383.   if (cfg.getBooleanProperty("forum.sign_ubb"))
  384.    out.print("支持");
  385.   else
  386.    out.print("不支持");
  387.   %>   </td>
  388.                   <td colspan=3 valign="middle" bgcolor="#FFFFFF">&nbsp;
  389.                   <%@ include file="forum/inc/getubb.jsp"%></td>
  390.                 </tr>
  391.                 <tr>
  392.                   <td colspan=3 valign="middle" bgcolor="#FFFFFF">&nbsp;
  393.                     <textarea cols="75" name="Content" rows="5" wrap="VIRTUAL" title="签名档"></textarea>
  394.                     <font color="#000000"><br>
  395. &nbsp;&nbsp;不能超过<%=cfg.getIntProperty("forum.sign_length")%>字</font></td>
  396.                 </tr>                
  397.               </table></td>
  398.           </tr>
  399.           <tr> 
  400.             <td bgcolor="#FFFFFF"> <table border=0 cellpadding=0 cellspacing=0 width=100%>
  401.                 <tr valign=bottom> 
  402.                   <td height=41 align="center" valign="middle" > <font color="#FF0000">&nbsp; </font>
  403.                     <input name=Write type=submit value=" 提交 ">
  404.                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  405.                     <input name=reset type=reset value=" 重填 ">
  406.   </td>
  407.                 </tr>
  408.               </table></td>
  409.           </tr>
  410.         </table></td>
  411. </tr></form></table>
  412. <%@ include file="forum/inc/footer.jsp"%>
  413. </body>
  414. <SCRIPT>
  415. function VerifyInput()
  416. {
  417. var newDateObj = new Date()
  418. if (document.frmAnnounce.RegName.value == "")
  419. {
  420. alert("请输入您的用户名");
  421. document.frmAnnounce.RegName.focus();
  422. return false;
  423. }
  424. if (document.frmAnnounce.Password.value == "")
  425. {
  426. alert("请输入您的密码");
  427. document.frmAnnounce.Password.focus();
  428. return false;
  429. }
  430. if (document.frmAnnounce.Password2.value == "")
  431. {
  432. alert("请重复您的密码");
  433. document.frmAnnounce.Password2.focus();
  434. return false;
  435. }
  436. if (document.frmAnnounce.Password.value != document.frmAnnounce.Password2.value)
  437. {
  438. alert("两遍输入的口令不一致");
  439. document.frmAnnounce.Password.focus();
  440. return false;
  441. }
  442. if (document.frmAnnounce.Email.value == "")
  443. {
  444. alert("请输入您的EMAIL地址");
  445. document.frmAnnounce.Email.focus();
  446. return false;
  447. }
  448. if (document.frmAnnounce.Question.value == "")
  449. {
  450. alert("请输入提示问题");
  451. document.frmAnnounce.Question.focus();
  452. return false;
  453. }
  454. if (document.frmAnnounce.Answer.value == "")
  455. {
  456. alert("请输入答案");
  457. document.frmAnnounce.Answer.focus();
  458. return false;
  459. }
  460. if (document.frmAnnounce.BirthYear.value > 0)  {
  461. if (isNaN(document.frmAnnounce.BirthYear.value) || document.frmAnnounce.BirthYear.value > newDateObj.getFullYear()  || document.frmAnnounce.BirthYear.value < 1900)
  462. {
  463. alert("请输入正确的出生年份");
  464. document.frmAnnounce.BirthYear.focus();
  465. return false;
  466. }
  467. }
  468. var signlen = <%=cfg.getIntProperty("forum.sign_length")%>;
  469. if (document.frmAnnounce.Content.value.length>signlen)
  470. {
  471. alert("签名不能超过" + signlen + "字");
  472. document.frmAnnounce.Content.focus();
  473. return false;
  474. }
  475. return true;
  476. }
  477. </SCRIPT>
  478. </html>