//***************************** EXPIRE CHECK FUNCTION *********************************

//	Allows an expiry date to be attatched to the "nouveau" graphic.  Once the expiry
//	date has been reached, the image will no longer appear on the page.

//	AUTHOR:		P. David Blahut
//	DATE:		March 3, 2002

//	PASSED PARAMETERS:		yyyy	-- the year to expire (4 digit year)
//							mm		-- the month to expire ( 2 digit month), note:  for months 8 and up do not use a 0
//							dd		-- the day to expire ( 2 digit day)

//	RETURN VALUES:			Writes the image tag for the graphic if today is before expiry date

//	VARIABLES:				today	--  Current date
//							expire	--  Date to expire image

today = new Date; 		// Today variable is loaded with the current date

function expireCheck(yyyy,mm,dd){
	expire = new Date (yyyy,mm-1,dd)			// expire date is loaded with passed parameters
	if (today < expire){									//  check if today is before the expiry date		
		document.write("<img src='http://www.edu.gov.mb.ca/imagesfr/nouveau.gif' width='47' height='11' alt='Nouveau!' border='0'>");
		//document.write("Nouveau!");
	}
}

//	************************************************************************************
//	To use this function in your page place the folling code where you want the
//	"nouveau" image to appear:

//			<script>expireCheck(yyyy,mm,dd)

//	Be sure to replace the yyyy,mm,dd with the date you wish that image to expire.