show_userinfo.innerHTML=" 登录
";var group=getCookie2("mlgroupid");
var WebUrl="/";
$("#login-sub").live('click',function(){
$('#errmsg').hide();
var user=$("#logusername").val(); //获取用户名输入框的值
var pass=$("#logpassword").val(); //获取密码输入框的值
if(document.getElementById("keeplogin").checked==true){
var lifetime=315360000;
}
if(user==""){
$('#errmsg').show().html("用户名不能为空!");
$("#username").focus();
return false
};
if(user=="输入用户名"){
$('#errmsg').show().html("用户名不能为空!");
$("#username").focus();
return false
};
if(pass==""){
$('#errmsg').show().html("密码不能为空!");
$("#password").focus();
return false
};
$.ajax({
type:"POST",url:WebUrl+"e/member/AjaxLog/",dataType:"html",data:{
'username':user,'password':pass,enews:'login','lifetime':lifetime //提交字段
}
,beforeSend:function(){
$('#errmsg').show().html(' 正在登陆...')
}
,success:function(data){
if(data=='failuserid'){
$('#errmsg').show().html('用户名错误!')
}
else if(data=='failpassword'){
$('#errmsg').show().html('密码错误!')
}
else if(data=='failcheck'){
$('#errmsg').show().html('你的账号还没有激活,重发激活邮件!')
}
else{
$("#errmsg").hide();
$('#show_userinfo').show().html(data);
$("#lean_overlay").fadeOut(200);
$("#js_login").hide();
$('#shortinfo').html(' 退出')
}
}
})
});
function UserDown(classid,id){
var url1='/e/DownSys/play/downit1.php?classid='+classid+'&id='+id+'&pathid=';
var url='/e/DownSys/play/downit.php?classid='+classid+'&id='+id+'&pathid=';
var isiPad = navigator.userAgent.match(/iPad|iPhone|Linux|Android|iPod/i) != null;
if(group==1){
if(confirm("\u53ea\u6709\u0056\u0049\u0050\u7528\u6237\u53ef\u4ee5\u4e0b\u8f7d\uff0c\u5347\u7ea7\u6210\u4e3a\u0056\u0049\u0050")){
window.location.href='/e/member/buygroup/';
}else{return;}
}else if(group==2){
if(isiPad){open_without_referrer(url);} else{
window.open(url1, 'newwindow', 'height=100, width=100, top=200, left=100');
}
}else{
if(confirm('\u0076\u0069\u0070\u4f1a\u5458\u624d\u80fd\u4e0b\u8f7d\u89c6\u9891\uff0c\u8bf7\u5148\u767b\u5f55')){
AjaxLog();
}else{return;}
}
}
function viewDown1(classid,id){
var url='/viphy/'+classid+'-'+id+'.html';
if(group > 0){
document.getElementById("iFrame1").src = url;
}else{
if(confirm('\u666e\u901a\u4f1a\u5458\u767b\u5f55\u5c31\u80fd\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891')){
AjaxLog();}
else{return;}
}
}
function viewDown(classid,id){
var url='/viphy/'+classid+'-'+id+'.html';
if(group==1){
if(confirm("\u4f60\u8fd8\u4e0d\u662f\u0076\u0069\u0070\u4f1a\u5458\uff0c\u662f\u5426\u5347\u7ea7\u6210\u4e3a\u0076\u0069\u0070\u4f1a\u5458\u003f")){
document.getElementById("iFrame1").src ='/e/member/buygroup/';
}else{return;}
}else if(group==2){
document.getElementById("iFrame1").src = url;
}else{
if(confirm('\u0056\u0049\u0050\u4f1a\u5458\u624d\u80fd\u89c2\u770b\u5b8c\u6574\u7248\u89c6\u9891')){
AjaxLog();
}else{return;}
}
}
function viewstop(){
if(group==2){return;}else{
if(confirm('\u975e\u0076\u0069\u0070\u4f1a\u5458\u6700\u591a\u8bd5\u770b\u0033\u5206\u949f\uff0c\u0076\u0069\u0070\u4f1a\u5458\u5168\u7ad9\u65e0\u9650\u5236\uff0c\u662f\u5426\u5347\u7ea7\u4e3a\u0076\u0069\u0070\u4f1a\u5458\u003f')){
document.getElementById("iFrame1").src ='/e/member/buygroup/';
}else{return;}
}
}
function renew(classid,id){
var url='/view/'+classid+'-'+id+'.html';
document.getElementById("iFrame1").src =url;
}
function open_without_referrer(link){document.body.appendChild(document.createElement('iframe')).src='javascript:"");
function AjaxLog(){document.getElementById('AjaxLog').click();switchTag('_xka','_xka_list',1,2,'conxk1','conxk2');}$('.close').click(function(){$("#lean_overlay").fadeOut(200);$("#js_login").hide();});