<!--#include file="../JaJa.Scnn.asp" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="7f2a5997516c0c7e44afa5d41f6fe66f.js"></script>
<link href="../images/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
/* CSS Document */
html{
OVERFLOW-Y: hidden; OVERFLOW-X: hidden; border:0px; margin:0px;
}
body,td,th {
OVERFLOW-Y: hidden; OVERFLOW-X: hidden; border:0px; margin:0px;
	font-size: 12px; margin:0px; background-color:#121212; color:#999999;font-family:Arial, Helvetica, sans-serif; background:#000000;
}

a{ color:#a2d811; text-decoration:none;}
a:hover{ color:#ff6600; text-decoration:underline;}
img{ border:0px;}
.boxbg{ background:url(title_bg.png) -0px -28px; height:30px; padding-top:5px;}
.cd{ float:right; margin-top:-15px; margin-right:4px; cursor:hand;}
.lc{ padding-left:8px;}
.ipt{ width:130px; height:18px; background:url(title_bg.png) -0px -86px; border:1px #666666 solid; padding:2px; color:#999999; font-family:Arial, Helvetica, sans-serif;}
-->
</style>
<script language="javascript">
document.oncontextmenu = function(){return false;}       //
document.onselectstart = function(){return false;}      //
function ureg()
{
 window.open('../ui/UserRegister.Asp');
 //window.parent.location.href='../ui/UserRegister.Asp';
}
function upass()
{
 window.open('../ui/GetLostedPassword.Asp');
 //window.parent.location.href='../ui/GetLostedPassword.Asp';
}

function checkusername(name)
{
	if (name=="")
	{
	   var divobj = document.getElementById("divusername");
       divobj.innerHTML = "<font color=red>请输入用户名!</font>";
		return false;
	}
	if (name.length>16 |name.length<4)
	{
	   var divobj = document.getElementById("divusername");
       divobj.innerHTML = "<font color=red>长度不正确!</font>";
		return false;
	}
	else
	{

		  var divobj = document.getElementById("divusername");  
		   divobj.innerHTML = "<font color='red'>√ 检查通过。</font>";			 
			return true;
	}
}
function checkpassword(password)
{
	if (password=="")
	{
	   var divobj = document.getElementById("divpassword");
       divobj.innerHTML = "<font color=red>请输入密码!</font>";
		return false;
	}
	if (password.length>16 |password.length<4)
	{
	   var divobj = document.getElementById("divpassword");
       divobj.innerHTML = "<font color=red>长度不正确!</font>";
		return false;
	}
	else
	{

		  var divobj = document.getElementById("divpassword");  
		   divobj.innerHTML = "<font color='red'>√ 检查通过。</font>";			 
			return true;
	}
}
function checkbox()
{
if (! document.form1.addbox.checked){
		   var divobj = document.getElementById("checkbox");  
		   divobj.innerHTML = "";
	}
	else{
	       var divobj = document.getElementById("checkbox");  
		   divobj.innerHTML = "<font color='red'>公共场所请勿选择此项！</font>";		
	}
}
function CheckF()
{   
    var L=document.form1;
	var Fla=false;
	var A= checkusername(L.username.value);
	var B= checkpassword(L.password.value);
	Fla= A&&B;
	if(!Fla)
	{
		alert("请输入用户名和密码！");
		return false;
	}
	else
	{
		return true;
	}
}
</script>
<%
Dim UserName,Uid,ujf,uvip,utime,ulc
UserName=Request.Cookies("qvodcms")("UserName")
Uid=PE_Clng(Request.Cookies("qvodcms")("Uid"))'会员ID
ujf=Request.Cookies("qvodcms")("Ujf")'会员积分
uvip=Request.Cookies("qvodcms")("Uvip")'vip状态
utime=Trim(Request.Cookies("qvodcms")("Utime"))'服务时间
ulc=Request.Cookies("qvodcms")("Ulc")'会员名称
upic=Request.Cookies("qvodcms")("UPic")'会员头像
%>
</head>
<body>
<%
if Len(UserName)<6 or UserName="" or Uid<0  or utime="" or uvip="" Then
%>
<form id="form1" name="form1" method="post" action="../Ui/LoginCheckcode.asp?reurl=/cs/login.asp" onsubmit="return CheckF()">
<table width="283" border="0" align="center" cellpadding="0" cellspacing="0" class="box" style="margin-top:10px;">
  <tr>
    <td width="57" height="28" class="lc">用户名：</td>
    <td width="226"><input name="username" class="ipt" type="text" id="username" maxlength="16" onblur=checkusername(this.value) /> <span id="divusername"></span></td>
  </tr>
  <tr>
    <td height="28" class="lc">密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
    <td><input name="password"  class="ipt" type="password" id="password" maxlength="16"  onblur=checkpassword(this.value) /> <span id="divpassword"></span></td>
  </tr>
  <tr>
    <td height="20" class="lc">记住我：</td>
    <td><input name="addbox" onclick="checkbox()" type="checkbox" id="addbox" style="margin-left:-4px;" value="1"  />
    记住我 <span id="checkbox"></span></td>
  </tr>
  <tr>
    <td height="40" colspan="2"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="30%"><input type="image"  src="images/login.jpg" name="button" id="button" />
      </td>
        <td width="70%"><a href="javascript:ureg()">免费注册</a> <a href="javascript:upass()">找回密码</a></td>
      </tr>
    </table></td>
    </tr>
</table>

</form>
<%
Else
REsponse.Write "<div align=center><BR><BR>您已经登陆了！<input type=""hidden"" name=""wwwlogin"" value=""1""><input type=""hidden"" name=""qvodcmsuser"" value=""您好:"&ulc&"|"&ReplaceHtml(UserSv(DateAdd("m", 0,uvip)))&"""></div>"
End IF
%>
</body>
</html>
