
/*
LAST MODIFIED : 25 January 2007
MODIFIED BY : Bertrand
COMMENTS : 
LAST CHANGE :(22 Jan 2007) (David) : Changed the clock function. Now works in Firefox
*/	
   
						
			
			function calctime()
			{
				var currenttime = new Date();
				var hours = currenttime.getHours();
				var minutes = currenttime.getMinutes();
				var seconds = currenttime.getSeconds();
				var timesuffix = "AM";
				if (hours > 11)
				{
				timesuffix = "PM";
				hours = hours - 12;
				}
				if (hours == 0)
				{
				hours = 12;
				}
				if (minutes < 10)
				{
				minutes = "0" + minutes;
				}
				if (seconds < 10)
				{
				seconds = "0" + seconds;
				}
				var clocklocation = document.getElementById("clock");
				clocklocation.innerHTML = hours + ":" + minutes + ":" + seconds + " " + timesuffix;
				setTimeout("calctime()", 1000);
			}
			