
function findId() {
    //var x = (screen.availWidth / 2) - 382/2;
    //var y = (screen.availHeight/ 2) - 232/2;
    //window.open("/popup/login_findid.jsp", '', "resizable=no, menubar=no, toolbar=no, status=no, scrollbars=no, width=382px, height=232px, top="+ y +", left="+x);
    window.location.href = "/customerFind.do?method=findIdinit";
}

function findPw() {
    //var x = (screen.availWidth / 2) - 382/2;
    //var y = (screen.availHeight/ 2) - 232/2;
    //window.open("/popup/login_findpw.jsp", '', "resizable=no, menubar=no, toolbar=no, status=no, scrollbars=no, width=382px, height=232px, top="+ y +", left="+x);
    window.location.href = "/customerFind.do?method=findpwinit";
}

function login() {
    var form = document.forms[0];

    var id       = form.id.value;
    var password = form.password.value;

    if (isEmpty(id)) {
        alert("Enter the id !");
        form.id.focus();
        return;
    }

    if (isEmpty(password)) {
        alert("Enter the password !");
        form.password.focus();
        return;
    }

    form.method.value = "login";
    form.submit();
}

function loginError(errorType, msg, url) {
    //alert(errorType);
    //alert(msg);
    var type     = encodeURI(errorType);
    var message  = encodeURI(msg);

    var x = (screen.availWidth / 2) - 382/2;
    var y = (screen.availHeight/ 2) - 232/2;
    window.open(url, '', "resizable=no, menubar=no, toolbar=no, status=no, scrollbars=no, width=382px, height=232px, top="+ y +", left="+x);
}

function adminOpen() {
    window.open("/admintool/phone.do?method=init", 'administratorWindow');
}