
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
if (minutes <= 9) {minutes = "0" + minutes;}
if (seconds <= 9) {seconds = "0" + seconds;}
var date=runTime.getDate();
var month=runTime.getMonth();
if (month == 0) {month = "января";}
if (month == 1) {month = "февраля";}
if (month == 2) {month = "марта";}
if (month == 3) {month = "апреля";}
if (month == 4) {month = "мая";}
if (month == 5) {month = "июня";}
if (month == 6) {month = "июля";}
if (month == 7) {month = "августа";}
if (month == 8) {month = "сентября";}
if (month == 9) {month = "октября";}
if (month == 10) {month = "ноября";}
if (month == 11) {month = "декабря";}
var year=runTime.getYear();
movingtime ="Сегодня:"+ " " + "<b>" + date+ " " + month+ " " + year+ "г.  " + hours + ":" + minutes + ":" + seconds + " " + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 100);
}
window.onload = funClock;
