//  ...................................................................
// .......................:[ setPointer() ]:............................
//  ...................................................................
function setPointer(start, end, theRow, thePointerColor)
{
    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.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length - end;
    // Opera does not return valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
		&& typeof(theCells[start].getAttribute) != 'undefined' && typeof(theCells[start].getAttribute) !=
'undefined') {
        for (var c = start; c < rowCellsCnt; c++) {
            theCells[c].setAttribute('bgcolor', thePointerColor, 0);
        } // end for
    }
    else {
        for (var c = start; c < rowCellsCnt; c++) {	
            theCells[c].style.backgroundColor = thePointerColor;
        }
    }

    return true;
} // end of the 'setPointer()' function

/* example:
<tr onMouseOver="setPointer(1,1,this,'#efefcf')" onmouseout="setPointer(1,1,this,'#efefef')">
*/

function setPointer2(theCell, thePointerColor)
{
    
    
    if (typeof(window.opera) == 'undefined'
		&& typeof(theCell.getAttribute) != 'undefined' && typeof(theCell.getAttribute) !=
'undefined') {

            theCell.setAttribute('bgcolor', thePointerColor, 0);
    }
    else {
            theCell.style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function

function setPointer3(start, end, theRow, thePointerColor)
{
    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.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length - end;
    // Opera does not return valid values with "getAttribute"
    if (typeof(window.opera) == 'undefined'
		&& typeof(theCells[start].getAttribute) != 'undefined' && typeof(theCells[start].getAttribute) !=
'undefined') {
        //for (var c = start; c < rowCellsCnt; c++) {
            theCells[1].setAttribute('bgcolor', thePointerColor, 0);
        //} // end for
    }
    else {
        //for (var c = start; c < rowCellsCnt; c++) {	
            theCells[1].style.backgroundColor = thePointerColor;
        //}
    }

    return true;
}
