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()' function

function CheckAll(){
         if(document.listform.ALL){
                var c = document.listform.ALL.checked;
         } 
				 if(c.name != 'ALL') {}
				 for (var i=0;i<document.listform.elements.length;i++){
                var e = document.listform.elements[i];
                if(e.name != 'ALL') {
                    if((e.checked!=c)&&(e.name=='cid')){
                     e.checked = c;
                    }
                }
         }
}