var ACTIVE_WINDOW; /** * ÀÚ¹ÙÀÇ trim()»ç¿ë */ String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/gi, ""); } String.prototype.replaceAll = function(str1, str2){ var temp_str = ""; if (this.trim() != "" && str1 != str2){ temp_str = this.trim(); while (temp_str.indexOf(str1) > -1) { temp_str = temp_str.replace(str1, str2); } } return temp_str; } /** * ÀÚµ¿ Tab (¼ýÀÚüũ) */ function moveNumFocus(input1,input2,length) { if(numbercheck(input1)){ if(input1.value.length>=length) { input2.focus(); input2.select(); } } } function numbercheck(obj){ var checkstr = "0123456789"; var val = obj.value; if (val.trim() != "") { for (var j = 0; j < val.length; j++) { if (checkstr.indexOf(val.substr(j,1)) < 0) { obj.focus(); return false; } } } return true; } /** * ÀÚµ¿ Tab (¼ýÀÚüũ ¾ÈÇÔ) */ function moveFocus(input1,input2,length) { if(input1.value.length>=length) { input2.focus(); input2.select(); } } /** * ¿øÇÏ´Â ÆäÀÌÁö·Î À̵¿ÇÕ´Ï´Ù. */ function nextForm(obj,go){ for(var i = 0; i < obj.length; i++){ obj[i].style.display = "none"; } obj[go].style.display = ""; } /** * ¿øÇÏ´Â ÆäÀÌÁö·Î À̵¿ÇÕ´Ï´Ù. */ function nextForm2(obj,go){ obj[go].style.display = ""; } /** * ¼±ÅÃµÈ ¶óµð¿À ¹öÆ°¿¡ °ªÀ» ¹ÝȯÇÑ´Ù. */ function js_radio_value(obj) { if(obj.length == undefined){ if ( obj.checked == true){ return obj.value; } return ""; }else if ( obj.length == null || obj.length == "" ) { return ""; } else { for (var i=0; i < obj.length ; i++) { if ( obj[i].checked == true){ return obj[i].value; } } return ""; } } /** * ¼±ÅÃµÈ Ã¼Å©¹Ú½º °³¼ö¸¦ ¹ÝȯÇÑ´Ù. */ function js_checkbox_cnt(obj) { var count = 0; if ( obj.length == null || obj.length == "" ) { return ""; } else { for (var i=0; i < obj.length ; i++) { if ( obj[i].checked == true){ ++count; } } return count; } } /** * ¼ýÀÚ¿Í ÄÞ¸¶¸¦ ÂïÀ»ÀÚ¸®¼ö¸¦ ¸Å°³º¯¼ö·Î ¹ÞÀ½ */ function formatnumber(v1,v2){ if(isNaN(v1)) { alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."); return 0; } var str=new Array(); //ÄÞ¸¶½ºÆ®¸µÀ» Á¶ÇÕÇÒ ¹è¿­ v1=String(v1); //¼ýÀÚ¸¦ ½ºÆ®¸µÀ¸·Î º¯È¯ // ¼ýÀÚÀÇ ±æÀ̸¸Å­ ¹Ýº¹ for(var i=1;i<=v1.length;i++){ if(i%v2) str[v1.length-i]=v1.charAt(v1.length-i); //ÀÚ¸®¼ö°¡ ¾Æ´Ï¸é ¼ýÀÚ¸¸»ðÀÔ else str[v1.length-i]=','+v1.charAt(v1.length-i); //ÀÚ¸®¼ö À̸é ÄÞ¸¶±îÁö »ðÀÔ } return str.join('').replace(/^,/,''); //½ºÆ®¸µÀ» Á¶ÇÕÇÏ¿© ¹Ýȯ } /** * À̸ÞÀÏ À¯È¿¼ºÀ» È®ÀÎ */ function js_check_email(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; } var arrIP = arrMatch[2].match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/); if (arrIP != null) { for (var i = 1; i <= 4; i++) { if (arrIP[i] > 255) { return false; } } } return true; } /** * ÁֹιøÈ£ À¯È¿¼º °Ë»ç. */ function ValidChecking(obj1, obj2) { var jumin1 = obj1; var jumin2 = obj2; var serialValue = jumin1 + "-" + jumin2; //Áֹεî·Ï¹øÈ£ÀÇ ÇüÅÂ¿Í 7¹ø° ÀÚ¸®(¼ºº°) À¯È¿¼º °Ë»ç var chkValue = /^\d{6}-[1234]\d{6}$/; if (!chkValue.test(serialValue)) { window.alert("À¯È¿ÇÏÁö ¾ÊÀº Áֹεî·Ï¹øÈ£ ÀÔ´Ï´Ù.\n\nÈ®ÀÎ ÈÄ, ´Ù½Ã ÀÔ·ÂÇϽʽÿÀ."); //obj1.focus(); return false; } //³¯Â¥ À¯È¿¼º °Ë»ç birthYear = (serialValue.charAt(7) <= "2") ? "19" : "20"; birthYear += serialValue.substr(0, 2); birthMonth = serialValue.substr(2, 2) - 1; birthDate = serialValue.substr(4, 2); var birth = new Date(birthYear, birthMonth, birthDate); if ((birth.getYear() % 100 != serialValue.substr(0, 2)) || (birth.getMonth() != birthMonth) || (birth.getDate() != birthDate)) { window.alert("À¯È¿ÇÏÁö ¾ÊÀº Áֹεî·Ï¹øÈ£ ÀÔ´Ï´Ù.\n\nÈ®ÀÎ ÈÄ, ´Ù½Ã ÀÔ·ÂÇϽʽÿÀ."); //obj1.focus(); return false; } //ÄÚµå À¯È¿¼º °Ë»ç var buf = new Array(13); for (var i = 0; i < 6; i++) { buf[i] = parseInt(serialValue.charAt(i)); } for (var i = 6; i < 13; i++) { buf[i] = parseInt(serialValue.charAt(i + 1)); } var multipliers = [2,3,4,5,6,7,8,9,2,3,4,5]; for (var i = 0, sum = 0; i < 12; i++) { sum += (buf[i] *= multipliers[i]); } if ((11 - (sum % 11)) % 10 != buf[12]) { window.alert("À¯È¿ÇÏÁö ¾ÊÀº Áֹεî·Ï¹øÈ£ ÀÔ´Ï´Ù.\n\nÈ®ÀÎ ÈÄ, ´Ù½Ã ÀÔ·ÂÇϽʽÿÀ."); //obj1.focus(); return false; } return true; } /** * µ¿ÀÏÇÑ ID°ªÀ¸·Î µÇ¾î ÀÖ´Â °´Ã¼¸¦ ±×·ìÀ¸·Î ÁöÁ¤ °´Ã¼¸¦ »ç¿ë ¹Ì»ç¿ëÀ¸·Î ÁöÁ¤ÇÕ´Ï´Ù. */ function js_group_usecheck(obj,val){ var id = obj.id; for (var i=0;i < eval("document.all." + id).length;i++){ var temp = eval("document.all." + id)[i]; var type = temp.type; if(obj!=temp){ if(val){ if (type == "text") { temp.value = ""; temp.style.backgroundColor = "#dcdcdc"; }else if (type == "select-one") { temp.value = ""; }else if (type == "radio" || type == "checkbox") { temp.checked = false; } }else{ if (type == "text") { temp.style.backgroundColor = ""; } } temp.disabled = val; } } } /** * js_usecheck(¼³Á¤°ª,°´Ã¼À̸§1, °´Ã¼À̸§2, °´Ã¼À̸§3...) ÁöÁ¤ °´Ã¼¸¦ »ç¿ë ¹Ì»ç¿ëÀ¸·Î ÁöÁ¤ÇÕ´Ï´Ù */ function js_usecheck(){ var val; var type; val = arguments[0]; if(val){ for(i=1;i < arguments.length;i++){ var temp = eval("document.all."+arguments[i]); var type = temp.type; if(type != null){ // type¾ø´Â°Å ¿¡·¯ ¹æÁö if (type == "text") { temp.value = ""; temp.style.backgroundColor = "#dcdcdc"; }else if (type == "select-one") { temp.value = ""; }else if (type == "radio") { temp.checked = false; } temp.disabled = val; } } }else{ for(i=1;i < arguments.length;i++){ var temp = eval("document.all."+arguments[i]); var type = temp.type; if(type != null){ // type¾ø´Â°Å ¿¡·¯ ¹æÁö if (type == "text") { temp.style.backgroundColor = ""; } temp.disabled = val; } } } } /** * À¯È¿ÇÑ ¿ùÀÎÁö üũÇÏ°í ÇÑÀÚ¸®ÀÏ°æ¿ì µÎÀÚ¸®·Î ¹ÝȯÇØÁØ´Ù. */ function js_mmcheck(obj){ var val = obj.value; if( Number(val) > 0 && Number(val) < 13) { val = "00"+val; obj.value = val.substr(val.length-2,2); }else{ alert("À¯È¿ÇÏÁö ¾ÊÀº ¿ù ÀÔ´Ï´Ù.\n\nÈ®ÀÎ ÈÄ, ´Ù½Ã ÀÔ·ÂÇϽʽÿÀ..!!"); return false; } return true; } /** * À¯È¿ÇÑ ¼ýÀÚÀÎÁö üũ */ function js_numbercheck(obj,f,t){ var checkstr = "0123456789"; var val = obj.value; if (val.trim() != "") { for (var j = 0; j < val.length; j++) { if (checkstr.indexOf(val.substr(j,1)) < 0) { alert("¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÑ Ä÷³ÀÔ´Ï´Ù..!!"); obj.focus(); return false; } } } if(f!=undefined){ if(Number(val.trim()) < Number(f)){ alert("ÀÔ·Â °¡´ÉÇÑ ¹üÀ§¿¡ ¼ÓÇÏÁö ¾Ê½À´Ï´Ù..!!\n\n"+f+"ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.!!"); obj.focus(); return false; } } if(t!=undefined){ if(Number(val.trim()) > Number(t)){ alert("ÀÔ·Â °¡´ÉÇÑ ¹üÀ§¿¡ ¼ÓÇÏÁö ¾Ê½À´Ï´Ù..!!\n\n"+t+"ÀÌÇÏ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.!!"); obj.focus(); return false; } } return true } /** * À¯È¿ÇÑ ¼ýÀÚÀÎÁö üũ */ function js_number_dashcheck(obj){ var checkstr = "-0123456789"; var val = obj.value; if (val.trim() != "") { for (var j = 0; j < val.length; j++) { if (checkstr.indexOf(val.substr(j,1)) < 0) { alert("¼ýÀÚ ¶Ç´Â '-'¸¸ ÀÔ·Â °¡´ÉÇÑ Ä÷³ÀÔ´Ï´Ù..!!"); obj.value = ""; obj.focus(); return false; } } } return true } /** * ¼ýÀÚ³ª ¿µ¾î´Â ÀÔ·Â ¸øÇÏ°Ô Ã¼Å© */ function js_no_number_check(obj){ var checkstr = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; var val = obj.value; if (val.trim() != "") { for (var j = 0; j < val.length; j++) { if (checkstr.indexOf(val.substr(j,1)) >= 0) { alert("¿µ¹®À̳ª ¼ýÀÚ´Â ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù."); obj.value = ""; obj.focus(); return false; } } } return true } /** * À¯È¿ÇÑ ´õºíÀÎÁö üũ */ function js_doublecheck(obj,f,t){ var checkstr = ".0123456789"; var val = obj.value; if (val.trim() != "") { for (var j = 0; j < val.length; j++) { if (checkstr.indexOf(val.substr(j,1)) < 0) { alert("¼ýÀÚ¸¸(.Æ÷ÇÔ) ÀÔ·Â °¡´ÉÇÑ Ä÷³ÀÔ´Ï´Ù..!!"); obj.focus(); return false; } } if( val.indexOf(".") > 0 && (val.indexOf(".") != val.lastIndexOf("."))){ alert("¼Ò¼ýÁ¡Ç¥½Ã°¡ À߸ø ÀÔ·Â µÇ¾ú½À´Ï´Ù..!!"); obj.focus(); return false; } } if(f!=undefined){ if(Number(val.trim()) < Number(f)){ alert("ÀÔ·Â °¡´ÉÇÑ ¹üÀ§¿¡ ¼ÓÇÏÁö ¾Ê½À´Ï´Ù..!!\n\n"+f+"ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.!!"); obj.focus(); return false; } } if(t!=undefined){ if(Number(val.trim()) > Number(t)){ alert("ÀÔ·Â °¡´ÉÇÑ ¹üÀ§¿¡ ¼ÓÇÏÁö ¾Ê½À´Ï´Ù..!!\n\n"+t+"ÀÌÇÏ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.!!"); obj.focus(); return false; } } return true } /** * ´ë¹®ÀÚ¸¸ ÀԷ üũ */ function js_big_letter_check(obj){ var checkstr = " ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var val = obj.value; if (val.trim() != "") { for (var j = 0; j < val.length; j++) { if (checkstr.indexOf(val.substr(j,1)) < 0) { alert("¿µ¹® ´ë¹®ÀÚ ¿Ü¿¡´Â ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù."); obj.focus(); return false; } } } return true } /** * ¸ð´ÞâÀ» »ç¿ë(¹Ì´Ï´Þ·ÂÀ» »ç¿ëÇÒ¶§ °°ÀÌ »ç¿ëµÈ´Ù. */ function cfShowModal( modalWindowName, arg, width, height, useQueryString){ var arr; if ( !useQueryString ){ arr = showModalDialog( modalWindowName, arg, "scroll:no; font-family:Verdana; font-size:12; status:no; dialogLeft:" + (screen.width/2 - width/2) + "px; dialogTop:" + (screen.height/2 - height/2) + "px; dialogWidth:" + width + "px; dialogHeight:" + height + "px;Help:No"); }else{ arr = showModalDialog( modalWindowName, arg, "scroll:no; font-family:Verdana; font-size:12; status:no; dialogLeft:" + (screen.width/2 - width/2) + "px; dialogTop:" + (screen.height/2 - height/2) + "px; dialogWidth:" + width + "px; dialogHeight:" + height + "px;Help:No"); } return arr; } /********************************************************** * ¡å Æ˾÷â È£Ãâ¿¡ °üÇÑ Æã¼Çµé... *********************************************************/ /** * ¿ìÆí¹øÈ£¸¦ °Ë»öÇÑ´Ù. */ function openPSWindow() { var xecure = "/jsppage/service/common/xecureStart.jsp?pgmid="; var theURL = "post_search"; var winName = "post_search"; var features = 'scrollbars=no,width=600,height=580,status=no'; ACTIVE_WINDOW = window.open(xecure+theURL,winName,features); ACTIVE_WINDOW.focus(); } function comma(obj_tot) { var num = obj_tot.value; if (obj_tot.value.length >= 4) { re = /^\$|,/g; // "$" and "," ÀÔ·Â Á¦°Å num = num.replace(re, ""); fl="" if(isNaN(num)) { alert("¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."); obj_tot.value = 0; return 0 } if(num==0) return num if(num<0) { num=num*(-1) fl="-" } else { num=num*1 //óÀ½ ÀԷ°ªÀÌ 0ºÎÅÍ ½ÃÀÛÇÒ¶§ ÀÌ°ÍÀ» Á¦°ÅÇÑ´Ù. } num = new String(num) //num = num + ""; temp="" co=3 num_len=num.length while (num_len>0) { num_len=num_len-co if(num_len<0){co=num_len+co;num_len=0} temp=","+num.substr(num_len,co)+temp } obj_tot.value = fl+temp.substr(1); } } function viewJisaPopup(jisaCode){ //window.open("/jsppage/jisa.jsp?jisaCode="+jisaCode,"JISA_HOME","width=860,height=610,scrollbars=no"); //window.open("/jsppage/app/intro/nps/jisa/jisadetail.jsp?jisaCode="+jisaCode+"&MD=coninfo","JISA_HOME","width=860,height=610,scrollbars=no"); window.open("https://www.nps.or.kr/jsppage/hqCenter/hq/jisa_link.jsp?jisaCd="+jisaCode); } function viewJisaPopup2(jisaCode){ //window.open("/jsppage/jisa.jsp?jisaCode="+jisaCode,"JISA_HOME","width=860,height=610,scrollbars=no"); //window.open("/jsppage/app/intro/nps/jisa/jisadetail.jsp?jisaCode="+jisaCode+"&MD=coninfo","JISA_HOME","width=860,height=610,scrollbars=no"); window.open("https://www.nps.or.kr/jsppage/hqCenter/hq/jisa2.jsp?jisaCd="+jisaCode); } //¹Ì»ç¿ë 20121011 function viewJisaMapPopup(jisaCode, mapId) { if(mapId == "") alert("ÁغñÁßÀÔ´Ï´Ù."); else window.open("http://www.mapid.net/"+mapId, "", ""); } //left¸Þ´º Á¢Èû, Æîħ function clickshow(num) { for(i=1; i<4; i++) { menu = eval("document.all.block"+i+".style"); if(num == i) { if(menu.display == "block") { menu.display = "none"; } else { menu.display = "block"; } } else { menu.display = "none"; } } } /** * ¹ýÀÎ ¹øÈ£°¡ Á¤È®ÇÑÁö È®ÀÎÇÑ´Ù. * param : sRegNo ¹ýÀιøÈ£ * return : Boolean trueÀÌ¸é °ËÁõµÈ ¹ýÀιøÈ£ */ function isRegNo(sRegNo) { if (!isNumber(sRegNo)) { alert("¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù."); return false; } else if (sRegNo.length != 13) { alert("¹ýÀÎ ¹øÈ£´Â 13ÀÚ¸® ÀÔ´Ï´Ù."); return false; } var arr_regno = sRegNo.split(""); var arr_wt = new Array(1,2,1,2,1,2,1,2,1,2,1,2); var iSum_regno = 0; var iCheck_digit = 0; //1~12ÀÚ¸®±îÁö °¡ÁßÄ¡¸¦ °öÇÏ¿© ¸ðµÎ ´õÇÑ´Ù. for (i = 0; i < 12; i++) { iSum_regno += eval(arr_regno[i]) * eval(arr_wt[i]); } //Çհ踦 10À¸·Î ³ª´« ³ª¸ÓÁö¸¦ 10¿¡¼­ »«´Ù. iCheck_digit = 10 - (iSum_regno % 10); //°è»ê °ªÀ» 10À¸·Î ³ª´« ³ª¸ÓÁö¸¦ ±¸ÇÑ´Ù. (Check Digit) iCheck_digit = iCheck_digit % 10; if (iCheck_digit != arr_regno[12]) { alert("¹ýÀÎ ¹øÈ£°¡ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.\n ´Ù½Ã È®ÀÎÇϽÅÈÄ ÀÔ·ÂÇϽʽÿÀ."); return false; } return true; } /** * ¹Ýº¹µÇ´Â ±¸°£¿¡ Ŭ¸¯µÈ ¿¤¸®¸ÕÆ®¿¡ À妽º°ªÀ»°¡Á®¿Â´Ù */ function getIndex(chk){ if(eval("document.fm."+chk.name+".length") == undefined)return -1; for (var i = 0; i < eval("document.fm."+chk.name+".length"); i++){ if (chk==eval("document.fm."+chk.name+"(i)")) return i; } } // ¹®ÀÚ¿­ÀÇ byte ±æÀÌ return function get_byte_len(str) { var len=0; for (var i=0; i 255 ) { len += 2; } else { len++; } } return len; } // ÀüÀڹοø ó¸®ÇöȲ Á¶È¸ ÀÌ¿ë¾È³» function goMWHelp(){ var url = "/jsppage/user_guide/guide_03_05.jsp"; var option = "resizable=no width=860 height=610 toolbar=no menubar=no scrollbars=no resizable=no location=no directories=no status=no"; window.open(url,'name',option); } // ÀüÀڹοø ó¸®ÇöȲ Á¶È¸ ÀÌ¿ë¾È³» function goCEHelp(){ var url = "/jsppage/user_guide/guide_04_02.jsp"; var option = "resizable=no width=860 height=610 toolbar=no menubar=no scrollbars=no resizable=no location=no directories=no status=no"; window.open(url,'name',option); } // Áõ¸í¼­ ÁøÀ§È®ÀÎ À̹ÌÁö º¸±â Æ˾÷ function viewImage(url) { window.open(url,"","width=20,height=20,resizable=no,scrollbars=no,top=0,left=0"); } /** * ÄíÅ°°ªÀ» °¡Á®¿Â´Ù. */ function getCookie( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ){ var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ){ if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } /** * ¼±ÅÃµÈ ¶óµð¿À ¹öÆ°À» ºñ¼±ÅÃÀ¸·Î ¹Ù²Û´Ù. */ function js_radio_unchecked(obj) { if ( obj.length != null && obj.length != "" ) { for (var i=0; i < obj.length ; i++) { obj[i].checked = false; } } } /** * ÁÖ¿öÁø °ª°ú µ¿ÀÏÇÑ °ªÀ» °¡Áø ¶óµð¿À ¹öÆ°À» üũÇØÁÝ´Ï´Ù. */ function js_radio_checked(obj,val) { js_radio_unchecked(obj); if ( obj.length != null && obj.length != "" ) { for (var i=0; i < obj.length ; i++) { if ( obj[i].value == val){ obj[i].checked = true; return; } } } return; } function js_readonly(){ return true; //var sElem = event.srcElement; // if(sElem.id == "list") // return true; // alert("\nÀб⠱ÇÇѸ¸ Çã¿ëÇÕ´Ï´Ù."); // return false; } /********************************************************** * ¡å Æ˾÷â È£Ãâ¿¡ °üÇÑ Æã¼Çµé... *********************************************************/ /** *»óº´ÄÚµå Æ˾÷â */ function PopupKCDCode(obj_form) { var sURL = "../popup/getKCDList.jsp?obj_form="+obj_form; window.open(sURL, "","fullscreen=no,titlebar=no,toolbar=no,directories=no,status=yes,menubar=no, scrollbars=yes,resizable=yes,width=680,height=430,left=0,top=0"); } /** *±â°üÄÚµå Æ˾÷â */ function PopupCorpCode(pos1,pos2) { var sURL = "../popup/getCorpCodeList.jsp?pos1="+pos1+"&pos2="+pos2; window.open(sURL, "","fullscreen=no,titlebar=no,toolbar=no,directories=no,status=yes,menubar=no, scrollbars=yes,resizable=yes,width=500,height=430,left=0,top=0"); } /** * ¿ìÆí°Ë»öâÀ» È£Ãâ. */ function btnZipCode(po1,po2,ad1,ad2){ var sURL = "../popup/getZipCodeList.jsp?po1="+po1+"&po2="+po2+"&ad1="+ad1+"&ad2="+ad2; window.open(sURL, "","fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no, scrollbars=yes,resizable=yes,width=420,height=300,left=0,top=0"); } /** * ¿ìÆí°Ë»öâÀ» È£Ãâ. */ function btnZipCodeAndSido(po1,po2,ad1,ad2,sido){ var sURL = "../popup/getZipCodeList.jsp?po1="+po1+"&po2="+po2+"&ad1="+ad1+"&ad2="+ad2+"&sido="+sido; window.open(sURL, "","fullscreen=no,titlebar=no,toolbar=no,directories=no,status=yes,menubar=no, scrollbars=yes,resizable=yes,width=420,height=300,left=0,top=0"); } /** * ¿ìÆí°Ë»öâÀ» È£Ãâ. */ function btnZipCodeAndGugun(po1,po2,ad1,ad2,gugun){ var sURL = "../popup/getZipCodeList.jsp?po1="+po1+"&po2="+po2+"&ad1="+ad1+"&ad2="+ad2+"&gugun="+gugun; window.open(sURL, "","fullscreen=no,titlebar=no,toolbar=no,directories=no,status=yes,menubar=no, scrollbars=yes,resizable=yes,width=420,height=300,left=0,top=0"); } /** * ¹Ì´Ï´Þ·ÂÈ£Ãâ */ function cfCalendarPopup(objTextBox){ var day; day = cfShowModal("/tcmapps/common/calendar/Calendar.html", null, 210, 265, false); var day01; if(typeof(day) != "undefined"){ day01 = day.split("-"); if( day01[1].length == 1) day01[1] = "0" + day01[1] ; if( day01[2].length == 1) day01[2] = "0" + day01[2] ; var day02 = day01[0]+ "." + day01[1] + "." + day01[2]; objTextBox.value = day02; } else { return; } }