function show()
{
var Digital=new Date();
var hours=Digital.getHours();
var minutes=Digital.getMinutes();
var seconds=Digital.getSeconds();
var day = Digital.getDate();
var year = Digital.getFullYear();
var currentMonth = Digital.getMonth();
var currentDay = Digital.getUTCDay();

	switch(currentMonth) {
		case 0:currentMonth = 'January';break;
		case 1:currentMonth = 'Febuary';break;
		case 2:currentMonth = 'March';break;
		case 3:currentMonth = 'April';break;
		case 4:currentMonth = 'May';break;
		case 5:currentMonth = 'June';break;
		case 6:currentMonth = 'July';break;
		case 7:currentMonth = 'August';break;
		case 8:currentMonth = 'September';break;
		case 9:currentMonth = 'October';break;
		case 10:currentMonth = 'November';break;
		case 11:currentMonth = 'December';break;
	}
	
	switch(currentDay) {
		case 0:currentDay = 'Sun';break;
		case 1:currentDay = 'Mon';break;
		case 2:currentDay = 'Tue';break;
		case 3:currentDay = 'Wed';break;
		case 4:currentDay = 'Thur';break;
		case 5:currentDay = 'Fri';break;
		case 6:currentDay = 'Sat';break;
	}

	
var dn="AM" 
if (hours>12)
{
dn="PM"
hours=hours-12
//this is so the hours written out is 
//in 12-hour format, instead of the default //24-hour format.
}
if (hours==0)
hours=12
//this is so the hours written out 
//when hours=0 (meaning 12a.m) is 12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
document.getElementById("timedate").innerHTML = "<table width=100%><tr><td align=center valign=middle style=background-color:Silver;><b>" + currentDay + ", " + currentMonth + " " + day + ", " + year + "</b></td><td align=center valign=middle style=background-color:Silver;> " + hours + ":" + minutes + ":" + seconds + " " + dn + "</td></tr></table></b>";
setTimeout("show()",1000)
}
