/*
 * Global variables to get the date, and extract the month, day, and year
 */
var currentDate = new Date();
var month = currentDate.getMonth()+1;
var day = currentDate.getDate();
var year = currentDate.getFullYear();

/*
 * Function dateScript replaces a section in the Upcoming Events to show you the current date
 */
function dateScript() {
	var date = document.getElementById("date");
	date.innerHTML = "<p>NEWS - " + month + "/" + day + "/" + year + "</p>";
}

// Javascript Initialization
function initialize() {
	dateScript();
}

// Call the initialize function when the page is loaded
window.onload = initialize; 
