function checkSystemLogin() {
	var User_ID = document.membersLogin.User_ID;
	var Password = document.membersLogin.Password;
	var userType = (document.getElementById('CuserType').checked != true) ? 'B' : 'C';
	if (userType == 'B')
	{
		document.membersLogin.action = 'http://www.lvee.cn/cgishell/golden/corp/login_auth_corp.pl';
	}
	else {
		document.membersLogin.action = 'http://www.lvee.cn/cgishell/golden/login_auth.pl';
	}
	if (User_ID.value == '') {
		alert('用户名不能为空！');
		return false;
	}
	if (Password.value == '') {
		alert('用户密码不能为空！');
		return false;
	}
}


// 获取cookie
function getcookie(sName) {
	var aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++)
	{
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0])
		{
			return unescape(aCrumb[1]);
		}
	}
}
// cookie 值
var User_ID = '';
var Serial_no = '';
var MODULE = '';
if (getcookie('User_ID') && getcookie('Serial_no'))
{
	User_ID = getcookie('User_ID');
	Serial_no = getcookie('Serial_no');
	MODULE = getcookie('MODULE');
}

document.write('    <div class="loginBar">');
document.write('    	<div class="servicePhone">');
document.write('        	<label>服务热线：400-830-0000</label>');
document.write('        	<a href="http://lvee.zoosnet.net/LR/ChatWin.aspx?id=LAR31671888&lng=cn" class="online" target="_blank">在线客服</a>');
document.write('        </div>');
document.write('        <div class="afterLogin" id="logininformation" style="margin: 0; padding: 0;">');
if (User_ID == '' || User_ID == ';')
{
	document.write('<form name="membersLogin" class="login" method="post" action="http://www.lvee.cn/cgishell/golden/login_auth.pl" onsubmit="return checkSystemLogin()"><label class="userType"><input type="radio" name="userType" id="CuserType" checked="checked" />个人用户</label><label class="userType"><input type="radio" name="userType" id="BuserType" />企业用户</label><label>用户名：<input type="text" id="User_ID" name="User_ID" class="text t" value="卡号\用户名" onblur="if(this.value==\'\'){this.value=\'卡号\\用户名\';this.style.color=\'#999\'}" onfocus="this.value=\'\';this.style.color=\'#000\'" /></label><label>密码：<input type="password" name="Password" class="text" style="background-image:url(/images/bg_password.gif);" value="" onblur="if(this.value==\'\'){this.style.backgroundImage=\'url(\/images\/bg_password.gif)\'}" onfocus="this.value=\'\';this.style.backgroundImage=\'\'" /></label><input type="submit" class="btn_login" value="登 录" /><a href="http://www.lvee.cn/cgishell/module/find_pass.pl?Corp_ID=CAN378&MODULE=CAN378_member.htm">找回密码</a><a href="http://www.lvee.cn/cgishell/module/reg.pl?Corp_ID=CAN378&cols=98&MODULE=CAN378_member.htm">注册</a></form>');
}
else {
	document.write('			<div class="links"><a href="http://www.lvee.cn/cgishell/golden/pub/myinfo.pl?User_ID=' + User_ID + '&Serial_no=' + Serial_no + '&MODULE=' + MODULE + '" class="link1">我的账号</a><a href="http://www.lvee.cn/cgishell/golden/pub/report/gift_cg.pl?User_ID=' + User_ID + '&Serial_no=' + Serial_no + '&MODULE=' + MODULE + '" class="link2">积分商城</a><a href="http://www.lvee.cn/cms/bangzhuzhongxin/index.html" class="link3">帮助中心</a></div><strong>' + User_ID + '</strong>，欢迎您登录！<a href="http://www.lvee.cn/cgishell/golden/logout.pl?User_ID=' + User_ID + '&Serial_no=' + Serial_no + '" class="exit">退 出</a>');
}
document.write('		</div>');
document.write('    </div>');
