// setColor.js   movie database © Copyright 2003 Selmar Ruben Gnambs. All Rights reserved.
function setColor(theRow, theBackColor, theColor) {
  if (theBackColor == "" || 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 CellsCount = theCells.length;
  for (var i=0; i<CellsCount; i++) { theCells[i].style.backgroundColor = theBackColor; }
  return true;
}