<%@ page language="C#" autoeventwireup="true" inherits="passport_login, s1.chapk.com" %>

<%@ Register Src="../control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!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>
    <title>会员登录_<%=Application["title"]%></title>
    <link rel="stylesheet" type="text/css" href="../css/public.css" />
    <link rel="stylesheet" type="text/css" href="../css/reg.css" />
    <script src="../js/jquery-1.2.6.pack.js" type="text/javascript"></script>
    <script src="../js/index.lib.js" type="text/javascript"></script>
    <script src="../js/nav.js" type="text/javascript"></script> 

    <script type="text/javascript" src="../js/login_check.js"></script>

</head>
<body>
    <uc1:header ID="Header1" runat="server" />
    <div class="zuipin">
        <div class="column">
            <div class="crumbs">
                <label class="green">
                    <a href="../" title="转到首页 ">首页 </a>
                </label>
                >
                <label>
                    用户登录
                </label>
            </div>
        </div>
            
        <div class="zuipin_mod">
            <div class="zuipin_mod_t">
                <div class="zuipin_mod_t_l">
                    用户登录</div>
                <div class="zuipin_mod_t_r">
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="zuipin_mod_c">
                    <div class="porleft">
                        <form id="loginform" action="usercheck.aspx" method="post" onsubmit="return chk_reg();">
                        <p>
                            <span class="regtlx">用户名</span>
                            <input name="username11" type="text" class="inp inw" id="username11" tabindex="1" />
                            <span id="d_user"></span>
                        </p>
                        <p>
                            <span class="regtlx">密码</span>
                            <input name="password11" type="password" class="inp inw" id="password11" tabindex="2" />
                            <span id="d_password"></span>忘记密码?<a href="retrievepassword.aspx">马上找回</a>
                        </p>                       
                        <p>
                            <span class="regtlx">有效期</span>
                            <input type="radio" name="sku" value="0" checked />浏览器进程
                            <input type="radio" name="sku" value="1" />一天
                            <input type="radio" name="sku" value="30" />一个月
                            <input type="radio" name="sku" value="360" />永久 <span id="d_confirmconfirmpassword">
                            </span>
                        </p>
                        <p>
                            <span class="regtlx">&nbsp;</span>
                            <label id="butt" class="butt">
                                <input type="submit" value="马上登录" class="btn_normal" tabindex="3" />
                                <input type="hidden" name="redirect" value="<%=redirect %>" />
                            </label>
                        </p>

                        <script language="javascript">
function out_user(){
	var obj=document.getElementById("d_user");
	var str=document.getElementById("username11").value;
	var chk=true;
	if (str==''){chk=false}
	if (chk){
		obj.className="";
		obj.innerHTML='';
	}else{
		obj.className="d_err";
		obj.innerHTML="用户名不能为空";
	}
	return chk;
}
function out_pass(){
	var obj=document.getElementById("d_password");
	var str=document.getElementById("password11").value;
	var chk=true;
	if (str==''){chk=false}
	if (chk){
		obj.className="";
		obj.innerHTML='';
	}else{
		obj.className="d_err";
		obj.innerHTML="密码不能为空";
	}
	return chk;
}

function chk_reg(){
	var chk=true
	if (!out_user()){chk=false}
    if (!out_pass()){chk=false}
if(chk){
	return true;
	}
	else
	{
		return false;
    }
}
                        </script>

                        </form>
                    </div>
                    <div class="porright">
                        <p>
                            还不是商城会员？<br />
                            <a href="reg.aspx">
                                <img src="../images/s-regbtn.jpg" /></a></p>
                        <div class="tel-tip">
                            <strong>现在免费注册成为商城用户，<br />
                                便能立刻享受便宜又放心的购物乐趣。 </strong>
                        </div>
                    </div>
                </div>
        </div>
    </div>
    <uc2:footer ID="Footer1" runat="server" />
</body>
</html>
