<style type="text/css">
<!--
.bd {
	margin: 0px;
	border: 1px solid #000000;
}
-->
</style>
 <%
if  Request.Cookies("jnw")("userlogin")="" then %> 
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<table width="95%" border="0" cellspacing="0" cellpadding="0" class="bodero">
  <form action="acindex.asp" method="post" name="myform" target="_top" id="myform" onsubmit="return check()">
    <tr> 
      <td colspan="2"><img src="images/h01.jpg" width="182" height="28" border="0"></td>
    </tr>
    <tr> 
      <td width="20">&nbsp;</td>
      <td><font color="#1A4AA4">用户名：</font><font size="3"> 
        <input name="username" type="text" size="10" style="border: 1px solid #C0C0C0">
        </font></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><font color="#1A4AA4">密&nbsp; 码：</font><font size="3"> 
        <input name="password" type="password" size="10" style="border: 1px solid #C0C0C0">
        </font></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td><input name="image" type=image src="images/dl.jpg"  width="70" height="22"> 
        <a href="register_1.asp"> <img border="0" src="images/zc.jpg" width="70" height="22"></a></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td height="38">&nbsp;</td>
      <td><font color="#000000" size="2"><img border="0" src="images/po.jpg" width="10" height="12"> 
        当前在线人 
        <% response.write "数为: " & Application("WhosOn") & " 人" %>
        </font></td>
    </tr>
  </form>
</table>
<div style="line-height:4px;">&nbsp;</div>
<%else%>
<script language="JavaScript">
function changepass(){
	if (cgpass.pass1.value==""){
		alert("请输入原密码");
		cgpass.pass1.focus();
		return false;
	}
	if (cgpass.pass2.value==""){
		alert("请输入新密码");
		cgpass.pass2.focus();
		return false;
	}
	if (cgpass.pass3.value==""){
		alert("请再次输入新密码");
		cgpass.pass3.focus();
		return false;
	}
	if (cgpass.pass2.value!=cgpass.pass3.value){
		alert("两次密码不一致");
		cgpass.pass2.focus();
		return false
	}
}
</script>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="bodero">
  <tr> 
    <td height="30"> <p style="margin: 5px"><font color="#1A4AA4" size="2"><a href="acindex.asp">湖南<span lang="zh-cn">节能网节电中心</span></a></font><font size="2" color="#000000">提醒您：</font></td>
  </tr>
  <tr> 
    <td height="60"> <p style="line-height: 150%; text-indent: 20px; margin-left:5px; margin-right:5px"> 
        <font color="#000000">尊敬的用户：<%= Request.Cookies("jnw")("userlogin")%>，你已经成功登录。</font></p></td>
  </tr>
  <tr> 
    <td height="25">　<font color="#000000" size="2"><img border="0" src="images/po.jpg" width="10" height="12"> 
      </font> <a href="logout.asp">退出登录 </a>
      <div id="Layer1" style="position:absolute; width:178px; height:47px; z-index:1; background-color: #CCCCCC; layer-background-color: #CCCCCC;display:none"> 
          <table width="100%" border="0" cellspacing="5" cellpadding="0" class="bd">
			<form name="cgpass" method="post" action="cgpass.asp" onsubmit="return changepass()">
            <tr> 
              <td width="43%" align="right">旧密码：</td>
              <td width="57%"><input name="pass1" type="password" id="pass18" size="10"></td>
            </tr>
            <tr> 
              <td align="right">新密码：</td>
              <td><input name="pass2" type="password" id="pass27" size="10"></td>
            </tr>
            <tr> 
              <td align="right">确认密码： </td>
              <td><input name="pass3" type="password" id="pass3" size="10"></td>
            </tr>
            <tr align="center"> 
              <td colspan="2"> <input type="submit" name="Submit1" value="修改"> 
                <input type="button" name="Submit2" value="取消" onClick="Layer1.style.display='none'"> 
              </td>
            </tr>
        </form>
          </table>
      </div>
      <img border="0" src="images/po.jpg" width="10" height="12"><a href="#$"  onClick="Layer1.style.display='';cgpass.pass1.focus();">修改密码</a> 
    </td>
  </tr>
  <tr> 
    <td height="25">　<font color="#000000" size="2"><img border="0" src="images/po.jpg" width="10" height="12"> 
      </font><font color="#FF0000" size="2"> <a href="/news.asp?pages=hy">进入会员专区</a> </font></td>
  </tr>
</table>
<%end if%>
