<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="cn.js.fan.util.*"%>
<%@ page import="cn.js.fan.web.Global"%>
<%@ page import="com.redmoon.forum.person.UserSet"%>
<%@ page import="java.util.*"%>
<%@ page import="org.jdom.Element"%>
<%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
<%
String skincode = UserSet.getSkin(request);
if (skincode.equals(""))
	skincode = UserSet.defaultSkin;
SkinMgr skm = new SkinMgr();
Skin skin = skm.getSkin(skincode);
if (skin==null)
	skin = skm.getSkin(UserSet.defaultSkin);
String skinPath = skin.getPath();
%>
<html>
<head>
<title><%=Global.AppName%> - <lt:Label res="res.label.regist" key="regist"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="forum/<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
<script src="inc/common.js"></script>
<script>
function New(para_URL){var URL=new String(para_URL);window.open(URL,'','resizable,scrollbars')}

function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}

//-------------check code begin--------------------
function initCheckFrame() {
	var checkFrame = window.frames["checkFrame"];
	checkFrame.document.open();
	checkFrame.document.write("<form name=\"form_param\" method=\"post\">");
	checkFrame.document.write("</form>");
	checkFrame.document.close();
	checkFrame.document.title="Check Param";
	checkFrame.document.charset="UTF-8";
}

function initCheck(formAction) {
	initCheckFrame();
	var checkFrame = window.frames["checkFrame"];
	checkFrame.document.form_param.action = formAction;
	checkFrame.document.form_param.innerHTML = "";
}

function addCheckParam(paramName, paramValue) {
	var inputTxt = "<input name='" + paramName + "' value='" + paramValue + "'>";
	var checkFrame = window.frames["checkFrame"];
	checkFrame.document.form_param.innerHTML += inputTxt;
}

function doCheck() {
	var checkFrame = window.frames["checkFrame"];
	checkFrame.document.form_param.submit();
}

function showCheckResult(spanName, result) {
	var spanObj = findObj(spanName);
	if (spanObj!=null)
		spanObj.innerHTML = result;
}
//-------------check code end--------------------

function CheckRegName(){
	var Name = document.frmAnnounce.RegName.value;
	initCheck("regist_check.jsp");
	addCheckParam("RegName", Name);
	addCheckParam("op", "chkRegName");
	doCheck();
}

function CheckEmail() {
	var email = document.frmAnnounce.Email.value;
	initCheck("regist_check.jsp");
	addCheckParam("Email", email);
	addCheckParam("op", "chkEmail");
	doCheck();
}

