﻿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(name) {
	var cookie_start = document.cookie.indexOf(name);
	var cookie_end = document.cookie.indexOf(";", cookie_start);
	return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
}
// 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="topLinks"><a href="http://t.sina.com.cn/1747000895" class="sinablog" target="_blank">易旅阳光新浪微博</a>|<a href="http://www.lvee.cn/cms/bangzhuzhongxin/index.html"  target="_blank">帮助中心</a>|<a href="http://219.135.189.126:8888" target="_blank">同行登录</a>|<a href="http://www.lvee.cn/eng/index.html" target="_blank">English</a></div>');
document.write('    <div class="mainNav">');
document.write('    	<ul id="Nav">');
document.write('        	<li class="shouye"><a href="http://www.lvee.cn">首&nbsp;&nbsp;&nbsp;&nbsp;页</a></li>');
document.write('            <li class="guoneijipiao"><a href="http://www.lvee.cn/cgishell/module/air/air_res.pl?User_ID='+User_ID+'&Serial_no='+Serial_no+'&Corp_ID=CAN378&org=CAN&via=CAN&dst=PEK&MODULE=CAN378_air.htm">国内机票</a></li>');
document.write('            <li class="guojijipiao"><a href="http://www.lvee.cn/cgishell/module/airinte/airinte_list.pl?Corp_ID=CAN378&MODULE=CAN378_inter.htm">国际机票</a></li>');
document.write('            <li class="jiudianyuding"><a href="http://hotel.lvee.cn:9090/HBE/Hotel/WebHotelEntranceAction.action?Corp_ID=CAN378&MODULE=CAN378_hotel_new.htm">酒店预订</a></li>');
document.write('            <li class="guibingfuwu"><a href="http://www.lvee.cn/vip/service.html">贵宾服务</a></li>');
document.write('            <li class="tehuijingxuan"><a href="http://www.lvee.cn/hot/hot.html">特惠精选</a></li>');
document.write('            <li class="lvyoudujia"><a href="http://www.lvee.cn/cgishell/module/tour/tour_query.pl?Corp_ID=CAN378&MODULE=CAN378_tour.htm">旅游度假</a></li>');
document.write('            <li class="qichezulin"><a href="http://www.lvee.cn/cgishell/module/auto/Auto_query.pl?Corp_ID=CAN378&MODULE=CAN378_auto.htm">汽车租赁</a></li>');
document.write('            <li class="wangshangzhiji"><a href="http://www.lvee.cn/zhiji">网上值机</a></li>');
document.write('            <li class="qianzheng"><a href="http://www.lvee.cn/cgishell/module/visa/visa_manager.pl?&Corp_ID=CAN378&MODULE=CAN378_visa.htm">签&nbsp;&nbsp;&nbsp;&nbsp;证</a></li>');
document.write('        </ul>');
document.write('    </div>');
document.write('    <div class="loginBar">');
document.write('    	<div class="servicePhone">');
document.write('        	<label>服务热线：400-830-0000</label>');
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(http://www.lvee.cn/images/bg_password.gif);" value="" onblur="if(this.value==\'\'){this.style.backgroundImage=\'url(http:\/\/www.lvee.cn\/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=CAN378_manage.htm" 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>');
