<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="../inc/function.asp"-->
<!--#include file="checklogin.asp"-->
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改密码</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
ul{margin:0px; padding:0px;}
li{margin:2px; padding:0px;}
-->
</style>
<script type="text/javascript">
function check(obj){
	with(obj){
		if(oldpass.value==""){
			alert("原密码不能为空!");
			oldpass.focus();
			oldpass.select();
			return false;
		}
		if(newpass1.value==""){
			alert("新密码不能为空!");
			newpass1.focus();
			newpass1.select();
			return false;
		}
		if(newpass1.value!=newpass2.value){
			alert("新密码与确认密码不一致!");
			newpass1.focus();
			newpass1.select();
			return false;
		}
		return true;
	}
}
</script>
</head>

<body>
<!--#include file="top.asp"-->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td valign="top">


	  <form action="http://blog.test.com/login.asp?chk=1&amp;fromurl=" method="post" name="form1" target="_blank" id="form1" onsubmit="return check(this)">
	    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
          <tr>
            <td height="28" colspan="2" class="th_title">开通博客</td>
          </tr>
          <tr>
            <td width="34%" class="td_row"><div align="right">用户名：</div></td>
            <td width="66%" class="td_row"><input name="UserName" type="text" id="UserName" size="20" /></td>
          </tr>
          <tr>
            <td class="td_row"><div align="right">密 &nbsp;码：</div></td>
            <td class="td_row"><input name="Password" type="password" id="Password" size="20" /></td>
          </tr>
          <tr>
            <td><div align="center"></div></td>
            <td><input type="submit" name="Submit" value="确定" />
              &nbsp;&nbsp;
              <input type="reset" name="Submit2" value="取消" /></td>
          </tr>
        </table>
      </form>    
</td>
  </tr>
</table>
</body>
</html>
<%
call connclose()
%>