function chkTel(tel){ var filter = /^[0-9]{2,3}\-[0-9]{3,4}\-[0-9]{4,4}$/ if (filter.test(tel) ) return true; return false; } function openPopup(pUrl,pTarget,pWidth,pHeight,pTop,pLeft,pStatus) { if(!pUrl) return; if(!pTarget) pTarget="popup"; if(!pStatus) pStatus="toolbar=no,location=no,status=no,menubar=no,scrollbars=off,resizable=yes" if(!pWidth || !pHeight) { pWidth=100;pHeight=100; } pStatus+=",width="+pWidth+",height="+pHeight; if(!pTop || !pLeft){ pLeft=(screen.width-pWidth)/2; pTop=(screen.height-pHeight)/2; } pStatus+=",top="+pTop+",left="+pLeft; //alert(pUrl+","+pTarget+","+pStatus); var win = window.open(pUrl,pTarget,pStatus); if(win) win.focus(); } function alertHistoryBack(msg) { alert(msg); history.go(-1); } function isNumber(numberString) { x=numberString.length; for(i=0;i '9') return false; } return true; } function IsNum(num) { x=num.length; for(i=0;i '9') return false; } return true; } function onlyNumber() { if((event.keyCode<48)||(event.keyCode>57)) { if((event.keyCode==46)||(event.keyCode==45)){} else{event.returnValue=false;} } } function alertGoHome(msg) { alert(msg); self.location.href='../main/main.php'; } function alertHistoryBack(msg) { alert(msg); history.go(-1); } function commonLoginSubmit() { document.COMMON_LOGIN.submit(); } function trim( value ) { var ReturnValue = ""; 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= 3 check for Flash plugin in plugin array var flashVer = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; var versionRevision = descArray[3]; if (versionRevision == "") { versionRevision = descArray[4]; } if (versionRevision[0] == "d") { versionRevision = versionRevision.substring(1); } else if (versionRevision[0] == "r") { versionRevision = versionRevision.substring(1); if (versionRevision.indexOf("d") > 0) { versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); } } var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ( isIE && isWin && !isOpera ) { flashVer = ControlVersion(); } return flashVer; } // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) { versionStr = GetSwfVer(); if (versionStr == -1 ) { return false; } else if (versionStr != 0) { if(isIE && isWin && !isOpera) { // Given "WIN 2,0,0,11" tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] tempString = tempArray[1]; // "2,0,0,11" versionArray = tempString.split(","); // ['2', '0', '0', '11'] } else { versionArray = versionStr.split("."); } var versionMajor = versionArray[0]; var versionMinor = versionArray[1]; var versionRevision = versionArray[2]; // is the major.revision >= requested major.revision AND the minor version >= requested minor if (versionMajor > parseFloat(reqMajorVer)) { return true; } else if (versionMajor == parseFloat(reqMajorVer)) { if (versionMinor > parseFloat(reqMinorVer)) return true; else if (versionMinor == parseFloat(reqMinorVer)) { if (versionRevision >= parseFloat(reqRevision)) return true; } } return false; } } function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += ' '; } str += ''; } else { str += ''; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += '<\/embed>'; Flash_html += '<\/object>'; document.write(Flash_html); document.onfocusin=bluring; } // 異붽???: BokiSarang // 異붽???: 20070530 // 吏€?곗? 留덉떗?쒖삤 function swf_r(src, w, h) { var Flash_html = ""; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += ''; Flash_html += '<\/embed>'; Flash_html += '<\/object>'; document.write(Flash_html); document.onfocusin=bluring; } //?뚮옒??9踰꾩쟾 ?쎌엯肄붾뱶 硫붾돱?깆뿉??湲곗〈 蹂€?섏뿉 ?섏씠吏€ 踰덊샇瑜?異붽?濡??뚮옒?ъ뿉 ?꾨떖?쒕떎 function swf9(src,w,h,nav){ if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js.");//js?뚯씪 ?놁쓣 寃쎌슦 } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width',w, 'height', h, 'src', src, 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'left', 'play', 'true', 'loop', 'true', 'scale', 'noscale', 'wmode', 'transparent', 'devicefont', 'false', 'id', src, 'bgcolor', '#ebebeb', 'name', src, 'menu', 'false', 'allowFullScreen', 'false', 'allowScriptAccess','always', 'movie', src, 'salign', 'lt', 'FlashVars', 'nav='+nav ); //end AC code } } function get_IEscroll(choice) { self.scrollTo(0,0); if (document.all) { document.body.scroll = choice; } } function bluring(){ if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); } function catalogueWindowOpen(mypage,myname) { winWidth = 1005; winHeight = 723; winPosLeft = ((screen.width - winWidth) / 2) - 5; winPosTop = ((screen.height - winHeight) / 2) - 15; winOpt = "width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft; win = window.open(mypage,myname, winOpt + ""); win.focus(); } function openVR(url) { var width=940; var height=650; var posx=(screen.width-width)/2; var posy=(screen.height-height)/2; var position="width="+width+",height="+height+",top="+posy+",left="+posx+",resizable=1,status=1,scrollbars=no,toolbar=no,location=no,directories=no"; var vrPopup = window.open(url,"VR",position); vrPopup.focus(); }