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';
}
