a1on  = new Image(); a1on.src  = "images/news/ikonok/hozzaszolas.jpg";
a1off = new Image(); a1off.src = "images/news/ikonok/hozzaszolas_kivalasztva.jpg";

a2on  = new Image(); a2on.src  = "images/news/ikonok/nyomtatas.jpg";
a2off = new Image(); a2off.src = "images/news/ikonok/nyomtatas_kivalasztva.jpg";

a3on  = new Image(); a3on.src  = "images/news/ikonok/elkuldes_emailben.jpg";
a3off = new Image(); a3off.src = "images/news/ikonok/elkuldes_kivalasztva.jpg";

a4on  = new Image(); a4on.src  = "images/news/ikonok/forum.jpg";
a4off = new Image(); a4off.src = "images/news/ikonok/forum_kivalasztva.jpg";

function Icon_on(imgname)
{
        document[imgname].src=eval(imgname+"on.src");
        window.status = 'Open';
        return true;
}



function Icon_off(imgname)
{
	document[imgname].src=eval(imgname+"off.src");
	window.status = '';
        return true;
}

function Back()
{
        history.back();
      
}
function SHOW(imgname,BIGname,ALTname)
{       document[BIGname].src=document[imgname].src;
        OLD=document[BIGname].alt;
	     document[BIGname].alt=imgname;
	     document.getElementById(ALTname).innerHTML=document[imgname].alt;
    	 window.status = document[imgname].alt;
        return true;
}
function ConfirmDelete(id,email) {
		mode = confirm("Biztosan törölni szeretné a(z)"+email+"az e-mail címet a listából?");
		if(mode){
			document.location = "adminDATA.php?page=userhirlevel&DEL=" + id;
		}
	}
function ConfirmEdit(id,username) {
		mode = prompt("Módosíthatja a felhasználó nevét!",username);
		if((mode!=username)&&(mode!=null)&&(mode!='')){
			document.location = "adminDATA.php?page=userhirlevel&MFY=" + id+'&NAME='+mode;
		}
	}
  function DatePopup(form, field,sreload,olddate){
	dateWin=window.open('classes/date.php?field='+field+'&form='+form+'&sreload='+sreload+'&olddate='+olddate,'datepicker','width=180,height=220,left=' + ((screen.width-200)/2) + ',top=' + ((screen.height-200)/2) + ',toolbar=no,location=,status=yes,scrollbars=no,resizable=no,menubar=no,dependent=yes');
	dateWin.focus()
}	
  function MAILPopup(mail){
	dateWin=window.open('../NEWSshow.php?nID='+mail,'hirlevel','width=680,height=700,left=' + ((screen.width-570)/2) + ',top=' + ((screen.height-600)/2) + ',toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,menubar=no,dependent=no');
	dateWin.title='zoller a király';
	dateWin.focus()
}
  function WINpopup(sURL,swidth){
	dateWin=window.open(sURL,'','width='+swidth+' ,height=' + screen.height + ',left=0,top=0,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,menubar=no,dependent=no');	
	dateWin.focus();
}
  function WINpopupCenter(sURL,swidth,sheight,toolbar){
  Wh=(screen.height-sheight)/2;
  Ww=(screen.width-swidth)/2;
  tbar="no";
  if(toolbar)tbar="yes";
	dateWin=window.open(sURL,'','width='+swidth+' ,height=' + sheight + ',left='+Ww+',top='+Wh+',toolbar='+tbar+',location=no,status=no,scrollbars=no,resizable=no,menubar='+tbar+',dependent=no');	
	dateWin.focus();
}

  function UserPopup(uid){
    WINpopupCenter('./user.php?uid='+uid,400,300);
}

  function NEWSsendPopup(DATA){
    var sURL = './newsSENDER.php?'+DATA; 
	dateWin=window.open(sURL,'','width=400,height=' + screen.height + ',left=0,top=0,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,menubar=no,dependent=no');	
	dateWin.focus();
}
function checkPhoneNumber(number){
return true;
}
function checkEmail(Email)
{
	var FILTER = /\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi;
	FILTER.test('deszső');
	if (FILTER.test(Email))
		{return true;}
		else{return false;}
}
<!--
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}
// -->
<!--
function toggleROW(rowID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[rowID].display = iState ? "" : "none";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(rowID);
        obj.style.display = iState ? "" : "none";
    }
    else if(document.all)	// IE 4
    {
        document.all[rowID].style.display = iState ? "" : "none";
    }
}
// -->
function buildDimmerDiv()
{
    document.write('<div id="dimmer" class="dimmer" style="width:'+ window.screen.width + 'px; height:' + window.screen.height +'px"></div>');
}



function getHTTPbyID(wpanel,URL) {  
    var req = null;  
    if(window.XMLHttpRequest) {  
    	try {req = new XMLHttpRequest();} catch (e) {}
    } else {
    	if (window.ActiveXObject)  {
    		try {req  = new ActiveXObject('Microsoft.XMLHTTP');  } catch (e) {}
      }
    }	
    req.onreadystatechange = function () {  
        if (req.readyState == 4) {  
            if (req.status == 200){  
                wpanel.innerHTML = req.responseText;
            }  
            else{  
                wpanel.innerHTML = 'Hiba a letöltéskor';  
            }  
        }  
    }  

    req.open('GET', URL, true);  

    req.send(null);  

} 
//----------------------------------------------------------
// preload
//----------------------------------------------------------
function addEvent(obj, evType, fn, useCapture) {
	if (obj.addEventListener) {
		obj.addEventListener(evType,fn,useCapture);
		return true;
	} else if(obj.attachEvent){
		return obj.attachEvent("on"+evType,fn);
	} else {
		return false;
	}
}
//----------------------------------------------------------
function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if (node == null) node = document;
	if (tag == null) tag = '*';
	var elems = node.getElementsByTagName(tag);
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	var i = 0;
	for (var j = 0; j < elems.length; j++) {
		if ( pattern.test(elems[j].className) ) {
			classElements[i++] = elems[j];
		}
	}
	return classElements;
}
//----------------------------------------------------------
function getFirstElementByClass(searchClass,node,tag) {
	if (node == null) node = document;
	if (tag == null) tag = '*';
	var elems = getElementsByClass(searchClass,node,tag);
	if (elems.length > 0) return elems[0];
	return null;
}
//----------------------------------------------------------

function setOverlib(){
var menu = getElementsByClass("infobox",null,"a");
if (!menu) return;
for (var j = 0; j < menu.length; j++) {
	menu[j].style.color="#1b2e69";
	menu[j].style.backgroundColor="#DADEFE";
	menu[j].onmouseout = function() {
		return nd();
	}
 }
}
addEvent(window, 'load', setOverlib); 

