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 getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function szovegresz(hova,konyvtar,id) {
	behivas="ajaxhivas.php?irany=be&konyvtar="+konyvtar+"&id="+id;
	$(hova).load(behivas);
}

// FLASH JAVASCRIPT kommunikacio
function tartalomcsere(hol,mit,mit2,hova,konyvtar,id,cim) {
//	getFlashMovie(flash_hol).valto(flash_mit);
//	alert(cim+" - "+$("#cimresz"));
	$("#"+hol+"link").attr('href',mit2);
	$("#"+hol).attr('src',mit);
	$(hova).html('...');
	$("#cimresz").html(cim);
	szovegresz(hova,konyvtar,id);
}

function tartalomcsere2(kep,kepek,hova,konyvtar,id,cim,k1,k2) {
//	alert(cim+" - "+$("#cimresz"));
	$(hova).html('...');
	$("#cimresz").html(cim);
	szovegresz(hova,konyvtar,id);
	$("#djkep1").attr("src",k1);
	$("#djkep2").attr("src",k2);
}

function fotokcsere(flash_hol,utv,kepszam,cim,sunkepnagyitofajl) {
	getFlashMovie(flash_hol).valto(utv,kepszam,cim,sunkepnagyitofajl);
	window.location = String(window.location).replace(/\#.*$/, "") + "#kepekhelye";
}

function mozgatas(mit,merre,mennyit) {
	$(mit).animate({"top": merre+"="+mennyit+"px"}, "slow");
}

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