function showTableDetail() {
	if (tableDetail.style.display=="none")
		tableDetail.style.display = "";
	else
		tableDetail.style.display = "none";
}
</script>
<script src="forum/inc/ubbcode.jsp"></script>
</head>
<%@ include file="forum/inc/header.jsp"%>
<body bgcolor="#FFFFFF" text="#000000">
<table width=98% align=center cellspacing=0 cellpadding=0 border=0>
 <Form method="POST" action="regist_do.jsp"  name="frmAnnounce" onSubmit="return VerifyInput()"><tr>
      <td bgcolor=#D3D3D3> <table width=100% border=0 cellpadding=0 cellspacing=1>
          <tr> 
            <td align=center bgcolor="#FFFFFF"> <table border=0 cellpadding=0 cellspacing=0 width=100%>
                <tr> 
                  <td width=31 height=20 background="forum/<%=skinPath%>/images/bg1.gif">&nbsp;</td>
                  <td width=131 background="forum/<%=skinPath%>/images/bg1.gif" class="td_title"><b>　
                    <lt:Label res="res.label.regist" key="nick_pwd"/>
                  </b></td>
                  <td height="26" background="forum/<%=skinPath%>/images/bg1.gif" class="td_title"><lt:Label res="res.label.regist" key="notice"/></td>
                </tr>
              </table>
              <table width=100% border=0 cellpadding=0 cellspacing=1 bgcolor="#CCCCCC">
                <tr>
                  <td width="128" height="28" align=left bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="RegName"/></td> 
                  <td align=left bgcolor="#FFFFFF">
                      &nbsp;
                      <input name=RegName type=text size=20 maxlength="50" onBlur="CheckRegName()">
                      <font color="#FF0000"> * </font> 
                      <input name=Button type=button onClick="javascript:CheckRegName()" value='<lt:Label res="res.label.forum.user" key="check_user_name"/>'>
					  <font color="red"><span id="span_RegName"></span></font>                  </td>
                </tr>
                <tr>
                  <td height="28" align=left bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="Password"/></td> 
                  <td align=left valign="top" bgcolor="#FFFFFF"><img src=/images/c.gif width=1 height=5><br>
                      &nbsp; 
                      <input name=Password type=password size=20 maxlength="20">
                      <font color="#FF0000">*</font>
                      <lt:Label res="res.label.forum.user" key="Password2"/>
                      <input name=Password2 type=password size=20 maxlength="20">
                  <font color="#FF0000"> *</font></td>
                </tr>
                <tr>
                  <td height="28" align=left bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="Question"/></td> 
                  <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp; 
                    <input name=Question type=text size=20 maxlength=50>
                      <font color="#FF0000">* </font>
                      <lt:Label res="res.label.forum.user" key="Answer"/>
                      <input name=Answer type=text size=20 maxlength=50>
                  <font color="#FF0000">*</font></td>
                </tr>
              <tr>
                <td height="28" align=left bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="Gender"/></td>
                  <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp;
                    <input type=radio name=Gender value=M checked>
                    <lt:Label res="res.label.forum.user" key="man"/>
                    <input type=radio name=Gender value=F>
                    <lt:Label res="res.label.forum.user" key="woman"/>                    &nbsp;</td>
                </tr>           <tr>
                  <td height="28" align=left bgcolor="#FFFFFF">&nbsp;Email</td>
                  <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp;
                    <input name=Email type=text size=20 maxlength="50" onBlur="CheckEmail()">
                  <font color="#FF0000">*<span id="span_email"></span></font></td>
                </tr>
