// JavaScript Document
/* Function SchoolDays()
Purpose: Calculate the number of days before school starts.

      Variables
      CheckDay: A date object containing the given date
      XYear:nThe 4-digit year value of the given date
      XDay: August 25 in the year of the given date
      Day Count: The Number of days before school starts and the given date
      */
function SchoolDays (CheckDay) {
	var XYear=CheckDay.getFullYear ();
	var XDay=new Date("August, 25, 2006");
	XDay.setFullYear(XYear);
	var DayCount=(XDay-CheckDay)/(1000*60*60*24);
	DayCount=Math.round(DayCount);
	return DayCount;
}