function click() { if (event.button != 1) { alert('Do not use mouse right button.'); } } document.onmousedown=click; // png À̹ÌÁö function setPng24(obj) { obj.width=obj.height=1; obj.style.width = obj.width + "px"; obj.style.height = obj.height + "px"; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src=''; return ''; } // ±âº» Ç÷¡½Ã function flashObj(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick { document.write(' '); document.write(' '); document.write(' '); if ( Flag == null || Flag != 'N' ) { document.write(' '); } document.write(' '); document.write(' '); document.write(' '); document.write(' '); if ( Frm == 'Y' ) { // form ÅÂ±× µé¾î°¡´Â ÆäÀÌÁö¿¡ Àû¿ë eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; "); } } //quick_top function getPosition(){ var start, end, scale, term; start = parseInt (document.getElementById('btn_top').style.top, 10); end = document.documentElement.scrollTop +218; term = 5; if ( start != end ) { scale = Math.ceil( Math.abs( end - start ) / 20 ); if ( end < start ) scale = -scale; document.getElementById('btn_top').style.top = parseInt (document.getElementById('btn_top').style.top, 10)+ scale + "px"; term = 1; } setTimeout ("getPosition()", term); } function moveBanner() { document.getElementById('btn_top').style.top = document.documentElement.scrollTop + 100 + "px"; //¼ýÀÚ°¡ °°À¸¸é ½½¶óÀÌµå ¾ø´Ù. getPosition(); return true; } //ÆË¾÷¶ç¿ì±â ½ºÅ©·Ñ ¾ø´Â °Å function popsn(url,trgt,w,h) { window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no,status=no'); } //ÆË¾÷¶ç¿ì±â ½ºÅ©·Ñ ÀÖ´Â °Å function popsy(url,trgt,w,h) { window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no,status=no,left=0,top=0'); } //ÅÇ function Over(imgName) { imgName.src = imgName.src.replace(/(_on.gif|.gif)$/i, "_on.gif"); imgName.src = imgName.src.replace(/(_on.jpg|.jpg)$/i, "_on.jpg"); } function Out(imgName) { imgName.src = imgName.src.replace(/(_on.gif|.gif)$/i, ".gif"); imgName.src = imgName.src.replace(/(_on.jpg|.jpg)$/i, ".jpg"); } function tabOver(tabName){ tabName = tabName.className = "on"; } function tabOut(tabName){ tabName = tabName.className = ""; } function layer_events() { if (document.layers) { document.layers['gnb_area'].captureEvents(Event.MOUSEOVER|Event.MOUSEOUT|Event.MOUSEUP); document.layers['gnb_area'].onmouseout = new Function("this.style.height='115'"); document.layers['gnb_area'].onmouseover = new Function("this.style.height='260'"); } } function display_open(n) { div_name = document.getElementById(n); if(div_name.style.display == "block"){ div_name.style.display ="none"; }else{ div_name.style.display ="block"; } } //chgHeight function chgHeight(n) { swf_name = document.getElementById("top_gnb"); if(n == "open"){ swf_name.style.height ="460px"; }else{ swf_name.style.height ="138px"; } } //faq_list function faq(n) { for(i = 1; i <= 10; i++){ faq_con = document.getElementById("con"+i); faq_title = document.getElementById("title"+i); if(i == n){ faq_con.style.display = "block"; faq_title.className = "title_on"; }else{ faq_con.style.display = "none"; faq_title.className = "title"; } } } //Á¶Á÷¾È³» function organogram1(n) { for(i = 1; i <= 9; i++){ tab_img = document.getElementById("txt"+i); con_div = document.getElementById("con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/about/organogram1_txt"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/about/organogram1_txt"+i+".gif"; con_div.style.display ="none"; } } } //CI function ci_view(n) { for(i = 1; i <= 3; i++){ tab_img = document.getElementById("ci_tab"+i); con_div = document.getElementById("ci_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/about/ci_tab"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/about/ci_tab"+i+".gif"; con_div.style.display ="none"; tab_img.src.replace(/(_on.gif|.gif)$/i, "_on.gif"); } } } //½Ã¼³ ¹× ºÎ¼­À§Ä¡ function location_view(n) { for(i = 1; i <= 2; i++){ tab_img = document.getElementById("location_tab"+i); con_div = document.getElementById("location_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/about/location_tab"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/about/location_tab"+i+".gif"; con_div.style.display ="none"; } } } //¼¼°èűǵµ Áöµµ¿¬¼ö¿ø function inservice(n) { for(i = 1; i <= 2; i++){ if(i == 1){ i2 = 1; }else{ i2 = 4; } tab_img = document.getElementById("inservice_tab"+i2); con_div = document.getElementById("inservice_con"+i2); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/education/inservice_tab"+i2+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/education/inservice_tab"+i2+".gif"; con_div.style.display ="none"; } } } //űǵµ¿ª»ç function tae_history(n) { for(i = 1; i <= 7; i++){ tab_img = document.getElementById("tae_tab"+i); con_div = document.getElementById("tae_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/data/tab_tae_history0"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/data/tab_tae_history0"+i+".gif"; con_div.style.display ="none"; } } } //űǵµÁ¤½Å function tae_mind(n) { for(i = 1; i <= 3; i++){ tab_img = document.getElementById("mind_tab"+i); con_div = document.getElementById("mind_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/data/tab_tae_mind0"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/data/tab_tae_mind0"+i+".gif"; con_div.style.display ="none"; } } } //history function history(n) { for(i = 1; i <= 4; i++){ tab_img = document.getElementById("history_tab"+i); con_div = document.getElementById("history_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/about/history_tab"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/about/history_tab"+i+".gif"; con_div.style.display ="none"; } } } //±¹±â¿ø½Ã¹ü´Ü-¼Ò°³-¿¬Çõ function ex_history(n) { for(i = 1; i <= 2; i++){ tab_img = document.getElementById("ex_history_tab"+i); con_div = document.getElementById("ex_history_con"+i); history_img = document.getElementById("ex_history_img"); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/pr/tab_ex_history"+i+"_on.gif"; con_div.style.display ="block"; history_img.src="/resources/images/kukkiwonEFront/pr/ex_history_img"+i+".jpg"; }else{ tab_img.src="/resources/images/kukkiwonEFront/pr/tab_ex_history"+i+".gif"; con_div.style.display ="none"; } } } //űǵµ±â¼ú function resizeFlash(h) { document.getElementById("basic").style.height = h + "px"; document.getElementById("basic_swf").style.height = h + "px"; } function resize_body(resize) { } //űǵµ±â¼ú function technique(ctg1,ctg2,ctg3,ctg4) { all_lanth = document.getElementById("technique_allcon").getElementsByTagName("div"); depth2 = document.getElementById("technique_depth2") for(i = 0; i < all_lanth.length; i++){ if (all_lanth[i].id == "tech_con"+ctg1+"_"+ctg2){ all_lanth[i].style.display = "block"; depth2.style.display ="block"; } else if (ctg3 != null){ if (all_lanth[i].id == "tech_con"+ctg1+"_"+ctg2+"_"+ctg3){ all_lanth[i].style.display = "block"; depth2.style.display ="none"; }else{ all_lanth[i].style.display = "none"; depth2.style.display ="none"; } }else{ all_lanth[i].style.display = "none"; } } resize = document.getElementById("technique_allcon").offsetHeight; document.getElementById("contents").style.height = resize + 225 + "px"; } function awardees(n){ for(i = 1; i <= 14; i++){ con_div = document.getElementById("awardees_con"+i); if(i == n){ con_div.style.display ="block"; }else{ con_div.style.display ="none"; } } } //¸ÞÀÎ function index_news(n) { for(i = 1; i <= 2; i++){ tab_img = document.getElementById("index_news_tab"+i); con_div = document.getElementById("index_news_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/index/tab_news0"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/index/tab_news0"+i+".gif"; con_div.style.display ="none"; } } } //ÇÑ Áú¹®´ç ¼öÁ¤ÆË¾÷ function directSeeing(){ popupMain = new Popup("popupMain", "/viewfront/eng/popup.jsp", {overlay:true,top: 127, left: 0, width: 0, height: 0, opacity:90}); } //one stop service check for poom/dan function directPop(){ //alert('º¹»çµÇ¾ú½À´Ï´Ù. \n ºÙ¿©³Ö±â(Ctrl+v)¸¦ ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù.'); window.open("http://www.kukkiwon.or.kr/english/new_examination/new_english/pop.jsp","_blank","fullscreen=no,menubar=no,status=yes,toolbar=no,titlebar=no,location=no,scrollbar=no,width=500,height=280"); } function viewClose(){ popupMain.close(); } //history function infomation(n) { for(i = 1; i <= 2; i++){ tab_img = document.getElementById("infomation_tab"+i); con_div = document.getElementById("infomation_con"+i); if(i == n){ tab_img.src="/resources/images/kukkiwonEFront/promotion/tab_infomaiton0"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="/resources/images/kukkiwonEFront/promotion/tab_infomaiton0"+i+".gif"; con_div.style.display ="none"; } } }