/******************************************************************************
* FileName	  : common_url.js
* Author	  : 윤재선
* Date		  : 2007.03.28
* Description :
******************************************************************************/
/************************* MODIFICATIONLOG ***********************************
* Ver		Date			Author		Modification
* 0.1	    2007.04.18		윤재선	    파일 초기 작성
* ............................................................................
* 2.4       2007.09.28      이근호      function fnLogin(objForm){}
                                        function fnCommitteeLogin(objForm){}
                                        function fnLogout(objForm){} 삭제후 각
                                        프로그램(jsp,html)에 추가
******************************************************************************/

// 타이틀---------
document.title="www.sktelecom.com";
// ---------타이틀
// 변수 정의
document.write("<script type='text/javascript' src='/js/common_const.js'></script>");

document.write("<script type='text/javascript' src='/js/common_url.js'></script>");
document.write("<script type='text/javascript' src='/js/makePCookie.js'></script>");


// 상단네비---------

var globalHn="";
var globalSn="";
var globalCn="";

function Mnav(hn,sn,cn){
globalHn=(hn)?hn:"";
globalSn=(sn)?sn:"";
globalCn=(cn)?cn:"";
var FlaUrl="/flash/sub_navi.swf";
var FlaParam="hn="+hn;
FlashObj('mnavFla',FlaUrl,FlaParam,'780','258','#FFFFFF','transparent')
document.write("\
	<div style='position:absolute;left:30;top:0;width:186px;height:60px;z-index:10;'><script>Flash('logoFla','/flash/logo.swf','186','60','#FFFFFF','transparent')</script></div>\
	<div style='position:absolute;left:30;top:60;z-index:10;'><img src='/img/common/top_left.gif' width='64' height='64'><div style='width:32px;height:26px;background:#000;filter:alpha(opacity=34);opacity:.34;'></div></div>\
	<div id='toparea'><div id='alpha'></div></div>\
");
}
function Mnav_tr(hn,sn,cn){
globalHn=(hn)?hn:"";
globalSn=(sn)?sn:"";
globalCn=(cn)?cn:"";
if (hn==9) {tx = '_en';}
else {tx = '';}
var FlaUrl="/flash/tr/tr_navi"+tx+".swf";
var FlaParam="hn="+sn+"&sn="+cn;
FlashObj('TRmnavFla',FlaUrl,FlaParam,'405','60','#FFFFFF','transparent')
}
// ---------상단네비

// 좌측네비---------
function Snav(hn,sn,cn){
	var FlaHeight=new Array('500','290','300','350','380','350','','','','50','50'); //섹션별 플래시높이 06.22수정
	var FlaUrl="/flash/snav"+hn+".swf";
	var FlaParam="sn="+sn+"&cn="+cn;
	document.write("<div id='snav'>");
	FlashObj('snavFla',FlaUrl,FlaParam,'154',FlaHeight[hn-1],'#FFFFFF','transparent');
	document.write("</div>");
}


function Snav_tr(hn,sn,cn){
var snavCnt = new Array(4,2,4)
document.write("\
	<!-- logo //-->\
	<div id='toparea'><a href='javascript:link(7);'><img src='/img/tr/common/logo.gif' style='margin-top:47px;'></a></div>\
	<!--// logo -->\
	<!-- visual //-->\
	<div style='height:90px;'><img src='/img/tr/common/top"+sn+".gif'></div>\
	<!--// visual -->\
	<div id='snavarea2'>\
		<div id='snav2'>\
			<div id='leftT'><a href='javascript:link("+hn+","+sn+");'><img src='/img/tr/common/snav"+sn+".gif'></a></div>\
			<div id='snav2tr'>\
");
			for(i=1;i<=snavCnt[sn-1];i++){
				if(cn!=i) document.write("<div id='leftS"+i+"'><a href='javascript:link("+hn+","+sn+","+i+");'><img src='/img/tr/common/snav"+sn+"_"+i+".gif' onmouseover='ImgOver(this)' onmouseout='ImgOut(this)'></a></div>")
				else document.write("<div id='leftS"+i+"'><a href='javascript:link("+hn+","+sn+","+i+");'><img src='/img/tr/common/snav"+sn+"_"+i+"_.gif'></a></div>")
			}
document.write("\
			</div>\
			<div style='margin-top:25px;'><img src='/img/tr/common/quick_link.gif' width='150' usemap='#Map_quick_link'></div>\
		</div>\
	</div>\
	<map name='Map_quick_link'>\
		<area shape='rect' coords='15,46,136,67' href='javascript:link(7,3,1);'>\
		<area shape='rect' coords='15,69,136,90' href='javascript:link(7,1,2);'>\
	</map>\
");
}

function Snav_treng(hn,sn,cn){
var snavCnt = new Array(4,2,3)
document.write("\
	<!-- logo //-->\
	<div id='toparea'><a href='javascript:link(9);'><img src='/img/tr/eng/common/logo.gif' style='margin-top:47px;'></a></div>\
	<!--// logo -->\
	<!-- visual //-->\
	<div style='height:90px;'><img src='/img/tr/eng/common/top"+sn+".gif'></div>\
	<!--// visual -->\
	<div id='snavarea2'>\
		<div id='snav2'>\
			<div id='leftT'><a href='javascript:link("+hn+","+sn+");'><img src='/img/tr/eng/common/snav"+sn+".gif'></a></div>\
			<div id='snav2tr'>\
");
			for(i=1;i<=snavCnt[sn-1];i++){
				if(cn!=i) document.write("<div id='leftS"+i+"'><a href='javascript:link("+hn+","+sn+","+i+");'><img src='/img/tr/eng/common/snav"+sn+"_"+i+".gif' onmouseover='ImgOver(this)' onmouseout='ImgOut(this)'></a></div>")
				else document.write("<div id='leftS"+i+"'><a href='javascript:link("+hn+","+sn+","+i+");'><img src='/img/tr/eng/common/snav"+sn+"_"+i+"_.gif'></a></div>")
			}
document.write("\
			</div>\
			<div style='margin-top:25px;'><img src='/img/tr/eng/common/quick_link.gif' width='150' usemap='#Map_quick_link'></div>\
		</div>\
	</div>\
	<map name='Map_quick_link'>\
		<area shape='rect' coords='15,46,136,67' href='javascript:link(9,3,1);'>\
		<area shape='rect' coords='15,69,136,90' href='javascript:link(9,1,2);'>\
	</map>\
");
}

