function ujablak(mit,hova,w,h) {
  ablakneve = window.open(mit, hova, "resizable=1,status=0,menubar=0,scrollbars=yes,location=0,toolbar=0,width="+w+",height="+h+",left=0,top=0");
  ablakneve.moveTo((screen.width/2)-(w/2),(screen.height/2)-(h/2));
}

function teljesablak(mit,hova,kepx,kepy) {
  kepx = parseInt(kepx) + 20;
  kepy = parseInt(kepy) + 25;
  ablakneve = window.open(mit, hova, "menubar=0,width="+kepx+",height="+kepy+",left=0,top=0");
  ablakneve.moveTo((screen.width/2)-(kepx/2),(screen.height/2)-(kepy/2));
  ablakneve.moveTo((screen.width/2)-(kepx/2),(screen.height/2)-(kepy/2));
}

function ablakbezar(){
window.close();
}

function okbe(){
document.images["okgomb"].src = "/OK_lenyomva.gif";
}

function okki(){
document.images["okgomb"].src = "/OK_alap.gif";
}

function 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;
} // end of the 'setPointer(this, '#szín')' function.. ettől lehet szinváltós linkeket csinálni, ha felétolják az egeret
