// JavaScript Tima and Date
function fnDisplayDate()
{
var this_month = new Array(12);
var this_wday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
this_month[0] = "January";
this_month[1] = "February";
this_month[2] = "March";
this_month[3] = "April";
this_month[4] = "May";
this_month[5] = "June";
this_month[6] = "July";
this_month[7] = "August";
this_month[8] = "September";
this_month[9] = "October";
this_month[10] = "November";
this_month[11] = "December";
var today = new Date();
var wday = today.getDay();
var day = today.getDate();
var month = today.getMonth();
var year = today.getYear();
var hour = today.getHours();
var minit = today.getMinutes();
var sec = today.getSeconds();
var tm="AM";
if (hour >=12)
{
tm="PM"; hour = hour-12;
}
if (hour==0) hour=12;
if (sec<=9) sec= "0"+sec;
if (hour<=9) hour = "0"+hour;
if (minit<=9) minit = "0"+minit;
if (year < 1900)
{
year += 1900;
}
document.getElementById('clock').innerHTML=this_wday[wday] +","+this_month[month]+ " "+ day + ", "+year+ " "+hour+ ":"+minit+ ":"+sec;
t=setTimeout('fnDisplayDate()',500);
}
setTimeout('fnDisplayDate()',500);
// JavaScript Tima and Date end