function Snav_ethics(sn){
	for(a=1;a<=6;a++){
		eval('m'+a+'_on = new Image()');
		eval('m'+a+'_off = new Image()');
		eval('m'+a+'_on.src = \"/img/ethics/common/snav0'+a+'_.gif\"');
		eval('m'+a+'_off.src = \"/img/ethics/common/snav0'+a+'.gif\"');
	}

// ---------- 윤리강령 버튼 없는 상태
//2007-05-10 -> left_btm_open.gif - height, map 수정
document.write("\
	<img src='/img/ethics/common/logo.gif' width='71' height='21'><br>\
	<div style='margin:21px 0 20px 0;'><img src='/img/ethics/common/left_top.gif' width='167' height='94'></div>\
	<div class='ml10'><a href='javascript:link(8,1);' onMouseOver=\"Img('1','on');\" onmouseout=\"Img('1','off');\"><img src='/img/ethics/common/snav01.gif' width='147' height='26' name='m1'></a><br>\
	<a href='javascript:link(8,2);' onMouseOver=\"Img('2','on');\" onmouseout=\"Img('2','off');\"><img src='/img/ethics/common/snav02.gif' width='147' height='26' name='m2'></a><br>\
	<a href='javascript:link(8,3);' onMouseOver=\"Img('3','on');\" onmouseout=\"Img('3','off');\"><img src='/img/ethics/common/snav03.gif' width='147' height='26' name='m3'></a><br>\
	<a href='javascript:link(8,5);' onMouseOver=\"Img('5','on');\" onmouseout=\"Img('5','off');\"><img src='/img/ethics/common/snav05.gif' width='147' height='26' name='m5'></a><br></div>\
	<div style='margin:23px 0 14px 0;'><a href='javascript:link(8,6);'><img src='/img/ethics/common/left_bnr.gif' width='167' height='56'></a></div>\
	<img src='/img/ethics/common/left_btm_open.gif' width='167' height='138' usemap='#left_btm_open'><br>\
	<map name='left_btm_open'>\
		<area shape='rect' coords='11,84,112,101' href='http://www.tworld.co.kr/outsitens.html?http://www.tworld.co.kr/normal.do?serviceId=S_CMIS0002&viewId=V_CENT0101&xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-servicezone_cyber_customer_center' target='_blank'>\
		<area shape='rect' coords='2,118,81,135' href='javascript:;' onclick='poplink(1,5,1);'>\
	</map>\
	<script>document.body.style.background='url(/img/ethics/common/bg0"+sn+".gif) no-repeat 212px -13px';</script>\
");

// ---------- 윤리강령 버튼 추가 시 적용
/*
document.write("\
	<img src='/img/ethics/common/logo.gif' width='71' height='21'><br>\
	<div style='margin:21px 0 55px 0;'><img src='/img/ethics/common/left_top.gif' width='167' height='59'></div>\
	<div class='ml10'><a href='javascript:link(8,1);' onMouseOver=\"Img('1','on');\" onmouseout=\"Img('1','off');\"><img src='/img/ethics/common/snav01.gif' width='147' height='26' name='m1'></a><br>\
	<a href='javascript:link(8,2);' onMouseOver=\"Img('2','on');\" onmouseout=\"Img('2','off');\"><img src='/img/ethics/common/snav02.gif' width='147' height='26' name='m2'></a><br>\
	<a href='javascript:link(8,3);' onMouseOver=\"Img('3','on');\" onmouseout=\"Img('3','off');\"><img src='/img/ethics/common/snav03.gif' width='147' height='26' name='m3'></a><br>\
	<a href='javascript:link(8,4);' onMouseOver=\"Img('4','on');\" onmouseout=\"Img('4','off');\"><img src='/img/ethics/common/snav04.gif' width='147' height='26' name='m4'></a><br>\
	<a href='javascript:link(8,5);' onMouseOver=\"Img('5','on');\" onmouseout=\"Img('5','off');\"><img src='/img/ethics/common/snav05.gif' width='147' height='26' name='m5'></a><br></div>\
	<div style='margin:23px 0 14px 0;'><a href='javascript:link(8,6);'><img src='/img/ethics/common/left_bnr.gif' width='167' height='56'></a></div>\
	<img src='/img/ethics/common/left_btm.gif' width='167' height='106' usemap='#left_btm'><br>\
	<map name='left_btm'>\
		<area shape='rect' coords='11,51,114,70' href='http://www.tworld.co.kr/outsite.html?http://www.tworld.co.kr/center/info/index.html?xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-servicezone cyber customer center' target='_blank'>\
		<area shape='rect' coords='3,86,79,104' href='javascript:;' onclick='poplink(1,5,1);'>\
		<area shape='rect' coords='83,87,166,104' href='javascript:;' onclick='poplink(1,5,2)'>\
	</map>\
	<script>document.body.style.background='url(/img/ethics/common/bg0"+sn+".gif) no-repeat 212px -13px';</script>\
");
*/

if (sn!='6'){
	document.write("\
	<script>\
		m"+sn+".src='/img/ethics/common/snav0"+sn+"_.gif';\
		m"+sn+"_on.src='/img/ethics/common/snav0"+sn+"_.gif';\
		m"+sn+"_off.src='/img/ethics/common/snav0"+sn+"_.gif';\
	</script>\
");
}

}
// ---------좌측네비

//-----스크린 사이즈가 작을경우 스크롤생겼을때의 컨텐츠 width값조절
function Wsize(){
	if(document.body.clientWidth < 963){
		document.getElementById("toparea").style.width = 963;
		document.getElementById("contarea").style.width = 809;
	}else{
		document.getElementById("toparea").style.width = 100+"%";
		document.getElementById("contarea").style.width = 100+"%";
	}
}

// 2008-09-26 z-index 추가 --------
function Footer(){
var FlaUrl="/flash/footer.swf";
var FlaParam="sub=1";
document.write("<div style='margin-left:0;margin-bottom:30px;'>");
FlashObj('FooterFla',FlaUrl,FlaParam,'850','60','#FFFFFF','transparent');
document.write("<span style='padding-left:6px;position:absolute;margin-top:-373px;z-index:202;'><script>Flash('FooterFla','/flash/family.swf','97','389','#FFFFFF','transparent');</script>\
</span></div>\
");

try{if(RefreshTopgo){}}
catch(e){setInterval(Wsize,1000)}
}

function Footer_tr(){
	if (globalHn==9) {dir = 'eng';}
	else {dir = '';}
document.write("\
	<img src='/img/tr/"+dir+"/common/bottom.gif'><br>\
");
}

