var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate()
{
    var mydate=new Date()
    var year=mydate.getYear()
    if (year < 1000)
        year+=1900
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10)
        daym="0"+daym
    var hours=mydate.getHours()
    var minutes=mydate.getMinutes()
    var seconds=mydate.getSeconds()
    var dn="AM"
    if (hours==0)
        hours="00"
    if (minutes<=9)
        minutes="0"+minutes
    if (seconds<=9)
        seconds="0"+seconds

    //change font size here
    var cdate=hours+":"+minutes+" "

    var gmthours=hours-1
    if (gmthours==-1)
        gmthours="23"
    if (gmthours==0)
        gmthours="00"
    var gmtdate=gmthours+":"+minutes+" "

    if (document.all)
    {
        document.all.clock.innerHTML=cdate
        document.all.gmtclock.innerHTML=gmtdate
    }
    else if (document.getElementById)
    {
        document.getElementById("clock").innerHTML=cdate
        document.getElementById("gmtclock").innerHTML=gmtdate
    }
    else
    {
        document.write(cdate)
        document.write(gmtdate)
    }
}

if (!document.all&&!document.getElementById)
    getthedate()

function goforit()
{
    if (document.all||document.getElementById)
    setInterval("getthedate()",1000)
}

function isString(a) {
    return typeof a == 'string';
}

function changeBgColor(what, color)
{
    if (isString(what))
    {
      x=document.getElementById(what);
      x.style.backgroundColor=color;
    }
    else
    {
        var objs = document.getElementsByTagName("a");
        for(var i=0, len=objs.length; i < len; i++)
        {
            if (objs.item(i)==what)
			{
                x=objs.item(i).parentNode;
				x.style.backgroundColor=color;
			}
        }
        
  }
}

function MM_openBrWindow(theURL,winName,features) 
{
	window.open(theURL,winName,features);
}

window.onload=function()
{
    goforit();
};