// 플래시 링크 *****************************************************************
function ChangeUrl(mainActive, subActive, lang_cd)
{
	var str_url				= "";
	var target				= "";

	//alert(mainActive + ", " + subActive + ", " + lang_cd);

	if (mainActive == 0)
	{
		switch(subActive)
		{
			case 0:			str_url = "USR_main.asp??=IP/MAIN/index"; break;
		}
	}
	else if (mainActive == 1)
	{
		switch(subActive)
		{
			case 1:			str_url = "USR_main.asp??=IP/PRACTICE/list"; break;
		}
	}
	else if (mainActive == 2)
	{
		switch(subActive)
		{
			case 1:			str_url = "USR_main.asp??=IP/MEMBER/search"; break;
		}
	}
	else if (mainActive == 3)
	{
		switch(subActive)
		{
			case 1:			str_url = "USR_main.asp??=IP/NEWS/list"; break;
			case 2:			str_url = "USR_main.asp??=IP/NEWS/I_AWARD/list"; break;
			case 3:			str_url = "USR_main.asp??=IP/NEWS/I_NEWS/list"; break;
			case 4:			str_url = "USR_main.asp??=IP/NEWS/I_LETTER/list"; break;
		}
	}
	else if (mainActive == 4)
	{
		switch(subActive)
		{
			case 1:			str_url = "USR_main.asp??=IP/SETPAGE/view&menu_no=20"; break;
			case 2:
				if (lang_cd == "jp")
					str_url = "USR_main.asp??=IP/PROBONO/I_PROBONO/list";
				else
					str_url = "USR_main.asp??=IP/SETPAGE/view&menu_no=20";
				break;
			case 3:
				if (lang_cd == "gr" || lang_cd == "fr")
				{
					lang_cd	= "en";
					target = "_blank";
				}
				str_url = "USR_main.asp??=IP/PROBONO/I_PROBONO/list"; break;
		}
	}
	else if (mainActive == 5)
	{
		switch(subActive)
		{
			case 1:
				if (lang_cd == "gr")
				{
					lang_cd	= "en";
					target	= "_blank";
				}

				str_url = "USR_main.asp??=IP/SETPAGE/view&menu_no=14"; break;
			case 2:			str_url = "USR_main.asp??=IP/SETPAGE/view&menu_no=15"; break;
		}
	}
	else if (mainActive == 6)
	{
		switch(subActive)
		{
			case 1:			str_url = "USR_main.asp??=IP/SETPAGE/view&menu_no=16"; break;
			case 2:			str_url = "USR_main.asp??=IP/SETPAGE/view&menu_no=109"; break;
		}
	}

	if (target != "")
		window.open(str_url + "&lang_cd=" + lang_cd, target);
	else if (str_url != "")
		location.href = str_url + "&lang_cd=" + lang_cd;
}

