//Page Load Timer.
//calculate the time before calling the function in window.onload
var beforeload = (new Date()).getTime();
function pageloadingtime()
{

	 //calculate the current time in afterload 
	var afterload = (new Date()).getTime();
	 // now use the beforeload and afterload to calculate the seconds
	var secs = (afterload-beforeload)/1000;
	 // If necessary update in window.status
	window.status='This page took  ' + secs + ' second(s) to load.';
	 // Place the seconds in the innerHTML to show the results
	document.getElementById("loadingtime").innerHTML = "<center><font size=\"-3\">This page took " + secs + " second(s) to load.</font></center>";
	
}
  
window.onload = pageloadingtime;

