//Get Date
var months=new Array(13);
months[1]="JANUARY";
months[2]="FEBRUARY";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) 
year = year + 1900; 

//Get Time
//-var now = new Date();
//-var hours = now.getHours();
//var hours = now.getUTCHours();
//-var minutes = now.getMinutes();
//var minutes = now.getUTCMinutes();
//-var seconds = now.getSeconds()
//var seconds = now.getUTCSeconds()

//-var timeValue = "" + ((hours >24) ? hours -24 :hours)
//-if (timeValue == "0") timeValue = 24;

//-timeValue += ((minutes < 10) ? ":0" : ":") + minutes
//-timeValue += ((seconds < 10) ? ":0" : ":") + seconds
//-timeValue += (hours >= 24) ? " Hrs" : " Hrs"

//Get Day
var days=new Array(7);
days[0]="SUNDAY";
days[1]="MONDAY";
days[2]="TUESDAY";
days[3]="WEDNESDAY";
days[4]="THURSDAY";
days[5]="FRIDAY";
days[6]="SATURDAY";
var lday=days[time.getDay()];


//-------------------------------------------------

function ShowTime()
{
var TimerKey
var now = new Date()
var Hours = now.getHours()
var Minutes = now.getMinutes()
var Seconds = now.getSeconds()
TimeDisplay.innerText = ((Hours > 24) ? Hours - 24 : Hours) + ((Minutes < 10) ? ":0" : ":") + Minutes + ((Seconds < 10) ? ":0" : ":") + Seconds + ((Hours > 24) ? " Hrs" : " Hrs")
window.status = ((Hours > 24) ? Hours - 24 : Hours) + ((Minutes < 10) ? ":0" : ":") + Minutes + ((Seconds < 10) ? ":0" : ":") + Seconds + ((Hours > 24) ? " Hrs" : " Hrs")
TimerKey = setTimeout("ShowTime()",1000)
}