<%
com.redmoon.forum.Config cfg1 = new com.redmoon.forum.Config();
if (cfg1.getBooleanProperty("forum.registUseValidateCode")) {
	int charNum = cfg1.getIntProperty("forum.registUseValidateCodeLen");
%>				
				<tr>
                  <td height="28" align=left bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="validate_code"/></td>
                  <td height="25" align=left valign="middle" bgcolor="#FFFFFF">&nbsp;
                    <input name="validateCode" size="6">
					<!--xxx 目的是为了兼容刷新firefox-->
                  <a href="#" onClick="$('imgValidateCode').src='validatecode.jsp?charNum=<%=charNum%>' + '&xxx=' + new Date().getTime();"><img alt="<lt:Label res="res.label.forum.user" key="click_to_refresh"/>" id="imgValidateCode" src='validatecode.jsp?charNum=<%=charNum%>' border=0 align="absmiddle"></a>
                  <lt:Label res="res.label.forum.user" key="click_to_refresh"/></td>
                </tr>
<%}%>				
              </table>
              <table width=100% border=0 cellpadding=0 cellspacing=0>
                <tr> 
                  <td width=31 height=23 background="forum/<%=skinPath%>/images/bg1.gif">&nbsp;</td>
                  <td height="23" background="forum/<%=skinPath%>/images/bg1.gif" class="td_title">+&nbsp;<a href="javascript:showTableDetail()"><lt:Label res="res.label.forum.user" key="click_here"/></a>&nbsp;&nbsp;<lt:Label res="res.label.forum.user" key="fill_detail"/>
                    <input name="isSecret" value="true" type="checkbox">
                  <lt:Label res="res.label.forum.user" key="secret"/></td>
                </tr>
              </table>
			  <table id="tableDetail" name="tableDetail" width=100% border=0 cellpadding=0 cellspacing=1 style="display:none" bgcolor="#CCCCCC">
                <tr> 
                  <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="RealName"/></td>
                  <td width="188" height="25"  bgcolor="#FFFFFF" valign="middle"> &nbsp;
                  <input name=RealName type=text size=12 maxlength=20>                  </td>
                  <td width=103 height="25"  bgcolor="#FFFFFF" align=left> &nbsp;
                  <lt:Label res="res.label.forum.user" key="Career"/></td>
                  <td height="25"  bgcolor="#FFFFFF" align=left>&nbsp;
                    <select name=Career size=1>
                      <option value="0" selected><lt:Label res="res.label.forum.user" key="select"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="government"/>"><lt:Label res="res.label.forum.user" key="government"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="student"/>"><lt:Label res="res.label.forum.user" key="student"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="communication"/>"><lt:Label res="res.label.forum.user" key="communication"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="computer"/>"><lt:Label res="res.label.forum.user" key="computer"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="web"/>"><lt:Label res="res.label.forum.user" key="web"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="trade"/>"><lt:Label res="res.label.forum.user" key="trade"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="bank"/>"><lt:Label res="res.label.forum.user" key="bank"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="tax"/>"><lt:Label res="res.label.forum.user" key="tax"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="refer"/>"><lt:Label res="res.label.forum.user" key="refer"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="service"/>"><lt:Label res="res.label.forum.user" key="service"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="tour"/>"><lt:Label res="res.label.forum.user" key="tour"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="health"/>"><lt:Label res="res.label.forum.user" key="health"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="realty"/>"><lt:Label res="res.label.forum.user" key="realty"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="transport"/>"><lt:Label res="res.label.forum.user" key="transport"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="law"/>"><lt:Label res="res.label.forum.user" key="law"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="culture"/>"><lt:Label res="res.label.forum.user" key="culture"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="ad"/>"><lt:Label res="res.label.forum.user" key="ad"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="education"/>"><lt:Label res="res.label.forum.user" key="education"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="agriculture"/>"><lt:Label res="res.label.forum.user" key="agriculture"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="manufacturing"/>"><lt:Label res="res.label.forum.user" key="manufacturing"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="soho"/>"><lt:Label res="res.label.forum.user" key="soho"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="other"/>"><lt:Label res="res.label.forum.user" key="other"/></option>
                    </select>
				  </td>
                </tr>
                <tr> 
                  <td width=128 height="28" align=left bgcolor="#FFFFFF"> &nbsp;<lt:Label res="res.label.forum.user" key="Mobile"/></td>
                  <td height="25" bgcolor="#FFFFFF"><span class="l15">
                    &nbsp;
                    <input name=Mobile type=text size=16 maxlength="16">
                  </span></td>
                  <td width=103 height="25" bgcolor="#FFFFFF"> &nbsp;
                  <lt:Label res="res.label.forum.user" key="Job"/></td>
                  <td height="25" bgcolor="#FFFFFF" class=l15>&nbsp; 
                    <select name=Job size=1>
                      <option value="0" selected><lt:Label res="res.label.forum.user" key="select"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="staffer"/>"><lt:Label res="res.label.forum.user" key="staffer"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="engineer"/>"><lt:Label res="res.label.forum.user" key="engineer"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="ceo"/>"><lt:Label res="res.label.forum.user" key="ceo"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="market_manager"/>"><lt:Label res="res.label.forum.user" key="market_manager"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="administration_manager"/>"><lt:Label res="res.label.forum.user" key="administration_manager"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="person_manager"/>"><lt:Label res="res.label.forum.user" key="person_manager"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="finance_manager"/>"><lt:Label res="res.label.forum.user" key="finance_manager"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="technology_manager"/>"><lt:Label res="res.label.forum.user" key="technology_manager"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="retire"/>"><lt:Label res="res.label.forum.user" key="retire"/></option>
                      <option value="<lt:Label res="res.label.forum.user" key="other"/>"><lt:Label res="res.label.forum.user" key="other"/></option>
                  </select> </td>
                </tr>
                <tr> 
                  <td width=128 height="28" align=left bgcolor="#FFFFFF" >&nbsp;<lt:Label res="res.label.forum.user" key="birthday"/></td>
                  <td height="28" bgcolor="#FFFFFF">&nbsp; 
                    <select name="BirthYear" class="input1">
                      <script language="JavaScript">
	  <!--
		var tmpDate = new Date();
		var year= tmpDate.getUTCFullYear();
		var month = tmpDate.getMonth()+1;
		var date = tmpDate.getDate();
		for (var i=-50; i<=100; i++)
			document.write("<option value="+(year+i)+">"+(year+i)+"</option>")
	  //-->
	  </script>
                    </select>
                    <lt:Label res="res.label.forum.user" key="BirthYear"/>
                    <select name="BirthMonth" class="input1">
                      <option value="1" selected>1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                      <option value="5">5</option>
                      <option value="6">6</option>
                      <option value="7">7</option>
                      <option value="8">8</option>
                      <option value="9">9</option>
                      <option value="10">10</option>
                      <option value="11">11</option>
                      <option value="12">12</option>
                    </select>
                    <lt:Label res="res.label.forum.user" key="BirthMonth"/>
                    <select name="BirthDay" class="input1">
                      <option value="1" selected>1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                      <option value="5">5</option>
                      <option value="6">6</option>
                      <option value="7">7</option>
                      <option value="8">8</option>
                      <option value="9">9</option>
                      <option value="10">10</option>
                      <option value="11">11</option>
                      <option value="12">12</option>
                      <option value="13">13</option>
                      <option value="14">14</option>
                      <option value="15">15</option>
                      <option value="16">16</option>
                      <option value="17">17</option>
                      <option value="18">18</option>
                      <option value="19">19</option>
                      <option value="20">20</option>
                      <option value="21">21</option>
                      <option value="22">22</option>
                      <option value="23">23</option>
                      <option value="24">24</option>
                      <option value="25">25</option>
                      <option value="26">26</option>
                      <option value="27">27</option>
                      <option value="28">28</option>
                      <option value="29">29</option>
                      <option value="30">30</option>
                      <option value="31">31</option>
                    </select>
                    <lt:Label res="res.label.forum.user" key="BirthDay"/>
                    <script language="JavaScript">
	  <!--
		tmpDate = new Date();
		year= ""+tmpDate.getYear();
		month = tmpDate.getMonth()+1;
		//month = ""+month;
		//if (month.length==1)
		//	month = "0"+month;
		//date = ""+tmpDate.getDate();
		//if (date.length==1)
		//	date = "0"+date;
	  
	  frmAnnounce.BirthYear.value = year;
	  frmAnnounce.BirthMonth.value = month;
	  frmAnnounce.BirthDay.value = date;
	  //-->
	  </script>				  </td>
                  <td width=103 height="28" bgcolor="#FFFFFF" align="left"> &nbsp;
                  <lt:Label res="res.label.forum.user" key="marry_status"/></td>
                  <td height="28" bgcolor="#FFFFFF" class=l15>                   
				   <span class="l15">
                    &nbsp;
                    <select name=Marriage size=1>
                      <option value="0" selected><lt:Label res="res.label.forum.user" key="marry_not"/></option>
                      <option value="2"><lt:Label res="res.label.forum.user" key="marry_not_know"/></option>
                      <option value="1"><lt:Label res="res.label.forum.user" key="marry_yes"/></option>
                  </select>
				   </span></td>
                </tr>
                <tr> 
                  <td width=128 height="28" align=left bgcolor="#FFFFFF"> &nbsp;<lt:Label res="res.label.forum.user" key="phone"/></td>
                  <td height="19" bgcolor="#FFFFFF" valign="middle">&nbsp;
                  <input name=Phone type=text size=16 maxlength="20"> </td>
                  <td width=103 height="19" bgcolor="#FFFFFF"> &nbsp;&nbsp;QQ</td>
                  <td height="19" bgcolor="#FFFFFF" class=l15>&nbsp; 
                  <input name=OICQ type=text size=16 maxlength="15"></td>
                </tr>
               <tr> 
                  <td width=128 height="28" align=left bgcolor="#FFFFFF"><img src=/images/c.gif width=1 height=5>
                  <lt:Label res="res.label.forum.user" key="State"/></td>
                  <td valign="middle" height="27"  bgcolor="#FFFFFF" > &nbsp;
                    <input name=State size=10 maxlength="30">
                  <td colspan="2" rowspan="5" valign="middle" bgcolor="#FFFFFF" align="left"> <table width="87%" border="0" cellspacing="0" cellpadding="0" align="left">
                      <tr> 
                        <td height="56"  bgcolor="#FFFFFF">&nbsp;&nbsp;                          <img src="forum/images/face/face.gif" name="tus">&nbsp; 
                          <script>function showimage(){document.images.tus.src="forum/images/face/face"+document.frmAnnounce.RealPic.options[document.frmAnnounce.RealPic.selectedIndex].value+".gif";}</script>
                          <select name=RealPic size=1 onChange="showimage()">
                            <option value=""><lt:Label res="res.label.forum.user" key="default_icon"/></option>
                            <%for (int i=1; i<=199; i++) {%>
                            <option value="<%=i%>"><%=i%></option>
                            <% } %>
                          </select></td>
                      </tr>
                      <tr>
                        <td height="56"  bgcolor="#FFFFFF">&nbsp;<a href="JavaScript:New('images/index.jsp')"><lt:Label res="res.label.forum.user" key="view_all_icon"/></a></td>
                      </tr>
                  </table></td>
                </tr>
                <tr> 
                  <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="City"/></td>
                  <td height="25" valign="middle" bgcolor="#FFFFFF"> &nbsp;
                  <input name=City type=text size=10 maxlength="50">                  </td>
                </tr>
                <tr> 
                  <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="Address"/></td>
                  <td height="25" valign="middle" bgcolor="#FFFFFF"> &nbsp;
                  <input name=Address type=text size=25 maxlength="100">                  </td>
                </tr>
                <tr> 
                  <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="PostCode"/></td>
                  <td height="19" valign="middle" bgcolor="#FFFFFF"> 
                  &nbsp;
                  <input name=PostCode type=text size=10 maxlength="20">                  </td>
                </tr>
                <tr> 
                  <td width=128 align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="IDCard"/></td>
                  <td height="29" bgcolor="#FFFFFF" valign="middle"> 
                  &nbsp;
                  <input name=IDCard type=text size=21 maxlength="50">                  </td>
                </tr>
                <tr>
                  <td align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="Hobbies"/></td>
                  <td height="29" colspan="3" valign="middle" bgcolor="#FFFFFF">&nbsp;
                  <input name=Hobbies type=text size=30></td></tr>
                <tr>
                  <td align=left height="37"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="home"/></td>
                  <td colspan="3" valign="middle"  bgcolor="#FFFFFF">&nbsp;
                      <input name=home type=text value="" size=30 maxlength="50"></td>
                </tr>
                <tr>
                  <td align=left height="37"  bgcolor="#FFFFFF">&nbsp;MSN</td>
                  <td colspan="3" valign="middle"  bgcolor="#FFFFFF">&nbsp;
                      <input name=msn type=text value="" size=30 maxlength="50"></td>
                </tr>
