/* 	Function CountDays()
	Purpose:  Calculate the number of days between Christmas and a given date

	Variables
	CheckDay:  A date object containing the given date
	XYear:  The 4-digit year value of the given date
	XDay:  August 18 in the year of the given date
	DayCount:  The number of days between start of hockey season and today's date
*/

function NumOfDays(CheckDay) {
	var XYear=CheckDay.getFullYear();
	var XDay=new Date("August, 26, 2009");
	XDay.setFullYear(XYear);
	var DayCount=(XDay-CheckDay)/(1000*60*60*24);
	DayCount=Math.round(DayCount);
	return DayCount;
}