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(); } function MM_openBrWindow(theURL,winName,features) { //v2.0 var handle = window.open(theURL,winName,features); handle.focus(); } 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 0) { for(i=0;i 4) total_byte += 2; //ÇѱÛÀÏ °æ¿ì else total_byte ++; //±âŸ if(total_byte <= maxlen) sub_byte = i + 1; //Á¦ÇÑµÈ ±ÛÀÚ¼ö } if(total_byte > maxlen) { alert( maxlen + " ±ÛÀÚ¸¦ Ãʰú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù. \n ÃʰúµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù. "); obj.value = obj_str.substr(0,sub_byte); } obj.focus(); } //¼ýÀÚ ÆÐÅÏ °Ë»ç true : ¼ýÀÚ function CheckNumber(input) { var arrMatch = input.match(/^([0-9]*)$/); if(arrMatch == null) return false; return true; } // E-Mail ÆÐÅÏ °Ë»ç function CheckEmail(strEmail) { var arrMatch = strEmail.match(/^(\".*\"|[A-Za-z0-9_-]([A-Za-z0-9_-]|[\+\.])*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+)$/); if(arrMatch == null) return false; return true; } function CheckEmailAddr(strAddr, strName) { var arrAddr; var arrMatch; var strEmail; if(strAddr.length == 0) return true; arrAddr = strAddr.replace(/,/, ",").split(","); for (var i = 0; i < arrAddr.length; i++) { arrMatch = arrAddr[i].match(/^([^<>]*)<([^<>]+)>$/); if (arrMatch == null) strEmail = arrAddr[i]; else strEmail = arrMatch[2]; if (strEmail != "") { if (CheckEmail(strEmail) == false) { alert(strName + "´ÔÀÇ " + arrAddr[i] + "´Â À߸øµÈ À̸ÞÀÏÁÖ¼ÒÀÔ´Ï´Ù."); return false; } } } return true; } //ÇÑ±Û ÆÐÅÏ °Ë»ç true : ÇÑ±Û function CheckHangle(input) { var form = input; for(var i = 0; i < form.length; i++) { var chr = form.substr(i,1); chr = escape(chr); if (chr.charAt(1) == "u") { chr = chr.substr(2, (chr.length - 1)); if((chr < "AC00") || (chr > "D7A3")) return false; } else return false; } return true; } // ¿µ¹® ÆÐÅÏ °Ë»ç true : ¿µ¹® function CheckEnglish(input) { var arrMatch = input.match(/^([A-Za-z0-9]*)$/); if(arrMatch == null) return false; return true; } function moveNext(v1, v2, num) { if(document.getElementById(v1).value.length == num) { document.getElementById(v2).focus(); } } function window_open( page, name, top, left, width, height ) { option = "'toolbar=no," + "location=no," + "directories=no," + "status=no," + "menubar=no," + "scrollbars=yes," + "resizable=yes," + "width=" + width + "," + "height=" + height + "," + "top=" + top + "," + "left=" + left + "'" window.open( page, name, option ); }