function launchPopups (fileName,winName,attributes,golive,expiration) { //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // // Author: Joseph Green // Function: subscription // // Description: This function launches a popup // based on dates. It takes three arrays as arguments. // // Arguments: sring fileName; the popup file to launch // // array golive; the date on which the text should first // appear on the html page. // // golive[0] = int year; // golive[1] = int month; // golive[2] = int day; // golive[3] = int hour; // golive[4] = int minute; // // array expiration; the date that the text should stop // appearing on the html page. // // expiration[0] = int year; // expiration[1] = int month; // expiration[2] = int day; // expiration[3] = int hour; // expiration[4] = int minute; // // Dependencies: This function uses two external functions: // checkGoLive() version 1.0 // checkExpiration() version 1.0 // // Version: 1.0 // /////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// var glYear=golive[0]; var glMonth=golive[1]; var glDay=golive[2]; var glHour=golive[3]; var glMinute=golive[4]; var eYear=expiration[0]; var eMonth=expiration[1]; var eDay=expiration[2]; var eHour=expiration[3]; var eMinute=expiration[4]; var liveApp = checkGoLive(glYear,glMonth,glDay,glHour,glMinute); var expiredApp = checkExpiration(eYear,eMonth,eDay,eHour,eMinute); // test data for checking validation values // document.write("true=" + liveApp + " false=" + expiredApp + ""); if (liveApp=="true" && expiredApp=="false") { window.open(fileName,winName,attributes); } //end if for liveApp and expiredApp }; //end function subscription()