// 

var timerID = null;
var timerRunning = false;
 function stopclock ()
{
    if(timerRunning)
    clearTimeout(timerID);
    timerRunning = false;
}
function startclock ()
{
    stopclock();
    showtime();
}
function showtime ()
{
    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var year = now.getYear();
    var month = 1+now.getMonth();
    var data = now.getDate();
    var timeValue = "" +((hours < 10) ? "0" : "") + hours 
    timeValue += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue += ((seconds < 10) ? ":0" : ":") + seconds
    lop.innerText =timeValue;
    var DataValue =""+((data<10)?"0"+data:data)+"."+((month<10)?"0"+month:month)+"."+((year<=99)?"19"+year:year)+"";
    face.innerText = DataValue;
    timerID = setTimeout("showtime()",1000);
    timerRunning = true;
} 

 // -->
 // 
	
img1on=new Image();
img1on.src="images/treug-on.gif"

img1off=new Image();
img1off.src="images/treug.gif"
	 
function ImgOn(imgName,WhatPicture) {
	if (document.images)
	document.images[WhatPicture].src=eval(imgName+"on.src");
}

function ImgOff(imgName,WhatPicture) {
	if (document.images)
	document.images[WhatPicture].src=eval(imgName+"off.src");
}

//-->
// 
function fensec(url,name,width,height,scr,st,loc,mn,tl,rz)
   {
      window.open(url, name, "location="+loc+",menubar="+mn+",toolbar="+tl+",scrollbars="+scr+",status="+st+",width="+width+",height="+height+",resizable="+rz);
   }
function op_win(url) {
	window.open(url, '', 'location=no,menubar=no,toolbar=no,scrollbars=no,status=no,width=100,height=100,resizable=no');
}
//-->
