 var nn=(document.layers)? true:false; 
 var ie=(document.all)? true:false;

function doClock()
{
  var c=new Date();
  var Month=new Array("января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря");
  var o=" "+c.getDate()+" "+Month[c.getMonth()]+" "+c.getYear()+"  "+(c.getHours()<10?"0":"")+c.getHours()+":"+(c.getMinutes()<10?"0":"")+c.getMinutes()+":"+(c.getSeconds()<10?"0":"")+c.getSeconds();
if (ie) { clock.innerText=o;	}
if (nn) {
 	var year=1900+c.getYear();
	var m=(c.getMonth()<9) ? ("0"+c.getMonth()) : (c.getMonth());
	var o="&nbsp;&nbsp;"+c.getDate()+"."+m+"."+year+"  "+(c.getHours()<10?"0":"")+c.getHours()+":"+(c.getMinutes()<10?"0":"")+c.getMinutes()+":"+(c.getSeconds()<10?"0":"")+c.getSeconds();
	document.clock.document.open(); 
	document.clock.document.write("<font size='2' face='Verdana' color='#004080'>"+o+"</font>"); 
	document.clock.document.close(); 
 }
}