// JavaScript Document
var maxt;

function showTime() {
   maxt = setTimeout( "showTime()", 1000 );
   myDate = new Date();
   
   // Get time parts
   hours   = myDate.getHours();
   minutes = myDate.getMinutes();
   seconds = myDate.getSeconds();
   
   // Just to display the time in a nice format
   if (hours < 10)   hours   = "0" + hours;
   if (minutes < 10) minutes = "0" + minutes;
   if (seconds < 10) seconds = "0" + seconds;

   var weekday=new Array(7);
   weekday[0]="воскресенье";
   weekday[1]="понедельник";
   weekday[2]="вторник";
   weekday[3]="среда";
   weekday[4]="четверг";
   weekday[5]="пятница";
   weekday[6]="суббота";

   // Change the block content
   document.getElementById("maxtime").innerHTML = myDate.getDate() + "/" + (myDate.getMonth() + 1) + ", "+ weekday[myDate.getDay()] + "   " + hours+":"+minutes+":"+seconds + " ";
}