Moin!
Bitteschön...
<html>
<head>
<title>Modulo einer Zahl</title>
<script language="javascript">
function markChildren( cb ) {
var state= cb.checked;
var prnt= cb;
while (prnt.nodeName != "LI" ) {
prnt= prnt.parentNode;
}
var inputs= prnt.getElementsByTagName('INPUT');
for (var i=inputs.length; i--;) {
if ( inputs[i].type == 'checkbox' ) {
inputs[i].checked= state;
}
}
}
</script>
</head>
<body>
<form name="eingabe" onsubmit="return false">
<ol>
<li><input type="checkbox" onchange="markChildren(this)"/> Kategorie A
<ol>
<li><input type="checkbox" onchange="markChildren(this)"/> Kategorie AA</li>
<li><input type="checkbox" onchange="markChildren(this)"/> Kategorie AB</li>
</ol>
</li>
<li><input type="checkbox" onchange="markChildren(this)"/> Kategorie B</li>
</ol>
</form>
</body>
</html>
-- Skeeve