function generatePeriod(nameClass, fromNameYear, fromNameMonth, fromNameDate, toNameYear, toNameMonth, toNameDate){ now = new Date(); toYear = now.getFullYear(); toMonth = now.getMonth() + 1; toDate = now.getDate(); if(toMonth < 10){ toMonth = "0" + toMonth; } if(toDate < 10){ toDate = "0" + toDate; } var from = now.getDate() - 7; now.setDate(from); fromYear = now.getFullYear(); fromMonth = now.getMonth() + 1; fromDate = now.getDate(); if(fromMonth < 10){ fromMonth = "0" + fromMonth; } if(fromDate < 10){ fromDate = "0" + fromDate; } //FROMYEAR document.writeln(' ³â"); //FROMMONTH document.writeln(' ¿ù"); //FROMDATE document.writeln('ÀÏ ¡­ "); //TOYEAR document.writeln(' ³â"); //TOMONTH document.writeln(' ¿ù"); //TODATE document.writeln(' ÀÏ"); } function period_disp() { today = new Date(); // today.setTime(today.getTime() + 24 * 60 * 60 * 1000 ); year=today.getFullYear(); month=today.getMonth(); month+=1; if(month <10) month="0" + month; date=today.getDate(); if(date<10) date="0" + date; startyear= year; startmonth= month; startday= date; endyear= year; endmonth= month; endday= date; // ½ÃÀÛ ³¯Â¥ document.writeln("³â"); document.writeln("¿ù"); document.writeln("ÀÏ ¡­ "); // ¸¶Áö¸· ³¯Â¥ document.writeln("³â"); document.writeln("¿ù"); document.writeln("ÀÏ"); } function writeYYMMDD() { today = new Date(); today.setTime(today.getTime() + 24 * 60 * 60 * 1000 ); year=today.getFullYear(); month=today.getMonth(); month+=1; if(month <10) month="0" + month; date=today.getDate(); if(date<10) date="0" + date; startyear= year; startmonth= month; startday= date; endyear= year; endmonth= month; endday= date; // ½ÃÀÛ ³¯Â¥ document.writeln("³â"); document.writeln("¿ù"); document.writeln("ÀÏ"); } //// ÇØ´ç ³â¿ùÀ» writeÇÑ´Ù. function getToYymm(){ today = new Date(); year=today.getFullYear(); month=today.getMonth(); month+=1; if(month <10) month="0" + month; date=today.getDate(); if(date<10) date="0" + date; startyear= year; startmonth= month; startday= date; endyear= year; endmonth= month; endday= date; // ½ÃÀÛ ³¯Â¥ document.writeln("³â"); document.writeln("¿ù"); } function checkYYMMDD(yyyy,mm,dd){ today = new Date(); year=today.getFullYear(); month=today.getMonth(); month+=1; if(month<10) month="0" + month; date=today.getDate(); if(date<10) date="0" + date; if (yyyy > year) return true; if (yyyy < year) return false; if (mm > month) return true; if (mm < month) return false; if (dd > date) return true; return false; }