function setRowColor(theRow, newColor) { var theCells = null; // get theCells 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; // Set newColor var c = null; try { for (c = 0; c < rowCellsCnt; c++) { theCells[c].setAttribute('bgcolor', newColor, 0); } } catch(e) { for (c = 0; c < rowCellsCnt; c++) { theCells[c].style.backgroundColor = newColor; } } return true; } var rollSrc = new Array(); function preloadImg(name, normalSrc, overSrc) { img = new Image (); img.src = normalSrc; img.src = overSrc; rollSrc[name] = new Array(); rollSrc[name]["normal"]=normalSrc; rollSrc[name]["over"]=overSrc } function getRollNormal(name){ return rollSrc[name]['normal']; } function getRollOver(name){ return rollSrc[name]['over']; } function setRollNormal(name) { document.images[name].src = rollSrc[name]['normal']; } function setRollOver(name) { document.images[name].src = rollSrc[name]['over']; }