
function UserAuth(rePath)
{
	top.location.href = rePath;
}


function UserLoginChkInfo(repath)
{
	var ensnVal = getCookie("ensn");
	var user_idVal = getCookie("user_id");

	if(ensnVal == "" || user_idVal == "")
	{
		if(confirm("·Î±×ÀÎÈÄ °¡´ÉÇÕ´Ï´Ù.\n\n·Î±×ÀÎ ÇÏ½Ã°Ú½À´Ï±î?"))
		{
			repath = repath.replace("?", "||");
			
			var idxVal = repath.indexOf("&");
			for(i=1; i++; i>0)
			{
				repath = repath.replace("&", "|");
				
				idxVal = repath.indexOf("&");
				if(idxVal < 0) break;
			}
			
			location.href = "/hkcommon/login/login.aspx?path=" + repath;
			window.event.cancelBubble = false;
			return false;
		}
	}
	else
	{
		return true;
	}

	window.event.cancelBubble = false;
	return false;
}