function Footer_ethics(){
document.write("\
	<div class='cl'><img src='/img/ethics/common/bottom.gif' width='655' height='61' usemap='#Map_ethicsFooter'></div>\
	<map name='Map_ethicsFooter'>\
		<area shape='rect' coords='503,15,577,49' href='javascript:poplink(3);'>\
		<area shape='rect' coords='578,15,642,49' href='http://partneron.sktelecom.com' target='_blank'>\
	</map>\
");
}
//2008-08-20 이용약관(FootUrl[5]) 링크수정
function FooterLink(num){
	var FootUrl = new Array();
	FootUrl[1] = "javascript:pop('/html/etc/PopPrivacy.html','',495,650)";
	FootUrl[2] = "javascript:pop('/html/etc/PopEmail.html','',495,250)";
	FootUrl[3] = "javascript:newwin('http://www.mobilecopy112.or.kr/index.html')";
	FootUrl[4] = "javascript:newwin('http://www.msafer.or.kr/index.jsp')";
	FootUrl[5] = "javascript:newwin('http://www.tworld.co.kr/common/cm8_web_agree.html')";
	FootUrl[6] = "javascript:newwin('http://www.tworld.co.kr/common/cm8_agree_cartoon.html')";

	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "D1";
		  break;
		case 2 : menucode = "D2";
		  break;
		case 3 : menucode = "D3";
		  break;
		case 4 : menucode = "D4";
		  break;
		default : menucode = "D1";
	}
	f_logAboutSkt(menucode);

	location.href=FootUrl[num];


}
// 2009-05-22 패밀리사이트 추가
function FamilySite(num){
	var FamilyUrl = new Array();
	FamilyUrl[1] = "javascript:newwin(CONST_TWORLD_URL)";
	FamilyUrl[2] = "javascript:newwin('http://www.melon.com')";
	FamilyUrl[3] = "javascript:newwin('http://cizle.nate.com')";
	FamilyUrl[4] = "javascript:newwin('http://www.gxg.com')";
	FamilyUrl[5] = "javascript:newwin(CONST_SKSPORTS_URL)";
	FamilyUrl[6] = "javascript:newwin(CONST_PARTNERON_URL)";
	FamilyUrl[7] = "javascript:newwin('http://www.tu4u.com/index.jsp')";
	FamilyUrl[8] = "javascript:newwin('http://www.sktelink.com')";
	FamilyUrl[9] = "javascript:newwin('http://www.sktstory.co.kr')";
	FamilyUrl[10] = "javascript:newwin('http://www.skbroadband.com/')";
	FamilyUrl[11] = "javascript:newwin('http://corp.nate.com/')";
	FamilyUrl[12] = "javascript:newwin('http://www.sksports.net/WyvernsMain.asp')";
	FamilyUrl[13] = "javascript:newwin('http://paxnet.moneta.co.kr/')";
	FamilyUrl[14] = "javascript:newwin('http://www.sidushq.com/')";
	FamilyUrl[15] = "javascript:newwin('http://www.crossminsight.com/')";
	FamilyUrl[16] = "javascript:newwin('http://www.ntreev.com/')";
	FamilyUrl[17] = "javascript:newwin('http://www.commerceplanet.co.kr/')";
	FamilyUrl[18] = "javascript:newwin('http://www.sk-imedia.com/')";
	FamilyUrl[19] = "javascript:newwin('http://www.ytnmedia.co.kr/')";
	FamilyUrl[20] = "javascript:newwin('http://www.11st.co.kr')";
	FamilyUrl[21] = "javascript:newwin('http://sc.dhome.co.kr/')";
	FamilyUrl[22] = "javascript:newwin('http://isbox.nate.com')";
	FamilyUrl[23] = "javascript:newwin('http://gifticon.nate.com')";
	FamilyUrl[24] = "javascript:newwin('http://www.sk.co.kr')";
	FamilyUrl[25] = "javascript:newwin('http://www.skpsnm.com')";
	FamilyUrl[26] = "javascript:newwin('http://www.skmnc.co.kr/')";

	var menucode="";
	//2008-10-15 case 9 추가함 : 우측 상단 '기업블로그' 클릭시 FamilySite(9) 호출(메뉴코드추가작업)
	//2009-02-23 case 14 추가함 : 우측 상단 배너
	switch(parseInt(num) ) {
		case 1 : menucode = "D61";
		  break;
		case 2 : menucode = "D62";
		  break;
		case 3 : menucode = "D63";
		  break;
		case 4 : menucode = "D64";
		  break;
		case 5 : menucode = "D65";
		  break;
		case 6 : menucode = "D66";
		  break;
		case 9 : menucode = "T8";
		  break;
		case 14 : menucode = "R5";
		  break;
		default : menucode = "D61";
	}
	f_logAboutSkt(menucode);

	location.href=FamilyUrl[num];
}
// ---------풋터

// 고객정보 보호 메세지 ---------
function Info_Protect_Msg(){
	document.write("<div class=\"tss b mt30\">");
	document.write("   <span class=\"red\">\"모든 조회시도는 Log자료로 보관됩니다. (고객 정보 보호를 생활화 합시다)\"</span>");
	document.write("</div> ");
}

// 우측상단메뉴---------
function Home(){f_logAboutSkt('T1');link(0);}
function Sitemap(){f_logAboutSkt('T2');location.href='/html/etc/Sitemap.html';}
function English(){f_logAboutSkt('T3');window.open(CONST_SITE_URL+'/eng/');}
function Chinese(){f_logAboutSkt('T4');window.open(CONST_SITE_URL+'/chi/');}

function TWorld(){f_logAboutSkt('R1');window.open(CONST_TWORLD_URL);}
function BeSunny(){f_logAboutSkt('T5');window.open('http://www.besunny.com');}
function TR(){f_logAboutSkt('T6');link(7);}//window.open(CONST_SITE_TR_URL);
function Ethics(){f_logAboutSkt('T7');link(1,5);}
function Counsel(){f_logAboutSkt('D5');link(8);}
// ---------우측상단메뉴

// 메인 링크(main_vi.swf)   메인우측상단 NOW SKTipper UPDATE(getURL("javascript:link(5,3)"); getURL("javascript:MainPR(4)");) 두개다 걸려있음 참고할 것 ---------
function MainPR(num){
	var URL= new Array();
	URL[1] = "javascript:newwin('http://www.sktstory.com/')"; /*2008-10-17 링크수정_SK텔레콤블로그_1번*/
	URL[2] = "http://www.sktelecom.com/jsp/tlounge/mediacenter/MediaCenterDetail.jsp?f_rk=1&f_reportdata_seq=3090&f_one_code_seq=1003";/* 2008-10-14 수정_SK텔레콤블로그_3번 */
	URL[3] = "http://www.sktelecom.com/html/sktelecom/rule/HoldMain2008.html";
	URL[4] = "javascript:link(5,3)"; /* 2008-10-07 메인우측상단 NOW SKTipper UPDATE 링크임 항상 있어야함 */
	URL[5] = "javascript:link(5,3,2)"; /* 2008-10-07 어디에 쓰이는지 모르겠으나 있는게 안전 */
	URL[6] = "http://www.sktelecom.com/jsp/tlounge/mediacenter/MediaCenterDetail.jsp?f_rk=1&f_reportdata_seq=3101&f_one_code_seq=1003"; /* 2008-10-27 수정_SK텔레콤블로그_4번 */


	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "B11";
		  break;
		case 2 : menucode = "B12";
		  break;
		case 3 : menucode = "B13";
		  break;
		case 4 : menucode = "B5";
		  break;
		case 5 : menucode = "B5";
		  break;
		default : menucode = "B11";
	}
	f_logAboutSkt(menucode);

	location.href = URL[num];
}