<tr bgcolor="#CCCCCC">
            <td align=left height="28"  bgcolor="#FFFFFF">&nbsp;
              <lt:Label res="res.label.forum.user" key="locale"/></td>
            <td height="29" colspan="3" valign="middle" bgcolor="#FFFFFF">&nbsp;
              <select name=locale size=1>
              <option value="" selected>
                <lt:Label res="res.label.forum.user" key="locale_default"/>
                </option>
<%
            XMLConfig xc = new XMLConfig("config_i18n.xml", false, "utf-8");
            Element root = xc.getRootElement();
            Element child = root.getChild("support");
            List list = child.getChildren();
            if (list != null) {
                Iterator ir = list.iterator();
                while (ir.hasNext()) {
                    Element e = (Element) ir.next();
					String loc = e.getChildText("lang") + "_" + e.getChildText("country");
                    out.print("<option value=" + loc + ">" + SkinUtil.LoadString(request, "res.config.config_i18n", loc) + "</option>");
                }
            }
%>				
            </select>
			</td>
          </tr>				
                <tr>
                  <td align=left height="28"  bgcolor="#FFFFFF">&nbsp;<lt:Label res="res.label.forum.user" key="timeZone"/></td>
                  <td height="29" colspan="3" valign="middle" bgcolor="#FFFFFF">
