﻿/**弹出框函数**/
function OpenWindown(title, url, w, h) {
    tipsWindown(title, "iframe:" + url, w, h, "true", "", "true", "text");
}

/**申请代理函数**/
function Apply() {

    _517BX.Web.Product.VerfiySession(GetAplyBack);
}
function GetAplyBack(obj) {
    if (obj.value == "0") {
        OpenWindown("快速注册/快速登录", "Register.aspx?do='login'", "396", "330");
    } else {
        OpenWindown('申请代理', 'AplyAgent.aspx', '410', '530');
    }
}
/****************************/

/**登录***/
function Login() {
    if ($("#head_txtName").val() == "") {
        alert("请输入帐号！");
        $("#head_txtName").focus();
        return false;
    }
    if ($("#head_txtPass").val() == "") {
        alert("请输入密码！");
        $("#head_txtPass").focus();
        return false;
    }
}
/*****************************/

/**我的保险箱**/
function MyInfo() {
    _517BX.Web.Product.VerfiySession(GetMyBack);
}
function GetMyBack(obj) {
    if (obj.value == "0") {
        OpenWindown("快速注册/快速登录", "Register.aspx?do='login'&url='MemberCenter.aspx'", "396", "330");
    } else {
        location.href = "MemberCenter.aspx";
    }
}
/*********************/


/*** 退出**/

function Exit() {
    if (confirm("确定是否要退出?")) {
        return true;
    } else {
        return false;
    }
}
