function altRowColors(obj){
        var colorA = "#CCCCCC";
        var colorB = "#FFFFFF";
        var x = 0;
        var theTable;
        if(obj == '' || isNaN(obj) == false){
                theTable = document.getElementsByTagName("TABLE");
                theTable = theTable[x];
        }else if(obj != '' && obj != 'all'){
                theTable = document.getElementById(obj);
        }else{
                theTable = document;
        }
        var theRows = theTable.getElementsByTagName("TR");
        var n = theRows.length;
        for(var i = 0; i < n; i++){
                theRows[i].style.backgroundColor = colorB;
        }
        for(var i = 0; i < n; i++){
                theRows[i++].style.backgroundColor = colorA;
        }
}