Use braces with your for statement (and if statement) - they are not optional. And every Javascript statement should be followed by a semi-colon ;
except function, if, else, for, while, do, switch, and try.
Code:
for (var i = 0; i < el.parentNode.cells.length; i++) {
el.parentNode.cells[i].style.backgroundColor='';
el.style.backgroundColor=col;
}
"The louder he talked of his honour, the faster we counted our spoons." - Samuel Johnson