function MainCorporate(num){
	var URL= new Array();
	URL[1] = "javascript:link(3,2,3)";
	URL[2] ="javascript:__fnDirectFileDown('/kor/사회공헌/사회공헌 활동소식/사회공헌 자료실/사회공헌_활동백서_2008.pdf');"; /* 2008-07-08 url수정 */
	URL[3] = "javascript:newwin('http://www.besunny.com/about/?url=L2Fib3V0L2Fib3V0XzA0XzA3LmpzcA#')";

	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "B21";
		  break;
		case 2 : menucode = "B22";
		  break;
		case 3 : menucode = "B23";
		  break;
		default : menucode = "B21";
	}
	f_logAboutSkt(menucode);

	location.href = URL[num];
}
// 7월 26일 링크수정
function MainInvestor(num){
	var URL= new Array();
	URL[1] = "javascript:link(2,3,3)";
	URL[2] = "javascript:link(2,4,1)";

	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "B31";
		  break;
		case 2 : menucode = "B32";
		  break;
		default : menucode = "B31";
	}
	f_logAboutSkt(menucode);

	location.href = URL[num];
}
//10월17일수정 -링크 2
function MainCareers(num){
	var URL= new Array();
	URL[1] = "javascript:link(4,1)";
	//URL[2] = "javascript:link('http://www.sktelecom.com/jsp/recruit/notice/NoticeList.jsp')";
	URL[2] = "javascript:link(4,5,2)";
	URL[3] = "javascript:newwin('http://www.joinsk.co.kr')";

	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "B41";
		  break;
		case 2 : menucode = "B42";
		  break;
		case 3 : menucode = "B43";
		  break;
		default : menucode = "B41";
	}
	f_logAboutSkt(menucode);

	location.href = URL[num];
}
// ---------메인 링크(main_vi.swf)
//2008-04-14 수정 - 링크 2번
// 메인 링크(sub.swf)---------
function Channel(num){
	var URL= new Array();
	URL[1] = CONST_TWORLD_URL+"/outsitens.html?http://www.tworld.co.kr/jsp/index.jsp?xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-main flash banner T WORLD main";
	URL[2] = CONST_TWORLD_URL+"/outsitens.html?http://www.tworld.co.kr/jsp/brand/24hours/MainServlet.jsp";
	URL[3] = CONST_TWORLD_URL+"/outsitens.html?http://www.tworld.co.kr/jsp/center/main/controller/CustomerMainServlet.jsp?xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-main_brand_service channel online customer center";
	URL[4] = CONST_TWORLD_URL+"/outsitens.html?http://www.tworld.co.kr/jsp/center/main/controller/BugaMainServlet.jsp?xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-main_brand_service channel buga service";
	URL[5] = CONST_TWORLD_URL+"/outsitens.html?http://tevent.tworld.co.kr/jsp/event/evtp/controller/EventIngServlet.jsp?xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-main_brand_service channel event";
	window.open(URL[num]);

	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "C21";
		  break;
		case 2 : menucode = "C22";
		  break;
		case 3 : menucode = "C23";
		  break;
		case 4 : menucode = "C24";
		  break;
		case 5 : menucode = "C25";
		  break;
		default : menucode = "C21";
	}
	f_logAboutSkt(menucode);


}

function Download(num){
	var URL= new Array();
	URL[1] = "javascript:link(1,4,3)";
	URL[2] = "javascript:__fnDirectFileDown('/kor/사회공헌/사회공헌 활동소식/사회공헌 자료실/사회공헌_활동백서_2008.pdf');";/* 2008-03-21 url수정 */
	URL[3] = "/html/invest/finance/Annual.html";

	var menucode="";
	switch(parseInt(num) ) {
		case 1 : menucode = "C31";
		  break;
		case 2 : menucode = "C32";
		  break;
		case 3 : menucode = "C33";
		  break;
		default : menucode = "C31";
	}
	f_logAboutSkt(menucode);

	location.href = URL[num];
}

//--SK텔레콤소개 메인
function WorldMap(num){
	var URL= new Array();
	URL[1] = "/html/sktelecom/worldmap/GlobalAmerica.html";
	URL[2] = "/html/sktelecom/worldmap/GlobalChina.html";
	URL[3] = "/html/sktelecom/worldmap/GlobalVietnam.html";
	URL[4] = "/html/sktelecom/worldmap/GlobalMongoli.html";
	URL[5] = "/html/sktelecom/worldmap/GlobalCambodia.html";
	URL[6] = "/html/sktelecom/worldmap/GlobalOthers.html";
	location.href = URL[num];
}


//--투자자정보 메인
function Annual(){
	location.href="/html/invest/finance/Annual.html"
}

//--PR센터 메인
function Cihistory(num){
	var URL= new Array();
	URL[1] = "/html/tlounge/mediacenter/MediaCenterHistory.html";
	URL[2] = "/html/tlounge/mediacenter/MediaCenterCiList.html";
	location.href = URL[num];
}

function Mobile(num){
	var URL= new Array();
	URL[1] = "/html/tlounge/happyshare/HappyMobile01.html";
	URL[2] = "/html/tlounge/happyshare/HappyMobile02.html";
	URL[3] = "/html/tlounge/happyshare/HappyMobile03.html";
	location.href = URL[num];
}


//--서비스&고객지원 메인
function MobileService(){
	location.href="/html/service/guide/MobileService.html"
}

function MembershipService(){
	location.href="/html/service/guide/MembershipService.html"
}

function Terminal(){
	location.href="/html/service/guide/Terminal.html"
}
// ---------메인 링크(sub.swf)

