function printDate()
{
	// create Date object
	var d = new Date();
	// get the month
	var curr_month = d.getMonth();
	var monthArray = ["January", "February", "March", "April", "May", "June", 
					  "July", "August", "September", "October", "November", "December"];
	for(var i=0; i<monthArray.length; i++)
		var strMonth = monthArray[curr_month];
	// get the date
	var curr_date = d.getDate();
	// get the year
	var curr_year = d.getFullYear();
	// create date string
	var date_str = strMonth + " " + curr_date + ", " + curr_year;
	// get the date div
	var dateDiv = document.getElementById("date");
	if (dateDiv)
	{
		// create the text node
		var txt = document.createTextNode(date_str);
		// append the text node
		dateDiv.appendChild(txt);
	}
	
	// get the copyright span
	var copyright = document.getElementById("cdate");
	// create the text node
	var copyDate = document.createTextNode(curr_year + " ");
	//append the text node
	copyright.appendChild(copyDate);
}

addLoadEvent(printDate);