var NS4; var IE4; var mouse_top; var mouse_left; var scroll_top; var scroll_left; var event_id = "none"; var status_over = false; var parent_menu_name = "menu_parent"; var child_menu_array = ["menu_child1"]; var child_menu_array2 = ["menu_child2"]; var submenu_left_indent = 70; var column_height = 18; var submenu_top_indent = 0; var mainmenu_top_indent = 0; var menuover_bgcolor = "#666666"; var menuover_fgcolor = "#ffffff"; var default_menuover_bgcolor = "#ffffff"; var default_menuover_fgcolor = "#000000"; NS4 = (document.layers); IE4 = (document.all); isWin = (navigator.appVersion.indexOf("Win") != -1) if (NS4) { document.captureEvents(Event.CLICK) document.onclick = MouseDown; } else if (IE4) { document.onclick = MouseDown; } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); 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 mouse_top + mainmenu_top_indent) yPos = event.clientY + menuLocBod.scrollTop; else yPos = (event.clientY + menuLocBod.scrollTop) - mainmenu_top_indent; if (mouse_top - mainmenu_top_indent < 0) yPos = event.clientY + menuLocBod.scrollTop; eval(ar_id + ".style.pixelTop =" + yPos); eval(ar_id + ".style.pixelLeft =" + xPos); eval(ar_id + ".style.display = \"\""); } function viewSubMenu(e, ar_obj, ar_id) { if (ar_id == "none") return; event_id = ar_id; parent_top = menu_parent.style.pixelTop; parent_left = menu_parent.style.pixelLeft; child_top = ar_obj.style.pixelTop; child_left = ar_obj.style.pixelLeft; screen_height = window.document.body.offsetHeight; screen_width = window.document.body.offsetWidth; mouse_top = e.y; mouse_left = e.x; menuLocBod = window.document.body; xPos = menuLocBod.scrollLeft + parent_left + submenu_left_indent; eval("submenu_top_indent = " + ar_id + ".children[0].children[0].children.length"); submenu_top_indent = submenu_top_indent * column_height; if (screen_height > mouse_top + submenu_top_indent) yPos = event.clientY + menuLocBod.scrollTop; else yPos = (event.clientY + menuLocBod.scrollTop) - submenu_top_indent; if (mouse_top - submenu_top_indent < 0) yPos = event.clientY + menuLocBod.scrollTop; eval(ar_id + ".style.pixelTop =" + yPos); eval(ar_id + ".style.pixelLeft =" + xPos); eval(ar_id + ".style.display = \"\""); } function menuOut(ar_obj) { status_over = false; changeColor(ar_obj); } function changeColor(ar_obj) { if (ar_obj.children[0].style.color == menuover_fgcolor) { ar_obj.children[0].style.color = default_menuover_fgcolor; ar_obj.children[0].style.backgroundColor = default_menuover_bgcolor; } else { ar_obj.children[0].style.backgroundColor = menuover_bgcolor; ar_obj.children[0].style.color = menuover_fgcolor; } } function SetMemo() { setTimeout("SetMemo();",500); } function popup(goPageURL,goPageName,goPageWidth,goPageHeight) { window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',top=' + ((screen.height/2) - (goPageHeight/2)) + ',left=' + ((screen.width/2) - (goPageWidth/2)) + ',menubar=no, scrollbars=no, resizable=no, marginwidth=0, marginheight=0 '); } function popup2(goPageURL,goPageName,goPageWidth,goPageHeight) { window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',top=' + ((screen.height/2) - (goPageHeight/2)) + ',left=' + ((screen.width/2) - (goPageWidth/2)) + ' ,menubar=no, scrollbars=yes, resizable=no, marginwidth=0, marginheight=0'); } function popup3(goPageURL,goPageName,goPageWidth,goPageHeight) { window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',top=0,menubar=no, scrollbars=yes, resizable=no, marginwidth=0, marginheight=0'); } function popup4(goPageURL,goPageName,goPageWidth,goPageHeight) { window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',top=200,left=350,menubar=no, scrollbars=no, resizable=no, marginwidth=0, marginheight=0'); } function Club_Search() { if(club_searchForm.club_search_word.value.search(/\S/)<0) { alert("°Ë»öÇÒ Å¬·´ÀÇ À̸§À» ÀÔ·ÂÇØ Áֽñ⠹ٶø´Ï´Ù."); club_searchForm.club_search_word.focus(); return false; } window.open("","searchpop"); document.club_searchForm.target = "searchpop"; document.club_searchForm.action = "/clubone/clubone_index.htm?return_url=cone_allclub_find.htm"; document.club_searchForm.submit(); } function Club_Search2() { if(club_searchForm2.club_search_word.value.search(/\S/)<0) { alert("°Ë»öÇÒ Å¬·´ÀÇ À̸§À» ÀÔ·ÂÇØ Áֽñ⠹ٶø´Ï´Ù."); club_searchForm2.club_search_word.focus(); return false; } window.open("","searchpop"); document.club_searchForm2.target = "searchpop"; document.club_searchForm2.action = "/clubone/clubone_index.htm?return_url=cone_allclub_find.htm"; document.club_searchForm2.submit(); } /** * µÎ ³¯Â¥ÀÇ Â÷À̸¦ ÀÏÀÚ·Î ±¸ÇÑ´Ù.(Á¶È¸ Á¾·áÀÏ - Á¶È¸ ½ÃÀÛÀÏ) * * _a_t_ param val1 - Á¶È¸ ½ÃÀÛÀÏ(³¯Â¥ ex.2002-01-01) * _a_t_ param val2 - Á¶È¸ Á¾·áÀÏ(³¯Â¥ ex.2002-01-01) * _a_t_ return ±â°£¿¡ ÇØ´çÇÏ´Â ÀÏÀÚ */ function calDateRange(val1, val2) { var FORMAT = "-"; // FORMATÀ» Æ÷ÇÔÇÑ ±æÀÌ Ã¼Å© if (val1.length != 10 || val2.length != 10) return null; // FORMATÀÌ ÀÖ´ÂÁö üũ if (val1.indexOf(FORMAT) < 0 || val2.indexOf(FORMAT) < 0) return null; // ³âµµ, ¿ù, ÀÏ·Î ºÐ¸® var start_dt = val1.split(FORMAT); var end_dt = val2.split(FORMAT); // ¿ù - 1(ÀÚ¹Ù½ºÅ©¸³Æ®´Â ¿ùÀÌ 0ºÎÅÍ ½ÃÀÛÇϱ⠶§¹®¿¡...) // Number()¸¦ ÀÌ¿ëÇÏ¿© 08, 09¿ùÀ» 10Áø¼ö·Î ÀνÄÇÏ°Ô ÇÔ. start_dt[1] = (Number(start_dt[1]) - 1) + ""; end_dt[1] = (Number(end_dt[1]) - 1) + ""; var from_dt = new Date(start_dt[0], start_dt[1], start_dt[2]); var to_dt = new Date(end_dt[0], end_dt[1], end_dt[2]); return (to_dt.getTime() - from_dt.getTime()) / 1000 / 60 / 60 / 24; } function goto_iFrameurl(url) { top.location.href=url; } function goto_iFrameurl_parent(url) { parent.location.href=url; } function goto_url_page(url) { window.open(url); } function goto_club(url) { parent.location.href="http://baseball.clubone.kr/"+url; // ("http://baseball.clubone.kr/"+url); } function goto_club_new(url) { top.location.href="http://baseball.clubone.kr/"+url; } function goto_club_pop(url) { window.open("http://baseball.clubone.kr/"+url); } function goto_league_pop(url) { window.open("http://league.clubone.kr/"+url); } function goto_Page(url) { top.location.href = "http://www.clubone.kr" + url; } function goto_mainpage() { top.location.href="http://www.clubone.kr"; } function goto_logout() { logoutform.submit(); } function goto_logout2() { logoutform2.submit(); } document.onkeydown = trapRefresh; function trapRefresh() { if (event.keyCode == 116) { event.keyCode = 0; event.cancelBubble = true; event.returnValue = false; document.location.reload(); } } function Num_chk(form) { var str = form.value; for(i=0;i '9') {alert("¼ýÀÚ¸¸ °¡´É ÇÕ´Ï´Ù."); form.value=""; form.focus(); return false;} } } function imgChange(code){ iLen = top.document.all.img_point.length; for(i=0;i