
var kepTimeoutFD;
var oraTimeoutFD;

function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
// add a zero in front of numbers<10
m=checkTime(m);
s=checkTime(s);
document.getElementById('ora').innerHTML=h+":"+m+":"+s;
oraTimeoutFD=setTimeout('startTime()',500);
}

function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
}

function menuclick(a) {
	document.menu.cel.value=a;
	document.menu.submit();
}

function forumclick(a,b,c) {
	document.forum.cel.value=a;
	document.forum.topic.value=b;
	document.forum.page.value=c;
	document.forum.submit();
}

function kepopen(a) {
	var d;
	d = document.getElementById('kepnezegeto');
	document.kepx.src = a;
	d.style.visibility = 'visible';
	d.style.width = "100%";
	d.style.height = "100%";
	kepTimeoutFD = setTimeout("kepclose();", 5000);
}

function kepclose() {
	var d;
	d = document.getElementById('kepnezegeto');
	d.style.visibility = 'hidden';	
	d.style.width = '1px';
	d.style.height = '1px';
	clearTimeout(kepTimeoutFD);
}

function kepx_hover() {
	document.kepx_X.src="design1/x.png"
}

function kepx_() {
	document.kepx_X.src="design1/x_.png"
}

function kepP_hover() {
	document.kepx_P.src="design1/p.png"
}

function kepP_() {
	document.kepx_P.src="design1/p_.png"
}

function kepS_hover() {
	document.kepx_S.src="design1/s.png"
}

function kepS_() {
	document.kepx_S.src="design1/s_.png"
}

function kepB_hover() {
	document.kepx_B.src="design1/b.png"
}

function kepB_() {
	document.kepx_B.src="design1/b_.png"
}

function kepF_hover() {
	document.kepx_F.src="design1/f.png"
}

function kepF_() {
	document.kepx_F.src="design1/f_.png"
}

function forumclickx(a) {
	var d = document.getElementById(a);
	if (d.style.visibility == "visible") {
		d.style.visibility = "hidden";
		d.style.height = "0";
	} else {
		d.style.visibility = "visible";
		d.style.height = "auto";
	}
}