&nbsp;
<select name="timeZone">
  <option value="GMT-11:00">(GMT-11.00)
  <lt:Label res="res.label.cms.config" key="GMT-11.00"/>
  </option>
  <option value="GMT-10:00">(GMT-10.00)
  <lt:Label res="res.label.cms.config" key="GMT-10.00"/>
  </option>
  <option value="GMT-09:00">(GMT-9.00)
  <lt:Label res="res.label.cms.config" key="GMT-9.00"/>
  </option>
  <option value="GMT-08:00">(GMT-8.00)
  <lt:Label res="res.label.cms.config" key="GMT-8.00"/>
  </option>
  <option value="GMT-07:00">(GMT-7.00)
  <lt:Label res="res.label.cms.config" key="GMT-7.00"/>
  </option>
  <option value="GMT-06:00">(GMT-6.00)
  <lt:Label res="res.label.cms.config" key="GMT-6.00"/>
  </option>
  <option value="GMT-05:00">(GMT-5.00)
  <lt:Label res="res.label.cms.config" key="GMT-5.00"/>
  </option>
  <option value="GMT-04:00">(GMT-4.00)
  <lt:Label res="res.label.cms.config" key="GMT-4.00"/>
  </option>
  <option value="GMT-03:00">(GMT-3.00)
  <lt:Label res="res.label.cms.config" key="GMT-3.00"/>
  </option>
  <option value="GMT-02:00">(GMT-2.00)
  <lt:Label res="res.label.cms.config" key="GMT-2.00"/>
  </option>
  <option value="GMT-01:00">(GMT-1.00)
  <lt:Label res="res.label.cms.config" key="GMT-1.00"/>
  </option>
  <option value="GMT">(GMT)
  <lt:Label res="res.label.cms.config" key="GMT"/>
  </option>
  <option value="GMT+01:00">(GMT+1.00)
  <lt:Label res="res.label.cms.config" key="GMT+1.00"/>
  </option>
  <option value="GMT+02:00">(GMT+2.00)
  <lt:Label res="res.label.cms.config" key="GMT+2.00"/>
  </option>
  <option value="GMT+03:00">(GMT+3.00)
  <lt:Label res="res.label.cms.config" key="GMT+3.00"/>
  </option>
  <option value="GMT+04:00">(GMT+4.00)
  <lt:Label res="res.label.cms.config" key="GMT+4.00"/>
  </option>
  <option value="GMT+04:30">(GMT+4.30)
  <lt:Label res="res.label.cms.config" key="GMT+4.30"/>
  </option>
  <option value="GMT+05:00">(GMT+5.00)
  <lt:Label res="res.label.cms.config" key="GMT+5.00"/>
  </option>
  <option value="GMT+05:30">(GMT+5.30)
  <lt:Label res="res.label.cms.config" key="GMT+5.30"/>
  </option>
  <option value="GMT+05:45">(GMT+5.45)
  <lt:Label res="res.label.cms.config" key="GMT+5.45"/>
  </option>
  <option value="GMT+06:00">(GMT+6.00)
  <lt:Label res="res.label.cms.config" key="GMT+6.00"/>
  </option>
  <option value="GMT+06:30">(GMT+6.30)
  <lt:Label res="res.label.cms.config" key="GMT+6.30"/>
  </option>
  <option value="GMT+07:00">(GMT+7.00)
  <lt:Label res="res.label.cms.config" key="GMT+7.00"/>
  </option>
  <option value="GMT+08:00" selected="selected">(GMT+8.00)
  <lt:Label res="res.label.cms.config" key="GMT+8.00"/>
  </option>
  <option value="GMT+09:00">(GMT+9.00)
  <lt:Label res="res.label.cms.config" key="GMT+9.00"/>
  </option>
  <option value="GMT+09:30">(GMT+9.30)
  <lt:Label res="res.label.cms.config" key="GMT+9.30"/>
  </option>
  <option value="GMT+10:00">(GMT+10.00)
  <lt:Label res="res.label.cms.config" key="GMT+10.00"/>
  </option>
  <option value="GMT+11:00">(GMT+11.00)
  <lt:Label res="res.label.cms.config" key="GMT+11.00"/>
  </option>
  <option value="GMT+12:00">(GMT+12.00)
  <lt:Label res="res.label.cms.config" key="GMT+12.00"/>
  </option>
  <option value="GMT+13:00">(GMT+13.00)
  <lt:Label res="res.label.cms.config" key="GMT+13.00"/>
  </option>
