<!--
var ctmnow=0;
var  cnewdt;
var todaysDate;

function setdate()  {
  var now = new Date();
  var yr = now.getYear();
  var mName = now.getMonth() + 1;
  var dName = now.getDay() + 1;
  var dayNr = ((now.getDate()<10) ? "0" : "")
              + now.getDate();
    if(dName==1) Day = "Воскресенье";
    if(dName==2) Day = "Понедельник";
    if(dName==3) Day = "Вторник";
    if(dName==4) Day = "Среда";
    if(dName==5) Day = "Четверг";
    if(dName==6) Day = "Пятница";
    if(dName==7) Day = "Суббота";
    
    if(mName==1) Month="Январ.";
    if(mName==2) Month="Февр.";
    if(mName==3) Month="Марта";
    if(mName==4) Month="Апреля";
    if(mName==5) Month="Мая";
    if(mName==6) Month="Июня";
    if(mName==7) Month="Июля";
    if(mName==8) Month="Августа";
    if(mName==9) Month="Сент.";
    if(mName==10) Month="Окт.";
    if(mName==11) Month="Ноябр.";
    if(mName==12) Month="Декаб.";
  todaysDate =(""+dayNr+" "+Month);
  }


function cendtm()  {
  if (ctmnow)
    clearTimeout(ctmnow);
  }

function cstarttm()  {
  var ceh;
  var cem;
  var ces;
   if (ctmnow)
     {
     clearTimeout(ctmnow);
     ctmnow=0;
     }
  cnewdt = new Date();
  ceh=cnewdt.getHours();
  cem=cnewdt.getMinutes();
  ces=cnewdt.getSeconds();
  if (ceh<10)
    ceh='0' + ceh;
  if (cem<10)
    cem='0'+cem;
  if (ces<10)
    ces='0'+ces;
  document.ctmfm.ctm.value = todaysDate + ', ' + ceh+':'+cem+':'+ces;
  ctmnow=setTimeout("cstarttm()",1000);
  }

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = "img/"+arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = "img/"+changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		mbut_over = newImage("mbut_on.gif");
		preloadFlag = true;
	}
}

function size() {
//var h=window.document.body.offsetHeight;

var h1=document.body.clientHeight; 
var h2=document.body.scrollHeight;
var h3=h1-h2+1
//document.frmsize.dat.value = h1 + '-' + h2 + '=' + h3;
document.bottomspace.height = h3
//document.space1.height=Math.ceil((h-510)/2);
//document.space2.height=Math.ceil((h-600)/2);
}

function show(obj)
{
for(i in obj)
document.write('<font color=blue><b>'+i+'</b></font>='+obj[i]+'<br>')
}
// -->