danik.js,
ну теперь то твоя душенька довольна ?
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script>
window.onload = function () {
document.onclick = function (e) {
var target = e && e.target || event.srcElement;
if(target.name == "ck[]") {
var ck = document.querySelectorAll('.'+target.className),
disabled = false;
for (var i=0; i<ck.length; i++) {
if(ck[i].checked) {disabled=true; break}
}
ck = document.querySelectorAll('[name="ck[]"]:not(.'+target.className+')')
for (var i=0; i<ck.length; i++) {
ck[i].disabled = disabled
}
}
}
}
</script>
</head>
<body>
<input type="checkbox" name="ck[]" class="test" value="1" >1
<input type="checkbox" name="ck[]" class="tovary" value="2" >2
<input type="checkbox" name="ck[]" class="test" value="3">3
<input type="checkbox" name="ck[]" class="tovary" value="3" >3
</body>
</html>