function evny(ez) {
	t = new Array()
	t.push("a2002");
	t.push("a2003");
	t.push("a2004");
	t.push("a2005");
	t.push("a2006");
	t.push("a2007");
	t.push("a2008");
	
	for(i=0; i<t.length; i++) {
		document.getElementById( t[i] ).style.display = "none";
	}
	document.getElementById(ez).style.display = "block";
}

function nyz(ez) {
	var atm = document.getElementById(ez);
	if (atm.style.display=="none" || atm.style.display=="") { atm.style.display="block"; }
	else { atm.style.display="none"; }
}

function forras(urlhivas) {
	window.location.href=urlhivas;
}

function kuldes(nyurl) {
	open(nyurl,"","width=550,height=400,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
}

function ellenorzes() {
	if (document.userform.nev.value=="" || 
		document.userform.emailcim.value=="") {
		alert("Kérjük a *-gal jelölt adatokat mindenféleképpen töltse ki!");
		return false;
	}
}

/*
function magassagbeallitas() {
	magassag = document.body.clientHeight;
	document.getElementById("baloldal").style.height = magassag-225+'px';
	document.getElementById("tartalom").style.height = magassag-225+'px';
	document.getElementById("jobboldal").style.height = magassag-225+'px';
}
window.onload=magassagbeallitas;
*/

navHover = function() {
	var lis = document.getElementById("menu_allo").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

navHover2 = function() {
	var lis = document.getElementById("menu_fekvo").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover2);

/* function nyz(ez) {
	var atm = document.getElementById(ez);
	if (atm.style.display=="none" || atm.style.display=="") { atm.style.display="block"; }
	else { atm.style.display="none"; }
} */

function nyzelerhetoseg(mennyi,mit) {
	for (i=1; i<=mennyi; i++) {
		document.getElementById('a'+i).style.display = 'none';
	}
	document.getElementById('a'+mit).style.display='block';
//	document.frames['terkep'].location.href = 'terkep.php?id='+(Number(mit)+1);
	window.terkephely.location.href = 'terkep.php?id='+(Number(mit)+1);
}

function ablaknyitas(nyitofile,x,y,s)
{ open(nyitofile,"","width="+x+",height="+y+",status=no,toolbar=no,menubar=no,resizable=yes,scrollbars="+s); }


function forumvalasz(szam) {
//	alert('rrrrrrrr '+document.getElementById('valasz').value);
	document.getElementById('valasz').value=szam;
	document.getElementById('valaszkiir').innerHTML='válasz erre: #'+szam;
	document.getElementById('nemvalasz').style.display='inline';
}

function nemvalasz() {
	document.getElementById('valasz').value=0;
	document.getElementById('valaszkiir').innerHTML='';
	document.getElementById('nemvalasz').style.display='none';
}