var LAYER_LoginWIDTH = 249;
var LAYER_HEIGHT = 279;

function GNB_ProcessCheck(){
	try{
		if(document.getElementById("LL_chkKeyProtect").checked == true){
			CreateCKKeyProObject();	//키보드 보안 Create
		}else{
			ClearCKKeyProObject();	//키보드 보안 Clear
		}
	}catch(e){
	}finally{
		if(document.getElementById("LL_iptID"))
		document.getElementById("LL_iptID").focus();
	}
}

function GNB_Logout()
{
	top.location.href = siteURL_MEMBER + "/login/logout.do?rd=" + escape(location.href);
}

function GNB_THLogin(siteCode)
{	
	URL = siteURL_MEMBER + "/join/expid_conversion_main.do?siteCode="+siteCode;
	window.open(URL ,"thlogin",  "");
}

//로그인 체크 
function GNB_getTHCookie(name){
    var nameOfCookie = name + "=";
    var x = 0;
    while(x <= document.cookie.length)
    {
            var y = (x + nameOfCookie.length);
            if(document.cookie.substring(x,y) == nameOfCookie)
            {
                    if((endOfCookie = document.cookie.indexOf(";",y)) == -1)
                            endOfCookie = document.cookie.length;
                    return unescape(document.cookie.substring(y,endOfCookie));
            }
            x = document.cookie.indexOf(" ",x) + 1;
            if(x == 0)
                    break;
    }
    return "";
}


function GNB_addMember(siteCode)
{
	var url = siteURL_MEMBER + "/join/main.do?siteCode="+siteCode;
	window.open(url, "_member","");
}

function GNB_SearchID(siteCode)
{
	var url = siteURL_MEMBER + "/myinfo/find_id_form.do?siteCode="+siteCode;
	window.open(url, "_member","");

}

function GNB_formCheck(obj)
{
	if (obj.id.value.length <= 0)
	{
		alert('아이디를 입력해 주세요');
		obj.id.focus();
		return false;
	}
	if (obj.password.value.length <= 0)
	{
		alert('비밀번호를 입력해 주세요');
		obj.password.focus();
		return false;
	}

}