</select></td>
                </tr>              
                <tr>
                  <td rowspan="2" align=left valign="middle"  bgcolor="#FFFFFF">
				  &nbsp;<lt:Label res="res.label.forum.user" key="sign"/>
				  <br>
				  <br>
				  &nbsp;UBB：
				  <%
				  com.redmoon.forum.Config cfg = new com.redmoon.forum.Config();
				  if (cfg.getBooleanProperty("forum.sign_ubb"))
				  	out.print(SkinUtil.LoadString(request, "res.label.forum.user", "support"));
				  else
				  	out.print(SkinUtil.LoadString(request, "res.label.forum.user", "not_support"));
				  %>				  </td>
                  <td colspan=3 valign="middle" bgcolor="#FFFFFF">&nbsp;
                  <%@ include file="forum/inc/getubb.jsp"%></td>
                </tr>
                <tr>
                  <td colspan=3 valign="middle" bgcolor="#FFFFFF">&nbsp;
                    <textarea cols="75" name="Content" rows="5" wrap="VIRTUAL" title="签名档"></textarea>
                    <font color="#000000"><br>
&nbsp;&nbsp;
<lt:Label res="res.label.forum.user" key="sign_limit_count"/>
<%=cfg.getIntProperty("forum.sign_length")%></font></td>
                </tr>                
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#FFFFFF"> <table border=0 cellpadding=0 cellspacing=0 width=100%>
                <tr valign=bottom> 
                  <td height=41 align="center" valign="middle" > <font color="#FF0000">&nbsp; </font>
                    <input name=Write type=submit value="<lt:Label key="ok"/>">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input name=reset type=reset value="<lt:Label key="reset"/>">
				  </td>
                </tr>
              </table></td>
          </tr>
        </table></td>
