function open_doc(cime,szelesseg,magassag,ablak){
	if (typeof usrwindow != 'undefined'){
	if (!usrwindow.closed){usrwindow.close();}}

  pozx = (screen.width) ? (screen.width-szelesseg)/2 : 0;
  pozy = (screen.height) ? (screen.height-magassag)/2 : 0;

		usrwindow=window.open(cime, ablak, 'resizable=yes,scrollbars=yes,hotkeys=yes,width='+szelesseg+',height='+magassag+',top='+pozy+',left='+pozx);
}

function changeto(highlightcolor)
{
	source = event.srcElement;
	if (source.tagName == "TR" || source.tagName == "TABLE") return;
	while (source.tagName != "TR") source = source.parentElement;
	if (source.style.backgroundColor != highlightcolor && source.id != "ignore") source.style.backgroundColor = highlightcolor;
}

function changeback(originalcolor)
{
	if (event.fromElement.contains(event.toElement) || source.contains(event.toElement) || source.id == "ignore") return;
	if (event.toElement != source) source.style.backgroundColor = originalcolor;
}




/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="© Kármán Balázs - Novák László "

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()