//¿£ÅÍ°ªÈÄ °Ë»öÀ» À§ÇÑ function function nextFocus(where) { if(event.keyCode == 13) where.focus(); } // /*³¯ÀÚÀ¯È¿¼º*/ function checkdateformat(dateString){ var dateStr = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{2}|\d{4})$/; var matchArray = dateStr.exec(dateString); // is the format ok? alert(matchArray); if (matchArray == null) { return false; } var month = matchArray[1]; // parse date into variables var day = matchArray[3]; var year = matchArray[4]; if (month < 1 || month > 12) { // check month range return false; } if (day < 1 || day > 31) { return false; } if ((month==4 || month==6 || month==9 || month==11) && day==31) { return false; } if (month == 2) { // check for february 29th var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); if (day>29 || (day==29 && !isleap)) { return false; } } return true; } function pause(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } } //¿ìÆí¹øÈ£Æ˾÷ function comWinPopup(zip1,zip2,zip3,zip4) { var lsvWindowpops = "titlebar=no,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes,status=no,directories=no" + ",left=" + 50 + ",top=" + 20 + ",width=" + 420 + ",height=" + 520 ; window.open("/com/util/comWinPost.do?zip1="+zip1+"&zip2="+zip2+"&zip3="+zip3+"&zip4="+zip4,"MenuPopup",lsvWindowpops); } function comWinPopup2(url,left,top,width,height) { if(!left) left=0; if(!top) top=0; if(!width) width=0; if(!height) height=0; var lsvWindowpops = "titlebar=no,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,status=no,directories=no" + ",left=" + left + ",top=" + top + ",width=" + width + ",height=" + height ; window.open(url,"MenuPopup",lsvWindowpops); } /*¸Þ´ºÀ̵¿*/ function comMenuMove(url){ location.href=url; } function getFullToday() { var today = new Date(); var buf = ""; buf += today.getYear() + "³â "; buf += (today.getMonth() + 1) + "¿ù "; buf += today.getdate() + "ÀÏ "; buf += today.gethours() + "½Ã "; buf += today.getMinutes() + "ºÐ "; buf += today.getSeconds() + "ÃÊ"; return buf; } function fn_mainSearch() { if (document.mainSearch.mainSearchData.value =="") { alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇϼ¼¿ä"); document.mainSearch.mainSearchData.focus(); return false; }else{ document.mainSearch.submit(); } } function fn_urlMove(arg){ location.href = arg; }