// 인재채용> 동호회 목록 전체보기---------
function ClubMenu(){
document.write("\
	<div><a href='javascript:;' onclick=\"toggleMenu('allview');\"><img src='/img/recruit/principle/club_allview.gif' width='590' height='20'></a></div>\
	<div id='allview' style='display:none;position:absolute;width:590px;height:230px;'>\
		<img src='/img/recruit/sktizen/club_menu.gif' width='590' height='137' usemap='#guide_menu'>\
	</div>\
	<map name='guide_menu'>\
		<area shape='rect' coords='10,14,143,51' href='/html/recruit/sktizen/ClubDetail01.html'>\
		<area shape='rect' coords='156,14,289,51' href='/html/recruit/sktizen/ClubDetail02.html'>\
		<area shape='rect' coords='300,14,433,51' href='/html/recruit/sktizen/ClubDetail03.html'>\
		<area shape='rect' coords='446,14,579,51' href='/html/recruit/sktizen/ClubDetail04.html'>\
		<area shape='rect' coords='10,72,143,109' href='/html/recruit/sktizen/ClubDetail05.html'>\
		<area shape='rect' coords='156,72,289,109' href='/html/recruit/sktizen/ClubDetail06.html'>\
		<area shape='rect' coords='300,72,433,109' href='/html/recruit/sktizen/ClubDetail07.html'>\
		<area shape='rect' coords='543,118,584,131' href='javascript:;' onclick=\"allview.style.display='none'\">\
	</map>\
");
}
// ---------인재채용> 동호회 목록 전체보기

// 인재채용> 채용분야 전체보기 2008-09-09 맵수정---------
function GuideMenu(){
document.write("\
	<div><a href='javascript:;' onclick=\"toggleMenu('allview');\"><img src='/img/recruit/guide/guide_allview.gif' width='590' height='20'></a></div>\
	<div id='allview' style='display:none;position:absolute;width:590px;height:280px;'>\
		<img src='/img/recruit/guide/guide_menu.gif' width='590' height='159' usemap='#guide_menu'>\
	</div>\
	<map name='guide_menu'>\
		<area shape='rect' coords='26,28,115,55' href='/html/recruit/guide/Brand.html'>\
 		<area shape='rect' coords='26,67,117,92' href='/html/recruit/guide/Rnd.html'>\
 		<area shape='rect' coords='26,104,192,130' href='/html/recruit/guide/Global.html'>\
 		<area shape='rect' coords='310,68,350,93' href='/html/recruit/guide/Pr.html'>\
 		<area shape='rect' coords='310,25,457,55' href='/html/recruit/guide/Corporate.html'>\
 		<area shape='rect' coords='310,106,365,131' href='/html/recruit/guide/Management.html'>\
	    <area shape='rect' coords='540,128,583,154' href='javascript:;' onclick=\"allview.style.display='none'\">\
	</map>\
");
}
// ---------인재채용> 채용분야 전체보기

// sktelecom소개>국내사업>연구개발 상단 탭---------
function ResearchTab(num){
document.write("\
	<div class='l'><a href='/html/sktelecom/business/ResearchRnd.html'><img src='/img/sktelecom/business/tab_research01.gif' height='28' name='tab1'></a></div>\
	<div class='l'><a href='/html/sktelecom/business/CrpIntroduce.html'><img src='/img/sktelecom/business/tab_research02.gif' height='28' name='tab2'></a></div>\
	<div class='l'><a href='/html/sktelecom/business/NetworkIntroduce.html'><img src='/img/sktelecom/business/tab_research03.gif' height='28' name='tab3'></a></div>\
	<div class='l'><a href='/html/sktelecom/business/PlatformIntroduce.html'><img src='/img/sktelecom/business/tab_research04.gif' height='28' name='tab4'></a></div>\
	<div class='l'><a href='/html/sktelecom/business/MobileIntroduce.html'><img src='/img/sktelecom/business/tab_research05.gif' height='28' name='tab5'></a></div>\
	<div class='l'><a href='/html/sktelecom/business/Economy.html'><img src='/img/sktelecom/business/tab_research06.gif' height='28' name='tab6'></a></div>\
	<script>tab"+num+".src='/img/sktelecom/business/tab_research0"+num+"_.gif';</script>\
");
}
// ---------sktelecom소개>국내사업>연구개발 상단 탭


// 라인맵---------
function setString(node){
	var spStr = "" , last="";
	try{
		var url  = eval(node+"[0]");
		var name = eval(node+"[1]");
	}
	catch(e){
		document.write("<div id='path' style='margin-top:-10px;'>아이디가 존재하지 않습니다 : " + node+"</div>");
	}
	var nodeId  = node;
	var spStr = "&nbsp;&nbsp;<img src='/img/common/ico_path2.gif' align='absmiddle'>&nbsp;";
	if(node.lastIndexOf('_') != -1) setString(node.substring(0,node.lastIndexOf('_')));
	else lineMapStr += "<a href='"+eval("u0[0]")+"'>"+ eval("u0[1]")+"</a>" + spStr;
	if(currentPath != nodeId)
		lineMapStr += "<a href='"+url+"'>"+ name+"</a>" + spStr;
	else
		lineMapStr += name;
}

function path(id){
	try{
		lineMapStr = "";
		index = 0;
		currentPath="u"+id;
		setString("u"+id);
		document.write("<div id='path'><img src='/img/common/ico_path.gif' align='absmiddle'> "+lineMapStr+"</div>");
	}catch(e){
		document.write("예외처리 발생 : " +  e);
	}
}

function setString_tr(node){
	var spStr = "" , last="";
	try{
		var url  = eval(node+"[0]");
		var name = eval(node+"[1]");
	}
	catch(e){
		document.write("아이디가 존재하지 않습니다 : " + node);
	}
	var nodeId  = node;
	var spStr = "&nbsp;<img src='/img/tr/common/ico_path2.gif' align='absmiddle'>&nbsp;";
	if(node.lastIndexOf('_') != -1) setString_tr(node.substring(0,node.lastIndexOf('_')));
	else lineMapStr += "<a href='javascript:poplink(1)'>"+ eval("u0[1]")+"</a>" + spStr;
	if(currentPath != nodeId)
		lineMapStr += "<a href='"+url+"'>"+ name+"</a>" + spStr;
	else
		lineMapStr += name;
}

function path_tr(id){
	try{
		lineMapStr = "";
		index = 0;
		currentPath="u"+id;
		setString_tr("u"+id);
		document.write("<div id='path'><img src='/img/tr/common/ico_path.gif' align='absmiddle'> "+lineMapStr+"</div>");
	}catch(e){
		document.write("예외처리 발생 : " +  e);
	}
}
// ---------라인맵


