/* Function E3Days()
	Purpose: Calculate the number of days between E3 Convention and a given date

	Variables
	CheckDay: a date object containing the given date
	XYear: The 4-digit year value of the given date
	XDay: October 18 in the year of the given date
	DayCount: The number of days between E3 Convention and the given date
*/


function E3Days(CheckDay) {
	var XYear=CheckDay.getFullYear();
	var XDay=new Date("October 18, 2007");
	XDay.setFullYear(XYear);
	var DayCount=(XDay-CheckDay)/(1000*60*60*24);
	DayCount=Math.round(DayCount);
	return DayCount;
}