function len_check(msg){ var idx_char = ""; var count = 0; var msg_len = msg.length; for(i = 0; i < msg_len; i++){ idx_char = msg.charAt(i); if(escape(idx_char) == '%0D'){ count++; }else if(escape(idx_char).length > 4){ count += 2; }else{ count++; } } return count; } function Comma(number) { number = '' + number; if (number.length > 3) { var mod = number.length % 3; var output = (mod > 0 ? (number.substring(0,mod)) : ''); for (i=0 ; i < Math.floor(number.length / 3); i++) { if ((mod == 0) && (i == 0)) output += number.substring(mod+ 3 * i, mod + 3 * i + 3); else output+= ',' + number.substring(mod + 3 * i, mod + 3 * i + 3); } return (output); } else return number; } function replaceBackslash(paramStr) { var str = paramStr; if (str.indexOf("\\") >= 0) str = str.replace(/\\/g, "\\\\"); if (str.indexOf("\"") >= 0) str = str.replace(/\"/g, "\\\""); return str; } function confirm_adult() { var a = window.showModalDialog('/FRM/friend/confirm_adult.php', window, 'dialogHeight:445px; dialogWidth:620px; unadorned:yes; help:no; resizable:no; status:no; scroll=no;'); //if (a==1) ifrm_curinfo.location.reload(); document.location.reload(); } function ltrim(str) { var s = new String(str); if (s.substr(0,1) == " ") return ltrim(s.substr(1)); else return s; } function rtrim(str) { var s = new String(str); if(s.substr(s.length-1,1) == " ") return rtrim(s.substring(0, s.length-1)) else return s; } function trim(str) { return ltrim(rtrim(str)); } function activex_notice() { var strTmp=''; var width=481; var height=430; var posx=0; var posy=0; var position=''; posx = 10;//Math.round((screen.width-width)/2-1); posy = 10;//Math.round((screen.height-height)/2-1); var windowName = "ActiveX_Notice"; var position = 'width='+width+',height='+height+',scrollbars=no,status=no,resizable=no,top='+posy+',left='+posx; var url = "http://www.diskman.co.kr/FRM/common/activex_notice.php"; var newwin = window.open("about:blank",windowName,position); if (newwin == null){ alert("ÆË¾÷ Â÷´Ü±â´É ȤÀº ÆË¾÷Â÷´Ü ÇÁ·Î±×·¥ÀÌ µ¿ÀÛÁßÀÔ´Ï´Ù.\n\nµð½ºÅ©¸ÇÀ» ¿øÈ°ÀÌ ÀÌ¿ëÇϽñâ À§Çؼ­´Â ÆË¾÷âÀ» Çã¿ëÇϽðí, ·Î±×ÀÎ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.\n\nµð½ºÅ©¸ÇÀº ºÒÇÊ¿äÇÑ ±¤°í¼º ÆË¾÷âÀº »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù."); }else{ newwin = window.open(url,windowName,position); return newwin; } } function activex_notice4vista() { var strTmp=''; var width=481; var height=430; var posx=0; var posy=0; var position=''; posx = 10;//Math.round((screen.width-width)/2-1); posy = 10;//Math.round((screen.height-height)/2-1); var windowName = "ActiveX_Notice"; var position = 'width='+width+',height='+height+',scrollbars=no,status=no,resizable=no,top='+posy+',left='+posx; var url = "/FRM/common/activex_notice4vista.php"; var newwin = window.open("about:blank",windowName,position); if (newwin == null){ alert("ÆË¾÷ Â÷´Ü±â´É ȤÀº ÆË¾÷Â÷´Ü ÇÁ·Î±×·¥ÀÌ µ¿ÀÛÁßÀÔ´Ï´Ù.\n\nµð½ºÅ©¸ÇÀ» ¿øÈ°ÀÌ ÀÌ¿ëÇϽñâ À§Çؼ­´Â ÆË¾÷âÀ» Çã¿ëÇϽðí, ·Î±×ÀÎ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.\n\nµð½ºÅ©¸ÇÀº ºÒÇÊ¿äÇÑ ±¤°í¼º ÆË¾÷âÀº »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù."); }else{ newwin = window.open(url,windowName,position); return newwin; } } function activex_notice4vista_popup() { var strTmp=''; var width=481; var height=430; var posx=0; var posy=0; var position=''; posx = 10;//Math.round((screen.width-width)/2-1); posy = 10;//Math.round((screen.height-height)/2-1); var windowName = "ActiveX_Notice"; var position = 'width='+width+',height='+height+',scrollbars=no,toolbar=no,status=no,resizable=no,top='+posy+',left='+posx; var url = "/FRM/common/activex_notice4vista.php?activex_popup=ok"; var newwin = window.open("about:blank",windowName,position); if (newwin == null){ alert("ÆË¾÷ Â÷´Ü±â´É ȤÀº ÆË¾÷Â÷´Ü ÇÁ·Î±×·¥ÀÌ µ¿ÀÛÁßÀÔ´Ï´Ù.\n\nµð½ºÅ©¸ÇÀ» ¿øÈ°ÀÌ ÀÌ¿ëÇϽñâ À§Çؼ­´Â ÆË¾÷âÀ» Çã¿ëÇϽðí, ·Î±×ÀÎ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.\n\nµð½ºÅ©¸ÇÀº ºÒÇÊ¿äÇÑ ±¤°í¼º ÆË¾÷âÀº »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù."); }else{ newwin = window.open(url,windowName,position); return newwin; } }