// JavaScript Document
function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "Január";
   months[1]  = "Február";
   months[2]  = "Március";
   months[3]  = "Április";
   months[4]  = "Május";
   months[5]  = "Június";
   months[6]  = "Július";
   months[7]  = "Augusztus";
   months[8]  = "Szeptember";
   months[9]  = "Október";
   months[10] = "November";
   months[11] = "December";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = year + '. ' + monthname + ' ' + monthday;
   return dateString;
}

var moz = (document.getElementById && !document.all) ? 1 : 0;
 NS4 = (document.layers) ? 1 : 0;
 IE4 = (document.all) ? 1 : 0;
 DOM = (document.getElementById) ? 1 : 0;
 
function go(){
  auj=new Date();
	datum = getCalendarDate();
  if(auj.getMinutes()<10){plusm="0"}else plusm='';
  if(auj.getSeconds()<10){pluss="0"}else pluss='';
  heure = datum + ', ' + auj.getHours() + ':' + plusm + auj.getMinutes() + ':' + pluss + auj.getSeconds();
  document.getElementById('ora').innerHTML=heure;
  setTimeout("go()",1000)
}

function pop(kep,w,h,tit) {
	var msg = window.open('ures.html','popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+w+',height='+h+',top=100,left=100');
	msg.document.write('<head>');
	msg.document.write('<title>'+tit+'</title>');
	msg.document.write('<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">');
	msg.document.write('</head>');

	msg.document.write('<body style="margin: 0px; padding: 0px;">');
	msg.document.write('<a href="javascript: window.close();">');
	msg.document.write('<img width="'+w+'" height="'+h+'" src="'+kep+'" border="0" alt="'+tit+'">');
	msg.document.write('</a></body>');
	msg.document.write('</html>');
	msg.document.close();
}

function poppage(oldal) {
	var msg = window.open(oldal+'.html','popup','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=500,height=300,top=100,left=100');
}

function kepcsere(x,kep)  {
	if (NS4) {
		document.layers[x].src=kep;
	} else if (IE4) {
		document.all[x].src=kep;
	} else if (DOM) {
		document.getElementById(x).src=kep;
	}
}

function check_all(group, action)
{
 for (var i=0; i<group.length; i++)
  group[i].checked = action;
}

function shopimg(xid, event)
{
	if (window.event) 
	{
		y = window.event.clientY;
	} else {
		y = event.pageY;
	}
	document.getElementById(xid).style.top = y - 305;
	document.getElementById(xid).style.display = 'inline';
}

function showmenu(xid, event)
{
	if (window.event) 
	{
		x = window.event.clientX;
	} else {
		x = event.pageX;
	}
	document.getElementById(xid).style.left = x-30;
	document.getElementById(xid).style.display = 'inline';
}

function showmn(xid)
{
	document.getElementById(xid).style.display = 'inline';
}

function opclose(x)  {
	if (NS4)
	{
		if (document.layers[x].diplay == 'inline')
		{
			document.layers[x].diplay = 'none';
		} else {
			document.layers[x].diplay = 'inline';
		}
	}
	else if (IE4)
	{
		if (document.all[x].style.display == 'inline')
		{
			document.all[x].style.display = 'none';
		} else {
			document.all[x].style.display = 'inline';
		}
	}
	else if (DOM)
	{
		if (document.getElementById(x).style.display == 'inline')
		{
			document.getElementById(x).style.display = 'none';
		} else {
			document.getElementById(x).style.display = 'inline';
		}
	}
}
  
