function sm_showhide(menu,what,what2)
{
 var MSIE = navigator.userAgent.indexOf('MSIE')>=0?true:false;
 var Opera = navigator.userAgent.indexOf('Opera')>=0?true:false;
 if(!document.all || Opera)
 	dplay = "table-row"
 else
 	dplay = "block"
 expDate = new Date();
 expDate.setTime(expDate.getTime() + (365*24*60*60*1000));
 if (what.style.display==dplay)
 {
  what.style.display='none';
  what2.src=Closed.src;
  setCookie(menu, 0, expDate);
 } else
 {
  what.style.display=dplay;
  what2.src=Open.src;
  setCookie(menu, 1, expDate);
 }
}
//  Táblázatformázó
function sm_setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}
function goURL(pid,target) {
	if ( target == '_SELF' ) {
		document.location.href='index.php?p='+pid;
	} else {
		win = window.open(pid,'','');
		win.focus();
	}
}
