function changeRowColor(theRow, theBackgroundColor) 
{
if(typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') 
{
return false;
}
var row_cells_cnt = theRow.cells.length;
for (var c = 0; c < row_cells_cnt; c++) 
{
theRow.cells[c].bgColor = theBackgroundColor;
}
return true;
}