//###################################################################################
// ÇÃ·¡½Ã ¸Þ´ºÀÌµ¿.
//###################################################################################
function goMenu(r_cd){
	var s_ok = "0";
	var s_url = "";
	switch(r_cd){
		//¸ÞÀÎÆäÀÌÁö
		case "00" : s_url = "/index.php"; break;
		
		//about GTM
		case "10" : s_url = "/html/gtm/gtm10.php"; break;
		case "1010" : s_url = "/html/gtm/gtm10.php"; break;
		case "1020" : s_url = "/html/gtm/gtm20.php"; break;
		case "1030" : s_url = "/html/gtm/gtm30.php"; break;
		case "1040" : s_url = "/html/gtm/gtm40.php"; break;
		case "1050" : s_url = "/html/gtm/gtm50.php"; break;
		case "1060" : s_url = "/html/board/list.php?notice_type=Fs"; break;
		
		//Result
		case "20" : s_url = "/html/result/result.php?year=2010&round=1"; break;
		case "2010" : s_url = "/html/result/result.php?year=2010&round=1"; break;
		case "2020" : s_url = "/html/result/result.php?year=2009&round=1"; break;
		case "2030" : s_ok=""; s_url = "/html/result/result.php?year=2008&round=1"; break;
		case "2040" : s_ok=""; s_url = "/html/result/result.php?year=2007&round=1"; break;
		case "2050" : s_url = "/html/result/result_2010_series_point.php"; break;
		
		//Media
		case "30" : s_url = "/html/board/list.php?notice_type=Ds"; break;
		case "3010" : s_url = "/html/board/list.php?notice_type=Ds"; break;
		case "3020" : s_url = "/html/media/media20.php"; break;
		
		//Press
		case "40"	: s_url = "/html/board/list.php?notice_type=Es"; break;
		case "4010" : s_url = "/html/board/list.php?notice_type=Es"; break;
		
		//Board
		case "50"	: s_url = "/html/board/list.php?notice_type=Bs"; break;
		case "5010" : s_url = "/html/board/list.php?notice_type=As"; break;
		case "5020" : s_url = "/html/board/list.php?notice_type=Bs"; break;
		case "5030" : s_url = "/html/board/list.php?notice_type=Cs"; break;
		
		//°í°´¼¾ÅÍ
		case "60"	: s_url = "/html/customer/customer10.php"; break;
		case "6010" : s_url = "/html/customer/customer10.php"; break;	//ÀÌ¿ë¾à°ü
		case "6020" : s_url = "/html/customer/customer20.php"; break;	//°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
		case "6030" : s_url = "/html/customer/customer30.php"; break;	//»çÀÌÆ®¸Ê
		
		//·Î±×ÀÎ
		case "90" : s_url = "/html/login/login.php"; break;
		case "9010" : s_url = "/html/login/login.php"; break;	//·Î±×ÀÎ
		case "9020" : s_url = "/html/login/idpw.php"; break;	//¾ÆÀÌµð, ºñ¹Ð¹øÈ£ Ã£±â
		case "9030" : s_url = "/html/login/logout.php"; break;	//·Î±×¾Æ¿ô
		
		//È¸¿ø°¡ÀÔ
		case "91" : s_url = "/html/join/join10.php"; break;
		case "9110" : s_url = "/html/join/join10.php"; break;	//¾à°üµ¿ÀÇ
		case "9120" : s_url = "/html/join/join20.php"; break;	//Á¤º¸ÀÔ·Â
		case "9130" : s_url = "/html/join/join30.php"; break;	//°¡ÀÔ¿Ï·á
		
		//¸¶ÀÌÆäÀÌÁö
		case "92" : s_url = "/html/mypage/mypage10.php"; break;
		case "9210" : s_url = "/html/mypage/mypage10.php"; break;	//Á¤º¸¼öÁ¤
		case "9220" : s_url = "/html/mypage/mypage20.php"; break;	//È¸¿øÅ»Åð
		
		//±âÅ¸
		case "99" : s_url = "/admin/index.php"; break;  //°ü¸®ÀÚ
		
		
		
	}
	if(s_ok == "0"){
		this.focus();
		window.location.href = s_url;
	}else if (s_ok == "2"){
	}else{
		alert("ÆäÀÌÁö ÁØºñÁßÀÔ´Ï´Ù.\ºÒÆíÀ» µå·Á ÁË¼ÛÇÕ´Ï´Ù.");
	}
}

