var myMonths=new Array("01","02","03","04","05","06","07","08","09","10","11","12");
var myDays= new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
today=new Date();
thisDay=myDays[today.getDay()]
thisMonth=myMonths[today.getMonth()]
thisYear=today.getFullYear()
thisDate=today.getDate()
todaysDate=thisDay+", "+thisDate+"/"+thisMonth+"/"+thisYear
function myClock(){
	today=new Date()
	var theHours=today.getHours()
	if (theHours>11)
		{
			theTimeSuffix="PM"
		}
	if (theHours>12)
	var theHours=theHours-12
	else
		{
			theTimeSuffix="AM"
		}
var theMinutes=today.getMinutes()
if (theMinutes<10)
var theMinutes="0"+theMinutes
var theSeconds=today.getSeconds()
if (theSeconds<10)
var theSeconds="0"+theSeconds
var theTimeNow=theHours+":"+theMinutes+":"+theSeconds+" "+theTimeSuffix
document.getElementById('textTime').innerHTML=theTimeNow;
}
var clockWork=setInterval("myClock()",1000)
