﻿function fnQuickLogin() 
{
    if ($("uc_account").value.length == 0) {
        alert("请输入账号！");
        $("uc_account").focus();
        return;
    }
    if ($("uc_pwd").value.length == 0) {
        alert("请输入登录密码！");
        $("uc_pwd").focus();
        return;
    }
    var plat = $("uc_platForm").value;

//    var re = /^[1-9]+[0-9]*]*$/;
//    if (re.test($("uc_account").value)) {
//        if (parseInt($("uc_account").value) > 9999) {
//            if (confirm("您可能是腾讯回归的老玩家，如果是请在帐号后加 .qq，例如12345678.qq")) {
//                $("uc_account").focus();
//                return;
//            }
//        }
//    }
    
    caller(uc_AbsPath+"/user/userlogin.aspx?ucflag=uclogin", { account: $("uc_account").value.trim(), pwd: $("uc_pwd").value.trim(),plat:plat});
    
}

function fnShowQuickLogin()
{
    uc_WinLogin.show();
    $("uc_account").focus();
}

function fnkeyDown(e) {
    evt = (e) ? e : ((window.event) ? window.event : null)
    var key = evt.keyCode ? evt.keyCode : evt.which;
    if ((key == 13 || key == 10)) {
        //按下了回车键
        fnQuickLogin();
        return false;
    }
}
function success() {
    uc_WinLogin.close();
    location.reload();
}