<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	action=Trim(Request.Form("action"))
	if action="reg" then
		flag=Trim(Request.Form("flag"))
		if flag="company" then
			Response.Redirect "creg.asp"
		elseif flag="person" then
			Response.Redirect "preg.asp"
		elseif flag="school" then
			Response.Redirect "sreg.asp"
		elseif flag="train" then
			Response.Redirect "treg.asp"
		else
			response.write"<script language=JavaScript>alert('请选择您要注册的用户类型');"    
			response.write"this.location.href='reg.asp';</script>"
		end if
	end if
%>
<style type="text/css">
<!--
.table_color {
	border: 1px dashed #FE8C08;
}
-->
</style>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--会员注册</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<style type="text/css">
<!--
.STYLE6 {	color: #0099CC;
	font-size: 12pt;
	font-weight: bold;
	}
.STYLE2 {	color: #ffffff;
	font-size: 14pt;
	font-weight: bold;
}
.style193 {color: #FF6600}
.style193 {color: #FF6600}
body,td,th {
	font-size: 12px;
}
body {
	background-image: url(images/preg/indextopbackground.gif);
	background-repeat:repeat-x;
	margin-left: 0px;
	margin-top: 24px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script language=JavaScript src="js/preg.js"></script>
<script language="JavaScript" type="text/javascript" src="js/keyfilter.js"></script>
<script type="text/javascript" src="js/checkpwd.js"></script>
<link href="css/preg.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkuserinfo()
{
    if(checkspace(document.userinfo.uname.value) || document.userinfo.uname.value.length < 5 || document.userinfo.uname.value.length >16) {
	document.userinfo.uname.focus();
    alert("用户名长度不能为空,在5位到16位之间,请重新输入！");
	return false;
  }
    if(checkspace(document.userinfo.pwd.value) || document.userinfo.pwd.value.length < 6 || document.userinfo.pwd.value.length >16) {
	document.userinfo.pwd.focus();
    alert("密码长度不能为空,在6位到16位之间,请重新输入！");
	return false;
  }
    if(document.userinfo.pwd.value != document.userinfo.pwd1.value) {
	document.userinfo.pwd.focus();
	document.userinfo.pwd.value = '';
	document.userinfo.pwd1.value = '';
    alert("两次输入的密码不同，请重新输入！");
	return false;
  }

 if(document.userinfo.email.value.length!=0)
  {
    if (document.userinfo.email.value.charAt(0)=="." ||        
         document.userinfo.email.value.charAt(0)=="@"||       
         document.userinfo.email.value.indexOf('@', 0) == -1 || 
         document.userinfo.email.value.indexOf('.', 0) == -1 || 
         document.userinfo.email.value.lastIndexOf("@")==document.userinfo.email.value.length-1 || 
         document.userinfo.email.value.lastIndexOf(".")==document.userinfo.email.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.userinfo.email.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.userinfo.email.focus();
   return false;
   }
   if(checkspace(document.userinfo.question.value)) {
	document.userinfo.question.focus();
    alert("对不起，请填写密码提问！");
	return false;
  }
   if(checkspace(document.userinfo.answer.value)) {
	document.userinfo.answer.focus();
    alert("对不起，请填写密码提问的答案！");
	return false;
  }
   if(checkspace(document.userinfo.code.value)) {
	document.userinfo.code.focus();
    alert("对不起，请填写验证码！");
	return false;
  }
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
<style type="text/css">
<!--
.STYLE7 {color: #FF0000}
-->
</style>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top_reg.asp"-->
    <table width="977" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FE8C08">
              <tr>
                <td height="30">&nbsp;</td>
              </tr>
          </table></td>
        </tr>
</table>
 <table width="977" border="0" align="center" cellpadding="0" cellspacing="0" class="table_color">
<form name="userinfo" id="userinfo" method="post" action="?">
<input name="action" type="hidden" value="reg">
        <tr>
          <td>
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="62" align="center"><img src="images/reg/09.jpg" width="36" height="49" /></td>
              <td width="414" align="left"><p><img src="images/reg/010.jpg" width="90" height="17" /></p></td>
              <td width="274" valign="bottom"><table width="250" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr align="center">
                    <td><table width="80" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="27" align="center"><strong><img src="images/reg/12.jpg" width="13" height="13" /></strong></td>
                          <td width="53" class="hs1"><strong class="hs_14">第一步</strong></td>
                        </tr>
                    </table></td>
                    <td><table width="80" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="27" align="center"><img src="images/reg/11.jpg" width="13" height="13" /></td>
                          <td width="53" class="black_01">第二步</td>
                        </tr>
                    </table></td>
                    <td><table width="80" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="27" align="center"><img src="images/reg/11.jpg" width="13" height="13" /></td>
                          <td width="53" class="black_01">完成</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="3" bgcolor="#F63C00"><img src="images/reg/spacer.gif" width="1" height="1" /></td>
                    <td height="3" bgcolor="#FFFFFF"><img src="images/reg/spacer.gif" width="1" height="1" /></td>
                    <td height="3"><img src="images/reg/spacer.gif" width="1" height="1" /></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td height="1" colspan="3" bgcolor="#F63C00"><img src="images/reg/spacer.gif" width="1" height="1" /></td>
            </tr>
          </table>
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="100%" align="left"><br />
                  <table width="90" border="0" align="center" cellpadding="0" cellspacing="0" background="images/reg/007.gif">
                    <tr valign="top">
                      <td colspan="2">
					  <table width="473" height="29" border="0" cellpadding="0" cellspacing="0" background="images/reg/006.gif">
                          <tr>
                            <td width="53">&nbsp;</td>
                            <td width="118" align="center" class="jh_bt_14">请选择用户类型</td>
                            <td width="302">&nbsp;</td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td width="66" height="30">&nbsp;</td>
                      <td width="407" height="30" align="left"><br/>
                          <table width="400" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26" class="black_01"><input type="radio" name="flag" value="person" /></td>
                              <td width="74" height="30" class="black_01">个人用户</td>
                              <td width="300" class="black_01">&nbsp;</td>
                            </tr>
                            <tr>
                              <td class="black_01"><input type="radio" name="flag" value="company" /></td>
                              <td height="30" class="black_01">企业用户</td>
                              <td class="black_01">&nbsp;</td>
                            </tr>
                            <tr>
                              <td class="black_01"><input type="radio" name="flag" value="train" /></td>
                              <td height="30" class="black_01">培训用户</td>
                              <td class="black_01">&nbsp;</td>
                            </tr>
                            <tr>
                              <td class="black_01"><input type="radio" name="flag" value="school"/></td>
                              <td height="30" class="black_01">院校用户</td>
                              <td class="black_01">&nbsp;</td>
                            </tr>
                          </table>
                        <br>
                          <span class="orange">如有疑问，请拨打服务电话：<%=tel%></span><br>
                          <font color="#990000"><b> </font> </td>
                    </tr>
                    <tr valign="bottom">
                      <td height="11" colspan="2"><img src="images/reg/008.gif" width="473" height="11" /></td>
                    </tr>
                </table>
                <br />
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><input type="image" name="Submit" value="提交" src="images/reg/009.gif"></td>
                    </tr>
                </table>
				  <br />
			  </td>
            </tr>
          </table>
		  <table width="977" height="2" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FF6600">
		  <tr><td><img src="../images/spacer.gif" width="1" height="1" /></td></tr></table>
		  </td>
	    </tr>
</form>
</table>
<!--#include file="end.asp"-->