function tblhgh()
{
  document.all('tblmain2').style.removeAttribute('height');
  if ((spc=document.body.clientHeight -
    (document.all('tblmain1').offsetHeight+document.all('tblmain3').offsetHeight)) < 0)
  return 0;
  if (document.all('tblmain2').offsetHeight < spc)
    document.all('tblmain2').style.height=spc;
}

function mainmenuOmo( mit, hogy )
{
  if (hogy)
  {
    mit.style.color = '#cb1418';
    mit.style.backgroundColor = '#474f5c';
  }
  else
  {
    mit.style.removeAttribute('color');
    mit.style.removeAttribute('backgroundColor');
  }
}


var nZw = null;
function openZoomWin( url , wi, he)
{
  var nw=null;
  if (nZw) nw = nZw.closed  ? 1 : 0;
  else nw = 1;
  if (nw)
  {
    nZw = window.open('', '_blank', 'directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no, width='+ wi +', height='+ he);
    nZw.document.open();
    nZw.document.write('<html><body style="cursor: hand; margin: 0;" onclick="window.close()"><img id="nZimg" alt="Kattintson a képre az ablak bezárásához!"></body></html>');
    nZw.document.close();
  }
  else nZw.resizeTo( wi, he );
  nZw.focus();
  nZw.document.all('nZimg').src = url;
}


function ErtSrcOmo( mit, hogy )
{
  if (hogy)
  {
    mit.style.color = '#cb1418';
    mit.style.backgroundColor = '#474f5c';
  }
  else
  {
    mit.style.removeAttribute('color');
    mit.style.removeAttribute('backgroundColor');
  }
}


function ArtPrint( url )
{
  var  nw = window.open(url, '_blank', 'directories=no, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, titlebar=no, toolbar=no, width=710, height=500');
}

function openMailWin( typ, par )
{
//  window.open(fnam, '_blank', 'directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no, width='+ wi +', height='+ he);
  window.open('phpinc/sendmail.php?typ='+typ+'&par='+par, '_blank', '');
}


function openpupwin( url, tit , led )
{
  uw = window.open('', '_blank', 'directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no, width=300, height=200');
  uw.document.open();
  uw.document.write('<html><head><head><meta http-equiv="Content-Language" content="hu" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /><link rel="stylesheet" type="text/css" href="images/styles_news.css" /><script language="javascript" src="images/scripts_news.js"></script></head><body onclick="pwjump(' + "'" + url + "'" + ');"><div class="nwtbl"><div class="ppti">' + tit + '</div>' + led + '</div></body></html>');
  uw.focus();
}
