/*========================================================================================
 Functions that will show icons only until a specified expiration date.

 Author: David Queenan
 Date: 12 Feb 2002
==========================================================================================*/


/*----------------------------------------------------------------------------------------
 Show the "New" icon until a specified date.

 Call like this:

	<SCRIPT SRC="/include/ShowIcons.js"></SCRIPT><SCRIPT>ShowNewIcon("11 Feb 2002");</SCRIPT>

 where "11 Feb 2002" is the date to stop showing the icon.
------------------------------------------------------------------------------------------*/
function showNewIcon(expireDate)
{
	var today = new Date();

	if (today < Date.parse(expireDate))
		document.write('<IMG SRC="/images/icons/icon_new.gif" ALT="New" WIDTH="42" HEIGHT="10" BORDER="0" HSPACE="5" ALIGN="bottom">');
}

/*----------------------------------------------------------------------------------------
 Show the "Updated" icon until a specified date.

 Call like this:

	<SCRIPT SRC="/include/ShowIcons.js"></SCRIPT><SCRIPT>ShowUpdatedIcon("11 Feb 2002");</SCRIPT>

 where "11 Feb 2002" is the date to stop showing the icon.
------------------------------------------------------------------------------------------*/
function showUpdatedIcon(expireDate)
{
	var today = new Date();

	if (today < Date.parse(expireDate))
		document.write('<IMG SRC="/images/icons/icon_updated.gif" ALT="Updated" WIDTH="42" HEIGHT="10" BORDER="0" HSPACE="5" ALIGN="bottom">');
}

