//À¥Á¢±Ù¼º tab,enter±¸ºÐ Ãß°¡ 20130207_shim function chkKeyCode13(e){ var keyCode = (window.event) /*ie*/ ? event.keyCode : e.which; return (13 == keyCode )?true:false; } //º¸µå ¸®½ºÆ® ·Ñ¿À¹ö function onOver(f){ f.style.backgroundColor='#F6F6F6'; } function onOver1(){ alert(""); f.style.backgroundColor='#F6F6F6'; } function onOut(f){ f.style.backgroundColor='#FFFFFF'; } // ¹öÆ° rollover - 20070104 Ãß°¡ function change_img(img_name,img_src) { document[img_name].src=img_src; } // MS IE Patch °ü·Ã - 20071224 Ãß°¡ function __ws__(id) { if (navigator.appName.indexOf("Netscape")==-1) { document.write(id.innerHTML);id.id=""; } } //main°ü·Ã ½ºÅ©¸³Æ® - 20070124 Ãß°¡ function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&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 0 ) { if (szFind == "\n") { szAll = szAll.substr(0, i-1) + szReplace + szAll.substr(i+szFind.length,szAll.length - (i+szFind.length)); } else { szAll = szAll.substr(0, i) + szReplace + szAll.substr(i+szFind.length,szAll.length - (i+szFind.length)); } } else { szAll = szReplace + szAll.substr(i+szFind.length,szAll.length - (i+szFind.length)); } i = i + length; } } return szAll; } ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // ž¸Þ´º 01 ¹Î¿ø function PRINT_TOPMENU_01(PNum, SNum) { document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } //»ç¾÷Àå ¿ÞÂʸ޴º init function initSubmenu(depth1, depth2) { var d1 = ""; var d2 = ""; var menu1 = null; var menu2 = null; var submenu = null; if(depth1 != null && depth1 != "") d1 = "" + eval(depth1); if(depth2 != null && depth2 != "") d2 = "" + eval(depth2); for(var i=1; i<=20; i++) { menu1 = document.getElementById("leftmenu-1-" + i); if(menu1 != null && menu1 != "undefined") { //°°À»¶§ if(i == eval(d1)) { menu1.src = menu1.src.replace(".gif", "_on.gif"); //¼­ºê¸Þ´º°Ë»ç submenu = document.getElementById("leftsubMenu_" + i); if(submenu != null && submenu != "undefined") { //¼­ºê¸Þ´º È°¼º submenu.style.display = "block"; //2depth°Ë»ç for(var j=1; j<=20; j++) { menu2 = document.getElementById("leftmenu-1-" + i + "-" + j); if(menu2 != null && menu2 != "undefined" && j == eval(d2)) { menu2.className = "on"; } menu2 = null; } } submenu = null; } //´Ù¸¦¶§ else { menu1.onmouseover = function () { this.src = this.src.replace(".gif", "_on.gif"); } menu1.onmouseout = function () { this.src = this.src.replace("_on.gif", ".gif"); } } } menu1 = null; } } // À̹ÌÁö ½½¶óÀ̵å function fnRolMove_Type1() { this.GoodsSetTime = null; this.BannerCurrent = 0; this.DateNum = 4; this.TempMenuImg = new Array(); // ¸Þ´º¹öÆ° È¿°ú ÁÖ¼®Ã³¸® // this.TempMenuImg["on"] = new Array(); // this.TempMenuImg["off"] = new Array(); this.Start = function() { this.ObjBox = document.getElementById(this.BoxName); this.ObjPrev = document.getElementById(this.BannerPrev); this.ObjNext = document.getElementById(this.BannerNext); this.ObjBannerBox = document.getElementById(this.BannerName); this.ObjBannerUl = this.ObjBannerBox.getElementsByTagName("ul")[0]; this.ObjBannerLi = this.ObjBannerUl.getElementsByTagName("li"); this.ObjBannerTotalLi = this.ObjBannerLi.length; this.ObjBannerTotalWidth = this.ObjBannerTotalLi * this.BannerWidth; this._Style(); for ( var i=0; i 5 ) { this.BannerCurrent = this.BannerCurrent + ( val - this.BannerCurrent ) * this.Speed; } else { this.BannerCurrent = val; } this.ObjBannerUl.style.left = ( -1 * this.BannerCurrent ) + "px"; if ( this.BannerCurrent != val ) { this.GoodsSetTime = setTimeout(this.fnName + "._moveFrame(" + val + ",'" + fnmove + "')",10); } else { this.CurrentPicNum = this.BannerCurrent / this.BannerWidth; this.BannerPrevLeft = this.BannerCurrent - this.BannerWidth; this.BannerNextLeft = this.BannerCurrent + this.BannerWidth; if ( navigator.appName.indexOf("Explorer") != -1 ) { this.ObjPrev.style.filter="Alpha(opacity=100)"; this.ObjNext.style.filter="Alpha(opacity=100)"; } else { this.ObjPrev.style.opacity=1; this.ObjNext.style.opacity=1; } if ( this.BannerCurrent == 0 ) { this.BannerPrevLeft = 0; if ( navigator.appName.indexOf("Explorer") != -1 ) { this.ObjPrev.style.filter="Alpha(opacity=50)"; } else { this.ObjPrev.style.opacity=0.5; } } else if ( this.BannerCurrent == this.ObjBannerTotalWidth - ( this.BannerWidth * this.DateNum ) ) { this.BannerNextLeft = this.ObjBannerTotalWidth - ( this.BannerWidth * this.DateNum ); if ( navigator.appName.indexOf("Explorer") != -1 ) { this.ObjNext.style.filter="Alpha(opacity=50)"; } else { this.ObjNext.style.opacity=0.5; } } this.ObjPrev.fnName = this.fnName; this.ObjPrev.Num = this.BannerPrevLeft; this.ObjPrev.onclick = function() { eval(this.fnName + "._moveFrame(" + this.Num + ",'prev')" ); return false; } this.ObjNext.fnName = this.fnName; this.ObjNext.Num = this.BannerNextLeft; this.ObjNext.onclick = function() { eval(this.fnName + "._moveFrame(" + this.Num + ",'next')" ); return false; } } } this._Style = function() { this.ObjBox.style.position = "relative"; this.ObjBox.style.height = this.BoxHeight + "px"; this.ObjPrev.style.display = "block"; this.ObjPrev.style.position = "absolute"; this.ObjNext.style.display = "block"; this.ObjNext.style.position = "absolute"; this.ObjBannerBox.style.position = "relative"; this.ObjBannerBox.style.height = this.BannerHeight + "px"; this.ObjBannerBox.style.overflow = "hidden"; this.ObjBannerUl.style.width = this.ObjBannerTotalWidth + "px"; this.ObjBannerUl.style.position = "absolute"; } } //ie6¿¡¼­ ±ô¹ÚÀÓ Á¦°Å try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {} //ºñ¹Ð¹øÈ£ üũ(9ÀÚ ÀÌ»ó ¼ýÀÚ+¿µ¹®+Ư¼ö¹®ÀÚ±âÈ£ Çʼö ÀÔ·Â) function chkPasswordValue(obj,strLang){ if(obj){ var strPW = obj.value; var strLen = strPW.length; if(strPW == "") { alert( !strLang ? "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä." : "Please enter your Password."); obj.focus(); return false; } if (strLen<9 || strLen>20) { alert( !strLang ? "ºñ¹Ð¹øÈ£´Â 9ÀÚ ÀÌ»ó 20ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇØ ÁֽʽÿÀ.\r\nÇöÀç ÀÔ·ÂµÈ ±æÀÌ : " + strLen + "ÀÚ" : "The Password should be 9~20 numbers, special character and English letters long."); obj.focus(); return false; } if(!chkPasswordRule(strPW)){ alert( !strLang ? "ºñ¹Ð¹øÈ£´Â ¿µ¹®+¼ýÀÚ+Ư¼ö¹®ÀÚ±âÈ£ÀÇ Á¶ÇÕÀ¸·Î ÀÛ¼ºÇØ ÁֽʽÿÀ.\r\nƯ¼ö¹®ÀÚ ¹üÀ§´Â Å°º¸µåÀÇ ` ~ ! @ # $ % ^ & * ( ) _ + = / ÀÔ´Ï´Ù." : "The Password should be 9~20 numbers, special character and English letters long.\r\n( special character : ` ~ ! @ # $ % ^ & * ( ) _ + = / )"); obj.focus(); return false; } return true; } } //¿µ¹®, ¼ýÀÚ, Ư¼ö¹®ÀÚ ¿Ü ÀԷ°ª üũ function chkPasswordRule(strPW) { var strEng = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; var strNum = "0123456789"; var strSc= "`~!@#$%^&*()_+=/"; var strNot= "-"; for (var inx = 0; inx < strPW.length; inx++) { if((strNot).indexOf(strPW.charAt(inx)) > -1){ alert("- Àº(´Â) »ç¿ëÇÏ½Ç ¼ö ¾ø´Â Ư¼ö¹®ÀÚÀÔ´Ï´Ù."); return false; } } for (var inx = 0; inx < strPW.length; inx++) { if((strEng+strNum+strSc).indexOf(strPW.charAt(inx)) == -1) return false; } var b2 = false; var b3 = false; var b4 = false; for (var inx = 0; inx < strPW.length; inx++) { if(strEng.indexOf(strPW.charAt(inx)) > -1){ b2 = true; break; } } if(b2){ for (var inx = 0; inx < strPW.length; inx++) { if(strNum.indexOf(strPW.charAt(inx)) > -1){ b3 = true; break; } } if(b3){ for (var inx = 0; inx < strPW.length; inx++) { if(strSc.indexOf(strPW.charAt(inx)) > -1){ b4 = true; break; } } } } return ((b2 && b3 && b4) ? true : false); } function tkDecAjax(name, values){ var hidden = values.hidden; var hmac = values.hmac; var request = new XMLHttpRequest(); request.open("POST", "/jsppage/common/ajaxTkDec.jsp", false); request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); request.setRequestHeader("Cache-Control", "no-cache"); request.send("name=" + name + "&transkey_"+name+"=" + hidden + "&transkey_HM_"+name+"=" + hmac+ "&transkeyUuid=" + tk.transkeyUuid); return request.responseText.replace(/\n/gi, '').trim(); }