function link(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
		else if(depth==1) url = eval("u"+arguments[0]+"[0]");
		else if(depth==2) url = eval("u"+arguments[0]+"_"+arguments[1]+"[0]");
		else if(depth==3) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"[0]");
		else if(depth==4) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"[0]");
		else if(depth==5) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]+"[0]");
		if(url=="") alert("준비중입니다");
		else if(arguments[0]==7) pops(url,'pop_tr','1024','768');
		else if(arguments[0]==8) pops(url,'pop_ethics','937','600');
		else if(arguments[0]==9) pops(url,'pop_tr','1024','768');
		else if(arguments[0]==20) pops(url,'2010mwc','717','800');
		else location.href = url;
	}catch(e) { alert("준비중입니다"); }
}

//마이크로사이트 링크
function poplink(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
		else if(depth==1) url = eval("u"+arguments[0]+"[0]");
		else if(depth==2) url = eval("u"+arguments[0]+"_"+arguments[1]+"[0]");
		else if(depth==3) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"[0]");
		else if(depth==4) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"[0]");
		else if(depth==5) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]+"[0]");
		if(opener.location) opener.location.href=url;
	}catch(d){window.open(url,+"targetOpener");}
}

/*ActiveX 플래쉬*/
// id: flash id
// url: source url
// w: source width
// h: source height
// t: wmode (window/transparent/opaque)
function Flash(id,url,w,h,bg,t){
document.write("\
	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
	<param name='movie' value="+url+" />\
	<param name='wmode' value="+t+" />\
	<param name='bgcolor' value="+bg+" />\
	<param name='allowScriptAccess' value='always' />\
	<param name='quality' value='high' />\
	<param name='menu' value='false' />\
	<embed src="+url+" width="+w+" height="+h+" wmode="+t+" name="+id+" bgcolor="+bg+" allowScriptAccess='always' quality='high' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />\
	</object>\
");
}
function FlashObj(id,url,param,w,h,bg,t){
document.write("\
	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+w+" height="+h+" id="+id+">\
	<param name='movie' value="+url+" />\
	<param name='FlashVars' value="+param+" />\
	<param name='wmode' value="+t+" />\
	<param name='bgcolor' value="+bg+" />\
	<param name='allowScriptAccess' value='always' />\
	<param name='quality' value='high' />\
	<param name='menu' value='false' />\
	<embed src="+url+" width="+w+" height="+h+" wmode="+t+" name="+id+" bgcolor="+bg+" allowScriptAccess='always' quality='high' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' FlashVars="+param+" />\
	</object>\
");
}

// 동영상 미디어플레이어---------
function Media(url,vol){
document.write("<OBJECT id='myMedia' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' width='320' height='240'>"+
	"<param name='filename' value="+url+" >"+
	"<param name='ShowControls' value='0'>"+
	"<param name='AutoRewind' value=1>"+
	"<param name='PlayCount' value='-1'>"+
	"<param name='Balance' value=0>"+
	"<param name='DisplaySize' value='4'>"+
	"<param name='EnablePositionControls' value='1'>"+
	"<param name='EnableContextMenu' value='1'>"+
	"<param name='Volume' value="+vol+">"+
	"</object>"
)
}
// ---------동영상 미디어플레이어

function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no,status=1') } //Popup(스크롤바없음)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes,resizable=1,status=1') } //Popup(스크롤바있음)
function newwin(url){ window.open(url,'new','location=1,directories=1,resizable=1,status=1,toolbar=1,menubar=1,scrollbars=1') } //NewPopup(스크롤바없음)
function listover(obj){obj.className="listover";}
function listout(obj){obj.className="listout";}

function Img(n,tog){eval("document.m"+n+".src=m"+n+"_"+tog+".src"); } //이미지 롤오버
function ImgOver(obj){obj.src = obj.src.replace(".gif","_.gif")}
function ImgOut(obj){obj.src = obj.src.replace("_.gif",".gif")}

function ScrollTop(){
	self.window.scroll(0,0);
}

// 라운드테이블---------
function roundTable(objID) {
	var obj = document.getElementById(objID);
	var Parent, objTmp, Table, TBody, TR, TD;
	var bdcolor, bgcolor, Space;
	var trIDX, tdIDX, MAX;
	var styleWidth, styleHeight;

	// get parent node
	Parent = obj.parentNode;
	objTmp = document.createElement('SPAN');
	Parent.insertBefore(objTmp, obj);
	Parent.removeChild(obj);

	// get attribute
	bdcolor = obj.getAttribute('rborder');
	bgcolor = obj.getAttribute('rbgcolor');
	radius = parseInt(obj.getAttribute('radius'));
	if (radius == null || radius < 1) radius = 1;
	else if (radius > 6) radius = 6;

	MAX = radius * 2 + 1;

	/*
	create table {{
	*/
	Table = document.createElement('TABLE');
	TBody = document.createElement('TBODY');

	Table.cellSpacing = 0;
	Table.cellPadding = 0;

	for (trIDX=0; trIDX < MAX; trIDX++) {
		TR = document.createElement('TR');
		Space = Math.abs(trIDX - parseInt(radius));
		for (tdIDX=0; tdIDX < MAX; tdIDX++) {
			TD = document.createElement('TD');

			styleWidth = '1px'; styleHeight = '1px';
			if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
			else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
			else if (radius > 2) {
				if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
				if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
			}

			if (styleWidth != null) TD.style.width = styleWidth;
			if (styleHeight != null) TD.style.height = styleHeight;

			if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
			else if (tdIDX > Space && Space < MAX - tdIDX - 1)  TD.style.backgroundColor = bgcolor;

			if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
			TR.appendChild(TD);
		}
		TBody.appendChild(TR);
	}

	/*
	}}
	*/

	Table.appendChild(TBody);

	// insert table and remove original table
	Parent.insertBefore(Table, objTmp);
}
// ---------라운드테이블

// 셀렉트BOX---------
var selold = "";
var selthis = "";
var selhiddenName = "";
var selformName = "";
function selecv(name,fname,hname){
	selformName = fname;
	selhiddenName = hname;
	selthis = name;

	if(selold == ""){
		document.getElementById(name+"_view").style.display = "block"
		document.getElementById(name).style.zIndex = 11
		selold = name;
	}else if(selold != "" && selold != name){
		document.getElementById(selold+"_view").style.display = "none"
		document.getElementById(selold).style.zIndex = 1
		document.getElementById(name+"_view").style.display = "block"
		document.getElementById(name).style.zIndex = 11
		selold = name;
	}else{
		document.getElementById(selold+"_view").style.display = "none"
		document.getElementById(selold).style.zIndex = 1
		selold = "";
	}
}
function seltxt(txt){
	document.getElementById(selthis+"_tx").innerHTML=txt;
	eval("document."+selformName+"."+selhiddenName+".value='"+txt+"'");
	document.getElementById(selold+"_view").style.display = "none"
}
// ---------셀렉트BOX

