/*
		Another flashy JavaScript script
		straight from the Computer Lab at Liberty University
		between classes
		by Matthias Dailey
				For some reasone the font is Arial instead of a monospace font. I don't mind this.
		---- ---- ----
		
		Expiry.js
		 - functions for setting an expiration day to the last day of the month
		
*/

// month names
monthNamesByOrdinal = Array(
										"January",
										"February",
										"March", 
										"April", 
										"May", 
										"June", 
										"July", 
										"August", 
										"September", 
										"October", 
										"November", 
										"December"
									);
//

// the total number of days in each month
// we're ignoring February's leap year day.
maxMonthDaysByOrdinal = Array(
										31,
										28,
										31,
										30,
										31,
										30,
										31,
										31,
										30,
										31,
										30,
										31
									);

function setExpirationText(id)
{
	// get the span element 
	var span = document.getElementById(id);
	var d = new Date();
	var dispMonth = monthNamesByOrdinal[d.getMonth()]; // eg. "October"
	var dispDay = maxMonthDaysByOrdinal[d.getMonth()]; // eg. "31"
	
	// replace text in the element 
}
