I have hacked up and extracted JS code from phpMyAdmin's software. Basically I wanted to take advantage of their row highlighting and checkbox selection functionality.

I have it stripped down and everything is working except 1 thing.

Basically, if there is a row already selected when the page loads, I want the row to be highlighted. And when you click the highlighted row, with 1 click the row is un-highlighted and the checkbox un-checked.

Here are 2 versions of what I am talking about:
Default => No checked boxes : http://www.ericbusch.net/unchecked.html
Default => 1 Checked box : http://www.ericbusch.net/checked.html

Can someone help me figure out how to have the row automatically highlighted if it is checked and for it to be unchecked and un-highlighted with 1 click?

Thanks
Eric