<!--
	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;
	}

	var loginWin = parent.opener ? parent.opener.parent.top : parent.top;
	var closeWinOK = false;
	var next_url = "";
	var auto_next_url = "";

	try{
		next_url =  funcGetNextUrl(loginWin.location.href);
		auto_next_url = encodeURIComponent(next_url);
		closeWinOK = true;
	}
	catch(e){
		loginWin = parent.top;
	}

	loginWin.location.replace("http://www.worldofwarcraft.co.kr/login/login.do?next_url=" + auto_next_url);

	if(closeWinOK && parent.opener){
		window.close();
	}
//-->
