var __SITE_DOMAIN = "www.sportal.or.kr"; var __WEB_ROOT_PATH = "/vm/archery/"; var __ROOT_PATH = "/export/home2/vcompany/vm/archery/"; var __HOST = "www.sportal.or.kr"; var __PORT = "80"; // ž¸Þ´º Ç÷¡½Ã ¸µÅ© ó¸® function Go_Menu(n) { // ¿¬ÇÕȸ(ÇùÀÇȸ) ¼Ò°³ if (n == "A0") location.href = '../introduction/content.html?_cate=1'; else if (n == "A1") location.href = '../introduction/content.html?_cate=1'; else if (n == "A2") location.href = '../introduction/content.html?_cate=2'; else if (n == "A3") location.href = '../introduction/content.html?_cate=3'; else if (n == "A4") location.href = '../introduction/content.html?_cate=4'; else if (n == "A5") location.href = '../introduction/content.html?_cate=5'; else if (n == "A6") location.href = '../introduction/content.html?_cate=6'; else if (n == "A7") location.href = '../introduction/content.html?_cate=7'; else if (n == "A8") location.href = '../introduction/content.html?_cate=8'; else if (n == "A9") location.href = '../introduction/content.html?_cate=9'; // Á¾¸ñ¼Ò°³ else if (n == "B0") location.href = '../gameitem/content.html?_cate=1'; else if (n == "B1") location.href = '../gameitem/content.html?_cate=1'; else if (n == "B2") location.href = '../gameitem/content.html?_cate=2'; else if (n == "B3") location.href = '../gameitem/content.html?_cate=3'; else if (n == "B4") location.href = '../gameitem/content.html?_cate=4'; else if (n == "B5") location.href = '../gameitem/content.html?_cate=5'; else if (n == "B6") location.href = '../gameitem/content.html?_cate=6'; else if (n == "B7") location.href = '../gameitem/content.html?_cate=7'; else if (n == "B8") location.href = '../gameitem/content.html?_cate=8'; else if (n == "B9") location.href = '../gameitem/content.html?_cate=9'; // °æ¿µ°ø½Ã else if (n == "C0") location.href = '../managenote/'; else if (n == "C1") location.href = '../managenote/board.html?_cate=1'; else if (n == "C2") location.href = '../managenote/board.html?_cate=2'; else if (n == "C3") location.href = '../managenote/board.html?_cate=3'; else if (n == "C4") location.href = '../managenote/board.html?_cate=4'; else if (n == "C5") location.href = '../managenote/board.html?_cate=5'; else if (n == "C6") location.href = '../managenote/board.html?_cate=6'; else if (n == "C7") location.href = '../managenote/board.html?_cate=7'; else if (n == "C8") location.href = '../managenote/board.html?_cate=8'; else if (n == "C9") location.href = '../managenote/board.html?_cate=9'; // ÁÖ¿ä»ç¾÷ else if (n == "D0") location.href = '../project/board.html?_cate=1'; else if (n == "D1") location.href = '../project/board.html?_cate=1'; else if (n == "D2") location.href = '../project/board.html?_cate=2'; else if (n == "D3") location.href = '../project/board.html?_cate=3'; else if (n == "D4") location.href = '../project/board.html?_cate=4'; else if (n == "D5") location.href = '../project/board.html?_cate=5'; else if (n == "D6") location.href = '../project/board.html?_cate=6'; else if (n == "D7") location.href = '../project/board.html?_cate=7'; else if (n == "D8") location.href = '../project/board.html?_cate=8'; else if (n == "D9") location.href = '../project/board.html?_cate=9'; // ¾Ë¸²¸¶´ç else if (n == "E0") location.href = '../notice/'; else if (n == "E1") location.href = '../notice/board.html?_cate=1'; else if (n == "E2") location.href = '../notice/board.html?_cate=2'; else if (n == "E3") location.href = '../notice/board.html?_cate=3'; else if (n == "E4") location.href = '../notice/magazine.html'; else if (n == "E5") location.href = '../poll/'; // Ŭ·´ else if (n == "F0") location.href = '../club/'; else if (n == "F1") location.href = '../club/'; // Âü¿©¸¶´ç else if (n == "G0") location.href = '../community/'; else if (n == "G1") location.href = '../community/board.html?_cate=1'; else if (n == "G2") location.href = '../community/board.html?_cate=2'; else if (n == "G3") location.href = '../community/board.html?_cate=3'; else if (n == "G4") location.href = '../community/board.html?_cate=4'; else if (n == "G5") location.href = '../community/board.html?_cate=5'; else if (n == "G6") location.href = '../community/board.html?_cate=6'; else if (n == "G7") location.href = '../community/board.html?_cate=7'; else if (n == "G8") location.href = '../community/board.html?_cate=8'; else if (n == "G9") location.href = '../community/board.html?_cate=9'; // °ü·Ã»çÀÌÆ® else if (n == "H0") location.href = '../refsite/'; else if (n == "H1") location.href = '../refsite/'; else if (n == "H2") location.href = '../refsite/content.html?_cate=2'; // ´ëȸ°ü¸® else if (n == "I0") location.href = '../game/'; else if (n == "I1") location.href = '../game/'; } // µ¿È£È¸ Ç÷¡½Ã ¸µÅ© ó¸® function Go_Club(sido,gugun) { if (gugun == null || gugun == "undefined") var gubun = ""; list_frame.location.href = 'list_frame.html?sido='+sido+'&gugun='+gugun; return; } // ±¸Àå Ç÷¡½Ã ¸µÅ© ó¸® function Go_Center(sido,gugun) { if (gugun == null || gugun == "undefined") var gubun = ""; list_frame.location.href = 'center_list_frame.html?sido='+sido+'&gugun='+gugun; return; } // ¹Ù·Î°¡±â µî¿¡¼­ ÁöÁ¤µÈ URL °ú Target À¸·Î À̵¿ÇÑ´Ù. function Go_OpenWin(url,target,setting) { if (target == null || target == "undefined") var target = "_blank"; if (setting == null || setting == "undefined") var setting = ""; if (url == null || url == "undefined") return; window.open(url,target,config=setting); return; } // ¸ÞÀÎ »çÀÌÆ® °Ë»ö function Main_Search_Check() { var form = document.main_search; } // À̹ÌÁö ÆË¾÷â ¶ç¿ì±â function Popup_Img(src,target,x,y,opt) { if (src == '') { return; } if (x < 0) { x = 0; } if (y < 0) { y = 0; } if (opt != '') { var opt = "," + opt; } var LeftPosition = (screen.width) ? (screen.width-x)/2 : 100; var TopPosition = (screen.height) ? (screen.height-y)/2-0 : 100; var Settings = 'left='+LeftPosition+',top='+TopPosition+',width='+x+',height='+y+opt; window.open(__WEB_ROOT_PATH+"module/popup_img.html?src="+src, target, config=Settings); } /* --------------------------------------------------------------------------------------- MM_Script ¸ðÀ½ (½ÃÀÛ) --------------------------------------------------------------------------------------- */ function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 2) { if ((img = MM_findObj(args[2])) != null && !img.MM_init) { img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src; if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array(); nbArr[nbArr.length] = img; for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } else if (event == "over") { document.MM_nbOver = nbArr = new Array(); for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1]; nbArr[nbArr.length] = img; } } else if (event == "out" ) { for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; } } else if (event == "down") { if ((nbArr = document[grpName]) != null) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } document[grpName] = nbArr = new Array(); for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } function MM_showHideLayers() { //v3.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 44032 && temp.charCodeAt() <= 55203)){ return true; } } return false; } // °ø¹éÁ¦°Å function SpaceCut(chk) { chk = chk.replace(/^[ \t]*|[ \t]*$/g,""); return chk; } // ÇѱÛÁ¦°Å function HangulCut(str) { var retStr; var tmpStr; var temp; var onechar; retStr = ""; tmpStr = new String(str); temp = tmpStr.length; for (k=0;k 57) return false; } else if (mode == "a") { // ¼Ò¹®ÀÚ if (event.keyCode < 97 || event.keyCode > 122) return false; } else if (mode == "A") { // ´ë¹®ÀÚ if (event.keyCode < 65 || event.keyCode > 90) return false; } else if (mode == "1a" || mode == "a1") { // ¼ýÀÚ + ¼Ò¹®ÀÚ if ( !((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 97 && event.keyCode <= 122)) ) return false; } else if (mode == "1A" || mode == "A1") { // ¼ýÀÚ + ´ë¹®ÀÚ if ( !((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 65 && event.keyCode <= 90)) ) return false; } else if (mode == "1aA" || mode == "1Aa" || mode == "a1A" || mode == "aA1" || mode == "A1a" || mode == "Aa1") { // ¼ýÀÚ + ¼Ò¹®ÀÚ + ´ë¹®ÀÚ if ( !((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 97 && event.keyCode <= 122) || (event.keyCode >= 65 && event.keyCode <= 90)) ) return false; } return true; } // 3ÀÚ¸®¸¶´Ù ÄÞ¸¶¸¦ Âï¾î ¹ÝȯÇÑ´Ù. function Conv3Comma(val) { var ret = ""; for (var i = val.length-1; i >= 0; i--) { if ((val.length-i) % 3 == 1 && val.length-i > 1) ret = "," + ret; ret = val.substring(i,i+1) + ret; } return ret; } // ÁöÁ¤ÇÑ ¹®ÀÚ¸¦ ÁöÁ¤ÇÑ °¹¼öÀÇ ¹®ÀÚ¿­·Î ¾Õ ¶Ç´Â µÚ¿¡ Ãß°¡ÇÑ´Ù. // addString(´ë»ó¹®ÀÚ¿­,Ãß°¡ÇÒ¹®ÀÚ¿­,Ãß°¡°¹¼ö,Ãß°¡À§Ä¡) => Ãß°¡À§Ä¡°ªÀÌ »ý·«½Ã ¾ÕÂÊ¿¡ ºÙÀÓ. function AddString(str,add,cnt,pos) { if (pos == null || pos == "undefined" || pos == "") pos = "front"; var str = str.toString(); var add = add.toString(); var cnt = parseInt(cnt,10); var len = str.length; for (var i=0; i<(cnt-len); i++) { if (pos == "front") str = add + str; else str = str + add; } return str; } // µÎ ½Ã°£ÀÇ Â÷À̰ªÀ» ¹ÝȯÇÑ´Ù. (¹Ýȯ°ª - 4ÀÚ¸® ¼ýÀÚ [HH:MM]) function TimeGap(time1,time2) { if (time1 == null || time1 == "") time1 = "0"; if (time2 == null || time2 == "") time2 = "0"; time1 = addString(time1,"0",4).toString(); time2 = addString(time2,"0",4).toString(); hour1 = parseFloat(time1.substring(0,2)); min1 = parseFloat(time1.substring(2,4)); hour2 = parseFloat(time2.substring(0,2)); min2 = parseFloat(time2.substring(2,4)); var hour_a = (hour1 * 60) + min1; var hour_b = (hour2 * 60) + min2; var hour_c = Math.abs(hour_b - hour_a); var hour = addString(parseInt(Math.floor((hour_c) / 60),10),"0",2); var min = addString(parseInt((hour_c) % 60,10),"0",2); var result = hour+min; return result; } // µÎ ½Ã°£ÀÇ ÇÕÀ»À» ¹ÝȯÇÑ´Ù. (¹Ýȯ°ª - 4ÀÚ¸® ¼ýÀÚ [HH:MM]) function TimeSum(time1,time2) { if (time1 == null || time1 == "") time1 = "0"; if (time2 == null || time2 == "") time2 = "0"; time1 = addString(time1,"0",4).toString(); time2 = addString(time2,"0",4).toString(); hour1 = parseFloat(time1.substring(0,2)); min1 = parseFloat(time1.substring(2,4)); hour2 = parseFloat(time2.substring(0,2)); min2 = parseFloat(time2.substring(2,4)); var hour_a = hour1 + hour2; var hour_b = parseFloat(Math.floor((min1+min2) / 60)); var hour = addString((hour_a + hour_b),"0",2); var min = addString(parseInt((min1+min2) % 60,10),"0",2); var result = hour+min; return result; } /* --------------------------------------------------------------------------------------- °ªÀÇ À¯È¿¼º°Ë»ç °ü·Ã ½ºÅ©¸³Æ® ¸ðÀ½ (³¡) --------------------------------------------------------------------------------------- */ function replacejs(id){ document.write(id.value); id.id=''; } //Ç÷¡½¬ Å׵θ®¹®Á¦ function openflash(width,height,src){ return ""; } //document.write(""); currentpage = location.href; if ((currentpage.indexOf('egym',0) == -1) && (currentpage.indexOf('ejokgu',0) == -1) && (currentpage.indexOf('etaekkyon',0) == -1) ) document.write(" "); window.attachEvent('onload', function() { var objs = document.all.tags('OBJECT'); var embs = document.all.tags('EMBED'); for (var i=0,cnt=objs.length; i