﻿    //홈
    function linkHome() {
        location.href="/Main/Main.aspx";
    }
    // 로그인4
    function linkLogin() {
//        var oUrl ="https://211.43.222.197/Login/Login.aspx";
//        var vWinCal = window.open(oUrl, "Login", "width=496,height=290,status=no,resizable=no,top=200,left=200");
        fn_Login();
    }


    function linkLogOut() {
        fn_LogOut();
    }
    
    // 메인페이지 플레쉬의 통신클릭시 이벤트
    function main_intro() {
        location.href = "/stat/StatMain.aspx?p=stat&cls=03";
    }
    
    // 메인페이지의 플레쉬 방송클릭시 이벤트
    function main_life() {
        location.href = "/stat/StatMain.aspx?p=stat&cls=03";
    }


    // 세계속의방송통신 -> 방송통신 산업통계
    function linkG1S1() {
          
	location.href = "/stat/STMain.aspx?p=stat&cls=03";
        
   	}

 function linkG1S2() {
	 location.href = "/fit/fitMain.aspx?p=fit";
}

    // 거시경제 -> 세게속의 방송통신
   	function linkG2S1() {
   	    
   	   // location.href = "/OverSea/OverSeaMain.aspx?p=oversea&cls=01";
           location.href = "/OverSea/OSMain.aspx?p=oversea&cls=01"; 
   	}


    // ITU
   	function linkG2S2() {
   	    
   	   location.href = "/OverSea/OSMain.aspx?p=oversea&cls=01";   	
   	}
    // IMD
   	function linkG2S3() {
   	    
   	    location.href = "/OverSea/OSMain.aspx?p=oversea&cls=02";
   	}
    // 기타
   	function linkG2S4() {
   	    location.href = "/OverSea/OSMain.aspx?p=oversea&cls=03";
   	}



    // 방송통신통계 -> 거시경제
   	function linkG3S1() {
   	   // location.href = "/stat/StatMain.aspx?p=stat&cls=02";

              location.href = "/MACR/MacrMain.aspx?p=stat&cls=02";
	}
    
    // 방송분야 -> 발간자료실
	function linkG3S2() {
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=11";
	}
    
    // 통신분야 -> 맞춤정보
	function linkG3S3() {
	    
	}

    // 방송통신 융합분야 ->
	function linkG3S4() {
	   
	}

	// 개별기업정보
	function linkG3S5() {
	    
	}
   	

    // 네트워크분야 -> 발간자료
	function linkG4S1() {
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=11";
	}

    // 인터넷분야
	function linkG4S2() {
	    location.href = "/stat/StatMain.aspx?p=stat&cls=04";
	}

    // 이용자 네트워크
	function linkG4S3() {

	    location.href = "/stat/StatMain.aspx?p=stat&cls=04";
	}

    // 네트워크 정책분야
	function linkG4S4() {

	    location.href = "/stat/StatMain.aspx?p=stat&cls=04";
	}

    // 이용자보호
	function linkG4S5() {

	    location.href = "/stat/StatMain.aspx?p=stat&cls=04";
	}


	// 해외방송통신통계
    // 아시아   -> 맞춤통계
   	function linkG5S1() {
   	    location.href = "../fit/fitMain.aspx?p=fit";
	}

    // 서유럽
	function linkG5S2() {
	    
	    location.href = "/Statistics/OverSea/OverSeaMain.aspx?p=oversea&cls=01";
	}

    // 북미/중남미
	function linkG5S3() {

	    location.href = "/Statistics/OverSea/OverSeaMain.aspx?p=oversea&cls=01";
	}
    
    // 아프리카/오세아니아
	function linkG5S4() {

	    location.href = "/Statistics/OverSea/OverSeaMain.aspx?p=oversea&cls=01";
	}
    
    // 중동
	function linkG5S5() {

	    location.href = "/Statistics/OverSea/OverSeaMain.aspx?p=oversea&cls=01";
	}
	
    // 동구/CIS
	function linkG5S6() {

	    location.href = "/Statistics/OverSea/OverSeaMain.aspx?p=oversea&cls=01";
   	}


   	// 발간자료실-IT산업    -> 기관소개
   	function linkG6S1() {
   	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "about") {

   	        fn_UpdatePanel("contactus", "1");
   	    }
   	    else {
   	        location.href = "../aboutus/AboutUs.aspx?pCode=contactus&pValue=1&pMenu=about";
   	    }
	    //location.href = "../Publish/kait01PublishList.aspx?bIdx=11";
   	}
    
    // 연보
   	function linkG6S1_1() {
   	    
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=11";
   	}
   	
	// 발간자료실-월보
	function linkG6S1_2() {
	    //location.href = "../Publish/kait02PublishList.aspx?bIdx=12";
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=12";
    }
    // 발간자료실-IT인력	
	function linkG6S1_3() {
	    //location.href = "../Publish/kait03PublishList.aspx?bIdx=13";
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=13";
    }
    // 발간자료실-실사지수	
	function linkG6S1_4() {
	    //location.href = "../Publish/kait04PublishList.aspx?bIdx=14";
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=14";
	}
	// 발간자료실-기타	
	function linkG6S1_5() {
	    //location.href = "../Publish/kait05PublishList.aspx?bIdx=15";
	    location.href = "../Publish/kait01PublishList.aspx?bIdx=15";
	}
    //korpa
	function linkG6S2() {
	    location.href = "../Publish/KorpaPublishList.aspx?bIdx=8";
	    
    	}
    //kisdi
    function linkG6S3() {
        location.href = "../Publish/KisdiPublishList.aspx?bIdx=7";
    }
    //ktoa
	function linkG6S4() {
	    location.href = "../Publish/KtoaPublishList.aspx?bIdx=9";
    }
    //rapa
	function linkG6S5() {
	    location.href = "../Publish/RapaPublishList.aspx?bIdx=4";
    }
    //kisa
	function linkG6S6() {
	    location.href = "../Publish/KisaPublishList.aspx?bIdx=3";
    }		


    // 맞춤정보
	function linkG7S1() {
	    location.href = "../fit/fitMain.aspx?p=fit";
   	}


    // about us
   	function linkG8S1() {
   	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "about") {

   	        fn_UpdatePanel("contactus", "1");
   	    }
   	    else {
   	        location.href = "../aboutus/AboutUs.aspx?pCode=contactus&pValue=1&pMenu=about";
   	    }
	}

	/*
	function linkG8S2() { 
	    location.href="../aboutus/center.html";
	}
	*/
	
	// 센터소개
    function linkG8S3() {

        if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "about") {
            fn_UpdatePanel("intro", "2");
        }
        else {
            location.href = "../aboutus/AboutUs.aspx?pCode=intro&pValue=2&pMenu=about";
        }
        
	}

    // 센터장 인사말
	function linkG8S4() {

	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "about") {
	        fn_UpdatePanel("greeting", "3");
	    }
	    else {
	        location.href = "../aboutus/AboutUs.aspx?pCode=greeting&pValue=3&pMenu=about";
	    }
	}
    
    // 공지사항
	function linkG8S5() {
	    location.href = "../Notice/NoticeList.aspx?bIdx=2&pNum=3&pMenu=about";
	}
    
    // 보도자료		
	function linkG8S6() {
	    location.href = "../News/NewsList.aspx?bIdx=5&pNum=4&pMenu=about";
	}
    
    // 자료실
	function linkG8S7() {
	    location.href = "../Pds/PdsList.aspx?bIdx=6&pNum=5&pMenu=about";
	}
		

    // 사이트맵
	function linkG9S1() {

	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "etc") {
	        fn_UpdatePanel("sitemap", "1"); // js/common.js 
	    }
	    else {
	        location.href = "../etc/EtcMain.aspx?pCode=sitemap&pValue=1&pMenu=etc";
	    }
	}
    
    // 이용안내
	function linkG9S2() {

	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "etc") {
	        fn_UpdatePanel("info", "2"); // js/common.js 
	    }
	    else {
	        location.href = "../etc/EtcMain.aspx?pCode=info&pValue=2&pMenu=etc";
	    }
	}
    // 이용약관
	function linkG9S3() {
        if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "etc") {
            fn_UpdatePanel("contract", "3");// js/common.js 
        }
        else {
            location.href = "../etc/EtcMain.aspx?pCode=contract&pValue=3&pMenu=etc";
        }
	}
    
    // 개인보호정책
	function linkG9S4() {
	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "etc") {
	        fn_UpdatePanel("contract", "4"); // js/common.js 
	    }
	    else {
	        location.href = "../etc/EtcMain.aspx?pCode=policy&pValue=4&pMenu=etc";
	    }
	}

    // 자주보는 통계
	function linkG9S5() {
	    if (document.getElementById("hidVal") != null && document.getElementById("lbUpdate") != null && fn_ParamCheck("pMenu") == "etc") {
	        fn_UpdatePanel("fstat", "5"); // js/common.js 
	    }
	    else {
	        location.href = "../etc/EtcMain.aspx?pCode=fstat&pValue=5&pMenu=etc";
	    }
    }
	
	
	//******** 개인정보보호(추가) *******
    function linkG9S6() {
	    location.href = "../etc/EtcMain.aspx?pCode=policy&pValue=4&pMenu=etc";
	}


	/* 세계 방송통신 통계자료 오픈 */
	function fn_Open(id, code) {
	    var sUrl = "http://211.43.222.197:22080/KAIT/stat/stat/statData.jsp?TblID=" + id + '&CODE_M=' + code;
	    window.open(sUrl, 'oversea', ',menubar=no,toolbar=no,width=1070,height=650,scrollbars=yes');
	}


	/* 세계 방송통신 페이지 리사이즈 */
	function resizeMyFrame(vheight, vwidth) {

	    var ifrm = document.getElementById("myFrame");

	    ifrm.style.height = vheight;
	    ifrm.style.width = vwidth;

	    ifrm.height = vheight;
	    ifrm.width = vwidth;
        
	    parent.testFunc(ifrm.height, ifrm.width);
	}


	/* 신규 메인화면 플래쉬 URL link */
	function menuURL(selected_menu) {

	    if (selected_menu == "99") {
	        location.href = "/Main/Main.aspx";  //홈	   
	    } else if (selected_menu == "1") {
	     //   window.location.href = '/jsp/apdc_aaa'; //방송통신산업통계 상위
	    } else if (selected_menu == "2") {
	      //  window.location.href = '/jsp/apdc_aaa'; //서계속의방송통신 상위
	    } else if (selected_menu == "3") {
	    //    window.location.href = '/jsp/apdc_aaa'; //거시경제
	    } else if (selected_menu == "4") {
	      //  window.location.href = '/jsp/apdc_aaa'; //발간자료실 상위메뉴
	    } else if (selected_menu == "5") {
	      //  window.location.href = '../aboutus/Map.aspx'; // 기관소계 상위 메뉴
	    }
	    else if (selected_menu == "11") {
	        location.href = "../stat/StatMain.aspx?p=stat&cls=03"; // 산업통계
	    } else if (selected_menu == "12") {
	        location.href = "/fit/fitMain.aspx?p=fit"; ; // 동향정보
	    } else if (selected_menu == "13") {
	        window.location.href = '/jsp/apdc_study_mem_list.jsp'; //연구위원소개
	    } else if (selected_menu == "14") {
	        window.location.href = '/jsp/apdc_charge_list.jsp'; //연락처
	        //위원회 활동
	    }
	    else if (selected_menu == "21") {
	        location.href = "../Abroad/AbroadMain.aspx?p=oversea&cls=01";  // ITU
	    } else if (selected_menu == "22") {
	        location.href = "../Abroad/AbroadMain.aspx?p=oversea&cls=02";  // WEF	        
	    } else if (selected_menu == "23") {
	        location.href = "../Abroad/AbroadMain.aspx?p=oversea&cls=03";  //  ETC 	        
	    }
	    else if (selected_menu == "31") {
	        window.location.href = "../Macr/MacrMain.aspx?id=201"; //거시경제
	    } else if (selected_menu == "32") {
	        window.location.href = "../Macr/MacrMain.aspx?id=202"; //거시경제
	    } 
	    else if (selected_menu == "41") {
	       window.location.href = "../Publish/KaitPublishList.aspx?bIdx=11"; //발간자료실- KAIT
	    } else if (selected_menu == "42") {
	        window.location.href = "../Publish/KaitPublishList.aspx?bIdx=8"; //발간자료실 KORPA
	    } else if (selected_menu == "43") {
	        window.location.href = "../Publish/KaitPublishList.aspx?bIdx=7"; //발간자료실 kISDI
	    } else if (selected_menu == "44") {
	        window.location.href = "../Publish/KaitPublishList.aspx?bIdx=9"; //발간자료실 KTOA
	    }  else if (selected_menu == "45") {
	        window.location.href = "../Publish/KaitPublishList.aspx?bIdx=4"; //발간자료실 RAPA
	    } else if (selected_menu == "46") {
	        window.location.href = "../Publish/KaitPublishList.aspx?bIdx=3"; //발간자료실 KISA
	    }
	    else if (selected_menu == "51") {               // 기관소계 - 오시는길
	        window.location.href = '../aboutus/Map.aspx';
	    } else if (selected_menu == "52") {               // 기관소계 - 오시는길
	        window.location.href = '../aboutus/Intro.aspx';  // 기관소계 - 기관소계
	    }
	    else if (selected_menu == "53") {               // 기관소계 - 오시는길
	        window.location.href = '../aboutus/NoticeList.aspx?bIdx=2&pNum=3&pMenu=about';  // 기관소계 - 공지사항
	    }
	    else if (selected_menu == "54") {
	    window.location.href = '../aboutus/NewsList.aspx?bIdx=5&pNum=4&pMenu=about';  // 기관소계 - 보도자료
	    }
	    
	}

	
