function checkGoLive(xYear,xMonth,xDay,xHour,xMin) { //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // // Author: Joseph Green // Function: checkGoLive // // Description: This function compares a set of time values with the // current time. It returns false if the current time // is less than the values provided. Otherwise, it // returns true. // // 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 cglDate = "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) { cglDate = "true"; } //end if for minute } //end if for hour } //end if for day } //end if for month } //end if for year return cglDate; } //end function checkGoLive()