// Written by Dan Berger, October 2004
// script for setting an expiration date for the appearance of text

/* preDate(myDate,myText) takes two parameters: 
 *		myDate is a Date object
 *		myText is a String object
 * preDate writes myText to the current document if and only if the current date and time
 * are prior to the date and time specified in myDate.
 *
 * The variable preDateDebug is used as a control to see that preDate is working
 */

preDateDebug = false;

function preDate(myDate,myText) {
var currentDate;
if (preDateDebug) currentDate = new Date(2004,10,1,10); // set this to some test date
else currentDate = new Date();
if (currentDate < myDate) document.write(myText);
return;
}
