function TOfunc() 
{
   TO = window.setTimeout( "TOfunc()", 1000 );       

   var thedays = new Array(7);

   thedays[0] = 'Sun';
   thedays[1] = 'Mon';
   thedays[2] = 'Tue';
   thedays[3] = 'Wed';
   thedays[4] = 'Thu';
   thedays[5] = 'Fri';
   thedays[6] = 'Sat';

   var today = new Date();       
   var day = today.getDay();
   var thedate = thedays[day] + ' ' + today.toLocaleString();

   c = document.getElementById('clock');
   c.innerHTML = thedate;
}

TO = setTimeout('TOfunc()', 1000 );

