fredrsf,
<table>
<tr>
<td>
<input type="checkbox" name="line1" value="1">
<input type="checkbox" name="line1" value="2">
<input type="checkbox" name="line1" value="3">
<input type="checkbox" name="line1" value="4">
<input type="checkbox" name="line1" value="5">
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="line2" value="1">
<input type="checkbox" name="line2" value="2">
<input type="checkbox" name="line2" value="3">
<input type="checkbox" name="line2" value="4">
<input type="checkbox" name="line2" value="5">
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="line3" value="1">
<input type="checkbox" name="line3" value="2">
<input type="checkbox" name="line3" value="3">
<input type="checkbox" name="line3" value="4">
<input type="checkbox" name="line3" value="5">
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="line4" value="1">
<input type="checkbox" name="line4" value="2">
<input type="checkbox" name="line4" value="3">
<input type="checkbox" name="line4" value="4">
<input type="checkbox" name="line4" value="5">
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="line5" value="1">
<input type="checkbox" name="line5" value="2">
<input type="checkbox" name="line5" value="3">
<input type="checkbox" name="line5" value="4">
<input type="checkbox" name="line5" value="5">
</td>
</tr>
</table>
<script>
var checkboxes = (document.getElementsByTagName('input'));
for(var i=0;i<checkboxes.length;i++){
checkboxes[i].onclick = function (){
var checkboxes = (document.getElementsByTagName('input'));
for(var i=0;i<checkboxes.length;i++){
if((this.name!=checkboxes[i].name || this.value!=checkboxes[i].value) && (this.name==checkboxes[i].name || this.value==checkboxes[i].value)){
checkboxes[i].disabled = !!this.checked;
}
}
}
}
</script>
так надо ?