function checkDate (startDate, endDate, num, flag) {if (startDate == null || endDate == null) {popwin.info ( 'prompt', 'date walm beep beep'); 거짓을 반환합니다. } if (startDate == ''|| endDate == '') {popwin.info ( 'Prompt', 'Query Date를 입력하십시오'); 거짓을 반환합니다. } var start_date = startDate + "00:00"; var end_date = endDate + "00:00"; start_date = 새 날짜 (start_date.replace (/-/g, "/")); end_date = 새 날짜 (end_date.replace (/-/g, "/")); if (start_date> end_date) {popwin.info ( 'Prompt', '마감일은 시작 날짜보다 적을 수 없습니다'); 거짓을 반환합니다. } // num days var currentDate = new date ()를받습니다. currentDate.setDate (currentDate.getDate () + num); if (end_date> currentDate) {popwin.info ( 'prompt', '마감일은' + num + '날짜보다 클 수 없습니다); 거짓을 반환합니다. } // if (flag == false) {if (start_date.getmonth ()! = end_date.getmonth ()) {popwin.info ( 'tip', '이 query는 Cross Month Query를 지원하지 않습니다'); 거짓을 반환합니다. }}}