<!--#include file="0.asp"-->
 <script language="javascript">
	<!--//
	function checksignup() {

		if ( document.form.adminname.value == '' ) {
			window.alert('请输入名称!!');
			document.form.adminname.focus();
			return false;
		}
		if ( document.form.adminpass.value == '' ) {
			window.alert('请输入密码!!');
			document.form.adminpass.focus();
			return false;
		}
		if ( document.form.adminpass2.value == '' ) {
			window.alert('请输入确认密码!!');
			document.form.adminpass2.focus();
			return false;
		}
		if ( document.form.adminpass2.value != document.form.adminpass.value) {
			window.alert('密码与确认密码不一致!!');
			document.form.adminpass2.focus();
			return false;
		}
			return true;
			}
	//-->
	</script>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<body>
<center>
  <p>&nbsp;</p>
  <form action="tianjia-ok.asp" method="post" name="form" id="form">
       
    <table width="350" align="center">
      <tr> 
        <td height="25" colspan="2" align="center" valign="middle" bgcolor="#CCCCCC"><b><font
      color="#FF9966">增加管理员</font></b></td>
      </tr>
      <tr> 
        <td width="109" height="25" align="center" valign="middle" bgcolor="#f1f1f1">管理名称</td>
        <td width="229" valign="middle" bgcolor="#f1f1f1"><input name="adminname" type="text" class="wenbenkuang" id="adminpass3" size="25" maxlength="50"></td>
      </tr>
      <tr> 
        <td height="25" align="center" valign="middle" bgcolor="#f1f1f1">管理密码</td>
        <td valign="middle" bgcolor="#f1f1f1"> <input name="adminpass" type="password" class="wenbenkuang" id="adminpass" size="25" maxlength="50"></td>
      </tr>
      <tr> 
        <td height="25" align="center" valign="middle" bgcolor="#f1f1f1">密码确认</td>
        <td valign="middle" bgcolor="#f1f1f1"><input name="adminpass2" type="password" class="wenbenkuang" id="adminpass2" size="25" maxlength="50"></td>
      </tr>
      <tr> 
        <td height="25" align="center" valign="middle" bgcolor="#f1f1f1">&nbsp;</td>
        <td valign="middle" bgcolor="#f1f1f1"> <input type="submit" name="Submit" value="添加" class="go-wenbenkuang"  ONCLICK="javascript:return checksignup()"> 
          <input type="button" name="Submit2" value="返回" class="go-wenbenkuang" onClick="history.go(-1)"> 
        </td>
      </tr>
    </table>
    </form>
</center>
