/**
    loginbox.js
    处理登录时的校验及提交数据.
**/
//--- 检查输入是否正确，正确则提交
function check_login(lang, userid, password, form) {
    if( userid == "" || password == "") {
        if (lang == 'EN') alert("must input full field");
        else alert("用户名和用户口令必须输入！");
        return false;
    }
    else {
        form.submit();
        return true;
    }
}

function showNeedInfo(lang) {
    if (lang == "EN") alert('You must login to see advanced information!')
    else alert("请注册会员后使用高级服务功能！");
}
function setPagePosition() {}
