<!-- 
//MESZ portal - By Simon Nándor
//tema/alap.js

//Mekkora a szélesség? 
function getW(){
	return (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
}

//Mekkora a magasság? 
function getH(){
	return (typeof window.innerHeight == 'undefined')?document.body.clientHeight:window.innerHeight;
}

// Kép megnyitása új ablakban
function OpenNewWindow(bigurl, width, height)
{
    var newWindow = window.open("", "pictureViewer", "location=no, directories=no, fullscreen=no, menubar=no, status=no, toolbar=no, width=" + width + ", height=" + height + ", scrollbars=no");
    newWindow.document.writeln("<html>");
    newWindow.document.writeln("<body style='margins: 0 0 0 0;'>");
    newWindow.document.writeln("<a href='javascript:window.close();'>");
    newWindow.document.writeln("<img src='" + bigurl + "' alt='Click to close' id='bigImage'/>");
    newWindow.document.writeln("</a>");
    newWindow.document.writeln("</body></html>");
    newWindow.document.close();
}

//egyszerű elem elrejtő   
function elrejt_megjelenit(ELEM){
  if (document.getElementById(ELEM).style.display=='inline') 
    {
    document.getElementById(ELEM).style.display='none';
    }
   else 
    {
    document.getElementById(ELEM).style.display='inline';
    }
}

// -->
