<script language="JavaScript">
<!--
function chk(theForm){
        if (theForm.UserName.value == ""){
                alert("请输入您的名字!");
                theForm.UserName.focus();
                return (false);
        } 
         for (var I=0; I < theForm.UserName.value.length; I++)
{ var pp=theForm.UserName.value.substring(I,I+1)
      if (pp == '"' || pp == "'" || pp == "<" || pp == ">"|| pp == ";"|| pp == "("|| pp == ")"|| pp == "$"|| pp == ";"|| pp == "*")
	  { alert("姓名中有非法字符，请重新输入！");
	    theForm.UserName.focus();
	    return (false); }  }

       if (theForm.Password.value.length < 6){
                alert("密码至少6位!");
                theForm.Password.focus();
                return (false);
        }
       if (theForm.Password.value == ""){
                alert("请输入密码!");
                theForm.Password.focus();
                return (false);
        }
       for (var I=0; I < theForm.Password.value.length; I++)
{ var pp=theForm.Password.value.substring(I,I+1)
      if (pp == '"' || pp == "'" || pp == "<" || pp == ">"|| pp == ";"|| pp == "("|| pp == ")"|| pp == "$"|| pp == ";"|| pp == "*")
	  { alert("密码中有非法字符，请重新输入！");
	    theForm.Password.focus();
	    return (false); }  }

       if (theForm.PwdConfirm.value == ""){
                alert("请输入确认密码!");
                theForm.PwdConfirm.focus();
                return (false);
        } 
       if (theForm.Password.value != theForm.PwdConfirm.value){
                alert("密码不一致!");
                theForm.PwdConfirm.focus();
                return (false);
        } 

        if (theForm.Question.value == ""){
                alert("请输入您的问题!");
                theForm.Question.focus();
                return (false);
        }
        
        if (theForm.Answer.value == ""){
                alert("请输入问题答案!");
                theForm.Answer.focus();
                return (false);
        } 

        if (theForm.email.value == ""){
                alert("请输入E-mail!");
                theForm.email.focus();
                return (false);
        } 

        if (theForm.Zip.value == ""){
                alert("请输入邮政编码!");
                theForm.Zip.focus();
                return (false);
        } 
        var checkOK = "0123456789";
        var checkStr = theForm.Zip.value;
        var allValidp = true;
        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){
                        allValidp = false;
                        break;
                }
        }
        if (!allValidp){
                alert("邮政编码只能是数字!");
                theForm.Zip.focus();
                return (false);
        }

      if (theForm.Phone.value == ""){
                alert("请输入联系电话!");
                theForm.Phone.focus();
                return (false);
        } 
        var checkOK = "0123456789";
        var checkStr = theForm.Phone.value;
        var allValidp = true;
        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){
                        allValidp = false;
                        break;
                }
        }
        if (!allValidp){
                alert("联系电话只能是数字!");
                theForm.Phone.focus();
                return (false);
        }

        var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_@.";
        var checkStr = theForm.email.value;
        var allValid = true;
        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 (theForm.email.value.length < 8){
                allValid = false;
        }
        if (!allValid){
                alert("您输入的电子邮件地址无效!");
                theForm.email.focus();
                return (false);
        }
        address=theForm.email.value;
        if(address.length>0){
                I=address.indexOf("@");
                if(I==-1){
                        window.alert("对不起！您输入的电子邮件地址是错误的！")
                        theForm.email.focus();
                        return (false);
                }
                 ii=address.indexOf(".")
                if(ii==-1){
                        window.alert("对不起！您输入的电子邮件地址是错误的！")
                        theForm.email.focus();
                        return (false);
                }

 if (checktext(theForm.email.value)){
                alert("请您输入有效的email");
                theForm.email.select();
                theForm.email.focus();
                return (false);
        }   
}
}
//-->
</script>
<TABLE class=table-zuoyou cellSpacing=0 cellPadding=0 width=760 align=center 
border=0>
  <TBODY>
  <TR>
    <TD class=table-you vAlign=top width=167><FORM name=UserLogin onSubmit='return chk(this)'  action=UserLogin.asp?Action=login method=post><TABLE cellSpacing=0 cellPadding=0 width=100% border=0><TBODY><TR><TD><IMG height=25 src='ziyan/userlogin.gif' width=167></TD></TR>{用户登陆}</FORM></TBODY></TABLE>
           <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
{用户搜索}       
</TBODY></TABLE>
          <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=25 src="ziyan/lanmu.gif" 
            width=167></TD></TR>
        <TR>
          <TD></TD></TR>
        <TR>
          <TD> 
