<!--  
		var loginWin = parent.opener ? parent.opener.parent.top : parent.top;

		try{
			var href = loginWin.location.href;
		}
		catch(e){
			loginWin = parent.top;
		}

		//var auto_next_url = encodeURIComponent(loginWin.location.href.replace("", "").replace("Result", "").replace("OK", ""));
/*
		function funcLoginSubmitOK(){
			var accountnameObj = document.all["accountname"];
			var passwdObj = document.all["passwd"];

			var submitOK = false;

			accountnameObj.value = funcTrim(accountnameObj.value).toLowerCase();
			passwdObj.value = funcTrim(passwdObj.value).toLowerCase();

			if(!accountnameObj.value || accountnameObj.value == "아이디"){
				alert("계정을 입력해 주세요.");
				accountnameObj.select();
				accountnameObj.focus();
			}
			else if(!passwdObj.value){
				alert("비밀번호를 입력해 주세요.");
				passwdObj.select();
				passwdObj.focus();
			}
			else{
				submitOK = true;
			}

			return submitOK;
		}

		function funcGoLoginOK(){
			var submitOK = false;

			submitOK = funcLoginSubmitOK();

			if(submitOK == true){
				funcSubmitForm("formLogin", "hiddenWin", "https://www.worldofwarcraft.co.kr/login/login.do");
			}

            return submitOK;
		}
*/
		function funcGoLogoutOK(next_url){
			var auto_next_url = "";

			if(next_url)
				auto_next_url = next_url;
			else{
				next_url = funcGetNextUrl(loginWin.location.href);
				auto_next_url = encodeURIComponent(next_url);
			}

			var hiddenWinObj = window.frames["hiddenWin"];

			if(hiddenWinObj){
				hiddenWinObj.location.replace("http://www.worldofwarcraft.co.kr/member/logoutOK.do?next_url=" + auto_next_url);
			}
			else{
				loginWin.location.replace("http://www.worldofwarcraft.co.kr/member/logoutOK.do?next_url=" + auto_next_url);
			}
		}

		function funcGetNextUrl(href){
			var next_url = href.replace("http://www.worldofwarcraft.co.kr", "").replace("Result", "").replace("OK", "");

			if(next_url.indexOf("/login") > -1 || next_url.indexOf("/myworld/account") > -1 || next_url.indexOf("/myworld/withdrawal/") > -1 || next_url.indexOf("/member") > -1)
				next_url = "";

			return next_url;
		}

		function funcSwitchPage(){
			var favorityObj = document.all['favority'];
			var winObj = parent.top;

			if(favorityObj && favorityObj.options[favorityObj.selectedIndex].value != ''){
				winObj.location.href = favorityObj.options[favorityObj.selectedIndex].value;
			}
		}
		
		function funcSwitchAccount(){
			var accObj = document.all['accList'];
			var winObj = parent.top;

			if(accObj && accObj.options[accObj.selectedIndex].value != ''){
				winObj.location.href = '/myworld/account/change-account.do?accountName='+accObj.options[accObj.selectedIndex].value;
			}
		}

		function funcInitLoginAfterAea(){
			funcMakeFavority();

			var favorityObj = document.all["favority"];

			if(favorityObj){
				favorityObj.style.behavior ="url(/common/js/wow/selectBox.htc)";
				if (mainSub=="main") favorityObj.style.width = 177;
				else if (mainSub=="sub") favorityObj.style.width = 154;
				favorityObj.style.height = 18;
				favorityObj.style.fontSize = "8pt";
				favorityObj.style.color = "#7A7A7A";
				favorityObj.style.backgroundColor = "black";
			}
		}

		function funcSetFavorityMenu(menu_code){
			var idx = menu_code.split("_");
			var arr = favority_arr;
			var menu;

				if(idx && idx.length > 0){
					for(var i=0; i < idx.length; i++){			
						if(i == idx.length -1){
							menu = arr[idx[i]];

							//alert(menu[0]);
						}

						arr = (arr[idx[i]])[2];
					}
				}

			return menu;
		}

		function funcMakeFavority(){
			var favority_str = getCookie(cookieNmUFL);

			if(favority_str){
				var favorityObj = document.all["favority"];
				var menu_code_arr = favority_str.split("#");
				var menu_code;

				for(var i=0; i < menu_code_arr.length; i++){
					if(menu_code_arr[i]){
						menu_code = funcSetFavorityMenu(menu_code_arr[i]);
						funcMakeOption(favorityObj, menu_code[0], menu_code[1]);
					}
				}
			}
		}
//-->