</tr></form></table>
<iframe width=0 height=0 src="regist_check.jsp" name="checkFrame" id="checkFrame"></iframe>
<%@ include file="forum/inc/footer.jsp"%>
</body>
<SCRIPT>
function VerifyInput()
{
var newDateObj = new Date()
if (document.frmAnnounce.RegName.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_regname"/>");
document.frmAnnounce.RegName.focus();
return false;
}

if (document.frmAnnounce.Password.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_pwd"/>");
document.frmAnnounce.Password.focus();
return false;
}
if (document.frmAnnounce.Password2.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_pwd2"/>");
document.frmAnnounce.Password2.focus();
return false;
}
if (document.frmAnnounce.Password.value != document.frmAnnounce.Password2.value)
{
alert("<lt:Label res="res.label.forum.user" key="pwd_not_equal_pwd2"/>");
document.frmAnnounce.Password.focus();
return false;
}

if (document.frmAnnounce.Email.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_email"/>");
document.frmAnnounce.Email.focus();
return false;
}

if (document.frmAnnounce.Question.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_question"/>");
document.frmAnnounce.Question.focus();
return false;
}

if (document.frmAnnounce.Answer.value == "")
{
alert("<lt:Label res="res.label.forum.user" key="need_answer"/>");
document.frmAnnounce.Answer.focus();
return false;
}

if (document.frmAnnounce.BirthYear.value > 0)  {
	if (isNaN(document.frmAnnounce.BirthYear.value) || document.frmAnnounce.BirthYear.value > newDateObj.getFullYear()  || document.frmAnnounce.BirthYear.value < 1900)
	{
		alert("<lt:Label res="res.label.forum.user" key="err_birthday"/>");
		document.frmAnnounce.BirthYear.focus();
		return false;
	}
}

var signlen = <%=cfg.getIntProperty("forum.sign_length")%>;
if (document.frmAnnounce.Content.value.length>signlen)
{
	alert("<lt:Label res="res.label.forum.user" key="sign_limit_count"/>" + signlen);
	document.frmAnnounce.Content.focus();
	return false;
}

return true;
}
</SCRIPT>
</html>