<TABLE cellSpacing=0 cellPadding=0 width="86%" border=0 align=center>
            <TR><TD>{栏目分类} </TD></TR>
</TABLE>
</TD></TR></TBODY></TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  {用户投票}      
</TBODY></TABLE></TD>
    <TD vAlign=top width=593>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD colSpan=2>
            <OBJECT 
            codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 
            height=100 width="100%" 
            classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="movie" VALUE="banner2.swf"><PARAM NAME="quality" VALUE="high"><PARAM NAME="wmode" VALUE="transparent">
            <embed src='banner2.swf' 
            width="100%" height=100 quality="high" 
            pluginspage="http://www.macromedia.com/go/getflashplayer" 
            type="application/x-shockwave-flash"></embed></OBJECT></TD></TR>
        <TR>
          <TD bgColor=#ff9900 colSpan=2 height=3></TD></TR>
        <TR>
          <TD height=25> <IMG src="ziyan/tp007.gif"> 您现在的位置：会员注册</TD>
          <TD></TD></TR>
        <TR>
          <TD background=ziyan/dian.gif colSpan=2 height=1></TD></TR>
        <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=10 border=0>
              <TBODY>
              <TR>
                <TD><FORM name='UserReg' action='SaveReg.asp?action=ok' method='post' onSubmit="return chk(this)">
                      <table width=95% border=0 align="center" cellpadding=5 cellspacing=1 bordercolor="#FFFFFF" style="border-collapse: collapse">
                        <TR align=center> 
                          <TD height=20 colSpan=2><b>新用户注册</b></TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><b>用户名：</b><BR>
                            不能小于4个字符（2个汉字）</TD>
                          <TD width="63%"> <INPUT name=UserName id="UserName" size=20   maxLength=14> 
                            <font color="#FF0000">*</font> </TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><B>密码(至少6位)：</B><BR>
                            请输入密码，区分大小写。 不要使用类似 '*'、' '的特殊字符</TD>
                          <TD width="63%"> <INPUT name=Password type=password id="Password" size=30 maxLength=12> 
                            <font color="#FF0000">*</font> </TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>确认密码(至少6位)：</strong><BR>
                            请再输一遍确认</TD>
                          <TD width="63%"> <INPUT   type=password maxLength=12 size=30 name=PwdConfirm> 
                            <font color="#FF0000">*</font> </TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>密码问题：</strong><BR>
                            忘记密码的提示问题</TD>
                          <TD width="63%"> <INPUT   type=text maxLength=50 size=30 name="Question"> 
                            <font color="#FF0000">*</font> </TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>问题答案：</strong><BR>
                            忘记密码的提示问题答案，用于取回密码</TD>
                          <TD width="63%"> <INPUT   type=text maxLength=20 size=30 name="Answer"> 
                            <font color="#FF0000">*</font> </TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>性别：</strong><BR>
                            请选择您的性别</TD>
                          <TD width="63%"> <INPUT type=radio CHECKED value="1" name=sex>
                            男    <INPUT type=radio value="0" name=sex>
                            女</TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>Email地址：</strong><BR>
                            请输入有效的邮件地址</TD>
                          <TD width="63%"> <INPUT maxLength=50 size=30 name="email"> 
                            <font color="#FF0000">*</font></TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD><strong>公司网址：</strong></TD>
                          <TD width="63%"><INPUT name=home id="home" value="http://" size=30   maxLength=50></TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>公司名称：</strong><BR>
                            您的公司名称</TD>
                          <TD width="63%"> <INPUT name=Comane id="Comane" size=30 maxLength=100></TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD><strong>邮政编码：</strong></TD>
                          <TD width="63%"><input name=Zip id="Zip" size=30 maxlength=20> 
                            <font color="#FF0000">*</font></TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD><strong>联系电话：</strong></TD>
                          <TD width="63%"><input name=Phone id="Phone" size=30 maxlength=20> 
                            <font color="#FF0000">*</font></TD>
                        </TR>
                        <TR class="tdbg" > 
                          <TD width="37%"><strong>传 真：</strong></TD>
                          <TD width="63%"> <INPUT name=Fox id="Fox" size=30 maxLength=50></TD>
                        </TR>
                      </TABLE>
                      <div align="center"> 
                        <INPUT name="reg" type=submit id="reg" value=" 注 册 ">
                          
                        <INPUT name=Reset2 type=reset id="Reset2" value=" 清 除 ">
                      </div>
                    </form></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>