неработает
зделал так:
<script type="text/javascript">
var checkboxes = document.getElementById('content-wrapper').getElementsByTagName("input");
checkboxes[0].onclick = function() {
if(checkboxes[0].checked == true) {
for (var i = 1; i <= 8; i++) {
if (i==2)
checkboxes[i].checked = true
else {
checkboxes[i].checked = false
checkboxes[i].disabled = true
}
}
} else
for (var i = 1; i <= 8; i++) {
checkboxes[i].checked = false
checkboxes[i].disabled = false
}
}
</script>