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=yes,resizable=yes,menubar='+tbar+',dependent=no');	
	dateWin.focus();
}

  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>');
}
