Here's the challenge... I have a table of radio buttons, like so:

Code:
<table border="0" cellspacing="0" cellpadding="4">
    <tr>
      <td>&nbsp;</td>
      <td>Class 1</td>
      <td>Class 2</td>
      <td>Class 3</td>
      <td>Class 4</td>
      <td>Class 5</td>
    </tr>
    <tr>
      <td>Time1</td>
      <td><p>
        <input type="radio" name="1" id="1" value="1" />
      1_1</p></td>
      <td><p>
        <input type="radio" name="1" id="1" value="2" />
      1_2</p></td>
      <td><p>
        <input type="radio" name="1" id="1" value="3" />
      1_3</p></td>
      <td><p>
        <input type="radio" name="1" id="1" value="4" />
      1_4</p></td>
      <td><p>
        <input name="1" type="radio" id="1" value="5" />
      1_5</p></td>
    </tr>
    <tr>
      <td>Time2</td>
      <td><p>
        <input type="radio" name="2" id="2" value="1" />
      2_1</p></td>
      <td><p>
        <input type="radio" name="2" id="2" value="2" />
      2_2</p></td>
      <td><p>
        <input type="radio" name="2" id="2" value="3" />
      2_3</p></td>
      <td><p>
        <input type="radio" name="2" id="2" value="4" />
      2_4</p></td>
      <td><p>
        <input type="radio" name="2" id="2" value="5" />
      2_5</p></td>
    </tr>
    <tr>
      <td>Time3</td>
      <td><p>
        <input type="radio" name="3" id="3" value="1" />
      3_1</p></td>
      <td><p>
        <input type="radio" name="3" id="3" value="2" />
      3_2</p></td>
      <td><p>
        <input type="radio" name="3" id="3" value="3" />
      3_3</p></td>
      <td><p>
        <input type="radio" name="3" id="3" value="4" />
      3_4</p></td>
      <td><p>
        <input type="radio" name="3" id="3" value="5" />
      3_5</p></td>
    </tr>
    <tr>
      <td>Time4</td>
      <td><p>
        <input type="radio" name="4" id="4" value="1" />
      4_1</p></td>
      <td><p>
        <input type="radio" name="4" id="4" value="2" />
      4_2</p></td>
      <td><p>
        <input type="radio" name="4" id="4" value="3" />
      4_3</p></td>
      <td><p>
        <input type="radio" name="4" id="4" value="4" />
      4_4</p></td>
      <td><p>
        <input type="radio" name="4" id="4" value="5" />
      4_5</p></td>
    </tr>
    <tr>
      <td>Time5</td>
      <td><p>
        <input type="radio" name="5" id="5" value="1" />
      5_1</p></td>
      <td><p>
        <input type="radio" name="5" id="5" value="2" />
      5_2</p></td>
      <td><p>
        <input type="radio" name="5" id="5" value="3" />
      5_3</p></td>
      <td><p>
        <input type="radio" name="5" id="5" value="4" />
      5_4</p></td>
      <td><p>
        <input type="radio" name="5" id="5" value="5" />
      5_5</p></td>
    </tr>
  </table>
I need to prevent the user from choosing more than one radio button in each row/column. So, the user could choose 1_1, 2_2, 3_3, 4_4, 5_5, but not 1_1, 2_1, 3_1, 4_1, 5_1, etc.

I found some code here: (at the bottom) http://www.thescripts.com/forum/thread509832.html

It works great, except when the radio buttons are pre-checked (set dynamically, server-side). Any ideas for a better solution?

Thanks,
Glen