    var markedRow = new Array();
    
    function setPointer(theRow, thePointerColor, theNormalBgColor, c)
    {
    
        // theRow           : la riga su cui si trova il puntatore
        // thePointerColor  : il colore di sfondo da dare alle righe quando attivate;
        // theNormalBgColor :il colore di sfondo da ripristinare
        // c                :il <td> della riga da dove iniziare
        //                  a cambiare il colore di sfondo 0 per il primo;
        
        var theCells = null;
        
        if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
            return false;
        }

        if (typeof(document.getElementsByTagName) != 'undefined') {
            theCells = theRow.getElementsByTagName('td');
        }
        else if (typeof(theRow.cells) != 'undefined') {
            theCells = theRow.cell;
        }
        else {
            return false;
        }
        
        var rowCellsCnt  = theCells.length;
        var currentColor = null;
        var newColor     = null;
        
        if (typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
            currentColor = theCells[0].getAttribute('bgcolor');
            newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                         ?theNormalBgColor
                         :thePointerColor;
            for (c ; c < rowCellsCnt; c++) {
                theCells[c].setAttribute('bgcolor', newColor, 0);
            }
        }
        else {
            currentColor = theCells[0].style.backgroundColor;
            newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                         ?theNormalBgColor
                         :thePointerColor;
            for (c ; c < rowCellsCnt; c++) {
                theCells[c].style.backgroundColor = newColor;
            }
        }
        
    }