// 상,하로 이미지 슬라이딩 , 좌우슬라이딩 일경우 scrollLeft로 바꿔준다---------
var sRepeat=null;
function doScrollerIE(dir, src, amount) {
	if (amount==null) amount=85;
	if (dir=="up")
		document.all[src].scrollLeft-=amount;
	else
		document.all[src].scrollLeft+=amount;
	if (sRepeat==null)
		sRepeat = setInterval("doScrollerIE('" + dir + "','" + src + "'," + amount + ")",100);
	return false
}
window.document.onmouseout = new Function("clearInterval(sRepeat);sRepeat=null");
window.document.ondragstart = new Function("return false");
// ---------상,하로 이미지 슬라이딩 , 좌우슬라이딩 일경우 scrollLeft로 바꿔준다

//특정영역 인쇄---------
function printDiv () {
  if (document.all && window.print) {
    window.onbeforeprint = beforeDivs;
    window.onafterprint = afterDivs;

    window.print();
  }
}
function beforeDivs () {
  if (document.all) {
    objContents.style.display = 'none';

    objSelection.innerHTML = document.all['print_contents'].innerHTML; // 이곳에서 ID를 지정
  }
}
function afterDivs () {
  if (document.all) {
    objContents.style.display = 'block';

    objSelection.innerHTML = "";
  }
}
//---------특정영역 인쇄

//특정이미지 인쇄---------
function printimg(url) {
	var newwindow = window.open(url, "printsrc", "status=no,toolbar=no,scrollbars=no,resizable=no,menubar=no,width=20,height=20");
	newwindow.print()
	newwindow.blur()
}
//---------특정이미지 인쇄


function toggleMenu(currMenu) {
	if (document.all) {
			thisMenu = eval("document.all." + currMenu + ".style")
			if (thisMenu.display == "none") {
					thisMenu.display = "block"
			}
			else {
					thisMenu.display = "none"
			}
			return false
	}
	else {
			return true
	}
}


/*IFRAME 자동리사이징*/
function iframe_init(){
	var doc = document.getElementById("ifr_id");
	doc.style.top=0;
	doc.style.left=0;
	if(doc.offsetHeight == 0){
	} else {
	pageheight = doc.offsetHeight;
	pagewidth = doc.offsetWidth;
	parent.frames["frame_id"].resizeTo(pagewidth,pageheight);
	}
}
function iframe_init2(num){
  ifr="ifr_"+num;
  fra="frame_"+num;
	var doc = document.getElementById(ifr);
	doc.style.top=0;
	doc.style.left=0;
	if(doc.offsetHeight == 0){
	} else {
	pageheight = doc.offsetHeight;
	pagewidth = doc.offsetWidth;
	try{
		parent.frames[fra].resizeTo(pagewidth,pageheight);
	}catch(e){}
	}
}


/**
	Flash와 xml 연동 JavaScript Fucntion
	Naming Rule : f_[영역 : main, subMain][기능]
**/

function f_mainNews(rk,seq) {
	f_logAboutSkt('C11');
	var form = document.__flashMainNews;
	form.f_rk.value = rk;
	form.f_reportdata_seq.value = seq;
	form.action = "/jsp/tlounge/mediacenter/MediaCenterDetail.jsp?menucode=C1" ;
	form.submit();
}

function f_mainNotice(code) {
	f_logAboutSkt('C12');
	var form = document.__flashMainNotice;
	form.f_notice_seq.value = code;
	form.action = "/jsp/service/notice/NoticeDetail.jsp?menucode=C2";
	form.submit();
}

function f_subMain_IRPlan(fyear,fmonth,frealmonth) {
	var form = document.__flashIRPlan;
	form.f_year.value = fyear;
	form.f_month.value = fmonth;
	form.f_real_month.value = frealmonth;
	form.action = "/jsp/invest/ir/Plan.jsp?menucode=C3";
	form.submit();
}

function f_subMain_IRNews(seq,rk) {
	var form = document.__flashIRNews;
	form.f_reportdata_seq.value = seq;
	form.f_rk.value = rk;
	form.action = "/jsp/tlounge/mediacenter/MediaCenterDetail.jsp?menucode=C4";
	form.submit();
}

function f_subMain_IrPublic(url) {
	//alert(url);
	//url=url.replace(/\*/gi, "&")
	var form = document.__flashIRPublic;
	form.target = "_orange";
	form.action = url;
	form.submit();
}

function f_subMain_SocialPressBBS(rk,seq) {
	var form = document.__flashSocialNews;
	form.f_reportdata_seq.value = seq;
	form.f_rk.value = rk;
	form.action = "/jsp/tlounge/mediacenter/MediaCenterDetail.jsp?menucode=C6";
	form.submit();
}

function f_subMain_RecruitNotice(param) {
	var form = document.__flashRecruitNotice;
	form.method="post";
	form.iParam.value = param;
	form.iURL.value = "https://recruit.sktelecom.com/script/emp_notice/emp_notice_view.asp"
	form.action = "/jsp/recruit/notice/NoticeList.jsp?menucode=C7";
	form.submit();
}

function f_subMain_RecruitServiceNotice(code) {
	var form = document.__flashRecruitService;
	form.method="post";
	form.f_notice_seq.value = code;
	form.action = "/jsp/service/notice/NoticeDetail.jsp?menucode=C8";
	form.submit();
}

function f_subMain_TLoungeCoBBS() {
	location.href= "/jsp/tlounge/mediacenter/MediaCenterCompanyList.jsp?menucode=C9";
}

// 메인 화면 News 및 T라운지 보도자료에서 공통으로 사용
function f_subMain_TLoungePressBBS(rk,seq) {
	var form = document.__flashTLoungePressBBS;
	form.f_rk.value = rk;
	form.f_reportdata_seq.value = seq;
	form.action = "/jsp/tlounge/mediacenter/MediaCenterDetail.jsp?menucode=C10" ;
	form.submit();
}

function f_subMain_ServiceNotice(code) {
	var form = document.__flashMainNotice;
	form.f_notice_seq.value = code;
	form.action = "/jsp/service/notice/NoticeDetail.jsp?menucode=C11";
	form.submit();
}


// 플래쉬와 자바스립트 연동
function f_search(param) {
	var form = document.__flashSearchForm;
	form.__search_query.value = param;
	form.action = CONST_SITE_URL+"/jsp/search/TotalSearch.jsp";
	form.submit();
}

/**
	Flash와 xml 연동 JavaScript Fucntion 에서 사용하는 Form
	Naming Rule : f_[영역 : main, subMain][기능]
**/

document.write("<form name=\"__flashMainNews\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_rk\">");
document.write("<input type=\"hidden\" name=\"f_reportdata_seq\">");
document.write("</form>");


