Sure. Trivial.
Just change the
highlightRow function. Rest all the same:
Code:
function highlightRow( )
{
for ( var t = 1; t < trows.length; ++t )
{
trow = trows[t];
if ( trow != this ) trow.className = "normal";
}
this.className = ( this.className == "highlighted" ) ? "normal" : "highlighted";
}
See it? We always change all rows *except* the clicked-on one to "normal". Then we simply flip-flop the clicked-on row.