function printDate()
{
	// create Date object
	var d = new Date();
	// get the year
	var curr_year = d.getFullYear();
	// get the date span
	var copyright = document.getElementById("year");
	// create the text node
	var copyDate = document.createTextNode(curr_year);
	//append the text node
	copyright.appendChild(copyDate);
}

addLoadEvent(printDate);