document.write("<form name=\"__flashTLoungePressBBS\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_rk\">");
document.write("<input type=\"hidden\" name=\"f_reportdata_seq\">");
document.write("</form>");

// 메인 공지사항과 서비스&고객지원에서 공통으로 사용
document.write("<form name=\"__flashMainNotice\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_notice_seq\">");
document.write("</form>");

document.write("<form name=\"__flashIRNews\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_reportdata_seq\">");
document.write("<input type=\"hidden\" name=\"f_rk\">");
document.write("</form>");

document.write("<form name=\"__flashIRPlan\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_year\">");
document.write("<input type=\"hidden\" name=\"f_month\">");
document.write("<input type=\"hidden\" name=\"f_real_month\">");
document.write("</form>");

document.write("<form name=\"__flashIRPublic\" method=\"post\">");
document.write("</form>");

document.write("<form name=\"__flashSocialNews\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_rk\">");
document.write("<input type=\"hidden\" name=\"f_reportdata_seq\">");
document.write("</form>");


document.write("<form name=\"__flashRecruitNotice\">");
document.write("<input type=\"hidden\" name=\"iParam\">");
document.write("<input type=\"hidden\" name=\"iURL\">");
document.write("</form>");


document.write("<form name=\"__flashRecruitService\">");
document.write("<input type=\"hidden\" name=\"f_notice_seq\">");
document.write("</form>");


// 플래쉬와 자바스립트 연동 form
document.write("<form name=\"__flashSearchForm\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"__search_query\">");
document.write("</form>");

/** FTP 파일 다운로드 form */
document.write("<form name=\"__frmDirectDown\" method=\"post\">");
document.write("<input type=\"hidden\" name=\"f_path\">");
document.write("</form>");
document.write("<iframe name=\"__iframeDirectFileDown\" style=\"width:0px;height:0px\" frameborder=\"0\" src=\"/blank.html\"></iframe>");

/** FTP 파일 다운로드 */
function __fnDirectFileDown(path)
{
	var oFrm = document.__frmDirectDown;
	oFrm.f_path.value = path;
	oFrm.action = CONST_FILE_DIRECT_DOWNLOAD_URL;
	oFrm.target = "__iframeDirectFileDown";
	oFrm.submit();
}

<!-- -------------------/한세라 추가//------------------------ -->
/** FTP 파일 멀티다운로드 */
function __fnDirectFilesMultiDown( pathArray )
{
	var oFrm = document.__frmDirectDown;
	oFrm.f_path.value = pathArray[0];
	for ( var i= 1 ; i < pathArray.length; i++ )
	{
		oFrm.f_path.value = oFrm.f_path.value + ";" + pathArray[i];
	}
	oFrm.action = CONST_FILE_DIRECT_MULTI_DOWNLOAD_URL;
	oFrm.target = "__iframeDirectFileDown";
	oFrm.submit();
}
<!-- -------------------//한세라 추가------------------------ -->

//메인 로그분석 작업
function f_logAboutSkt(menucode) {
	document.frames['__MainLogiframefrm'].location.href='/indexMainLog.html?menucode='+menucode;
}

document.write("<iframe name =\"__MainLogiframefrm\"  width=\"0\"  height=\"0\" frameborder=\"0\" src=\"/blank.html\"></iframe>");

/*
<iframe id="frame_id" src="http://다른도메인페이지URL" style="width:100%;"  frameborder="0" framespacing="0" scrolling="no"></iframe>
onload="iframe_init();"
<div id='ifr_id' style="position:absolute;left:0;top:0;width:100%"></div>
*/

//TR 로그인 관련//////////////////////////////////////////////////////////////////////////////////////////////////
var LANGUAGE = 0; // 0이면 한국어 , 1이면 영어

var sIDNullCheck = new Array( "아이디를 입력하세요.","Please enter your ID.");
var sPasswordNullCheck = new Array("비밀번호를 입력하세요.","Please enter your PASSWORD.");

function fnSetLanguage( lang ){
	LANGUAGE = lang;
}

function fnSearchArticles( objForm ){
	if( objForm.f_language.value=="ENG") objForm.action="/jsp/tr/eng/journal/JournalSearchResultList.jsp";
	else objForm.action="/jsp/tr/journal/JournalSearchResultList.jsp";
	objForm.submit();
}
//TR 로그인 관련//////////////////////////////////////////////////////////////////////////////////////////////////

/** 브라우져 한국어일경우 true */
function isKorUserLanguage()
{
	if(navigator.userLanguage.indexOf("ko") != -1 ) return true;
	else return false;
}

/* 2008-09-12 메인플래쉬 이노베이션 플래쉬팝업띄우기 */
function inno_btn(){
	pop('/flash/innovation/PopInnovation.html','',974,583);
}

/* 2009-01-30 메인플래쉬 검색좌측 기초생활대상자 배너 */
function recruit_btn(){
	location.href = "http://www.sktelecom.com/jsp/service/notice/NoticeDetail.jsp?f_notice_seq=1229";
}

/* 2009-02-02 메인플래쉬 우측 티월드 배너 링크 */
function tworldBn_btn(){
	newwin('http://www.tworld.co.kr/outsitens.html?http://www.tworld.co.kr/jsp/index.jsp?xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-main flash banner T');
}

/* 2009-02-16 주주총회 소집공고 */
function notice_btn(){
	newwin('http://kind.krx.co.kr/external/2009/02/17/000643/20090217001423/00591.htm');
}

/* 2009-03-11 윤리상담 제보센터 */
function ethics_faq(){
	newwin('http://www.sktelecom.com/html/sktelecom/ethics/CounselCenter.html');
}

function go_open2u(){
	newwin('http://open2u.sktelecom.com?pid=skt');
}

function ethical(num){
	var URL= new Array();
	URL[1] = "javascript:fnGo('/jsp/ethics/declare/Counsel.jsp');";
	URL[2] = "javascript:fnGo('/jsp/ethics/declare/StaffDeclare.jsp');";
	URL[3] = "javascript:newwin('http://www.tworld.co.kr/outsitens.html?http://www.tworld.co.kr/normal.do?serviceId=S_CMIS0002&viewId=V_CENT0101&xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-servicezone_cyber_customer_center')";
	location.href = URL[num];
}

/* 2009-09-10 인재채용 배너 */
function skcareer_go(){
	newwin('http://www.skcareers.com');
}

/* 2009-09-11 M 고객센터 */
function go_m_customercenter(){
	window.open('http://www.tworld.co.kr/html/center/i_guide/pop_mcenter_main.html','mcenter','width=615,height=481,left=0,top=0');
}