function checkExpiration(xYear,xMonth,xDay,xHour,xMin) { //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // // Author: Joseph Green // Function: checkExpiration // // Description: This function compares a set of time values with the // current time. It returns true if the current time // is greater than the values provided. Otherwise, it // returns false. // // Arguments: int xYear; year value // int xMonth; month of the year value // int xDay; day of the month value // int xHour; hour value // int xMin; minute value // // Dependencies: This function has no external dependencies: // // Version: 1.0 // /////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// var now = new Date(); var ceExpired = "false"; var hours = now.getHours(); var minute = now.getMinutes(); var second = now.getSeconds(); var monthnumber = now.getMonth(); var monthday = now.getDate(); var year = now.getYear(); //increment month since month values are 0-11 monthnumber++; if (year>xYear) { if (monthnumber>xMonth) { if (monthday>xDay) { if (hours>xHour) { if (minute>xMin) { ceExpired = "true"; } //end if for xMin } //end if for xHours } //end if for xDay } //end if for xMonth } //end if for xYear return ceExpired; } //end function checkExpiration function print (printLine){ document.write(printLine); }