function pwnface() { var activeRow = null; var previousClass = null; function row_over() { if ((!activeRow) || (activeRow && activeRow != this)) previousClass=this.className; this.className = "hover" ; } function row_off() { if ((!activeRow) || (activeRow && activeRow != this)) this.className=previousClass; } function row_click() { if (activeRow && activeRow != this) this.className = 'hover'; activeRow = this; } var tables=document.getElementsByTagName('table'); for (var i=0;i