有两个checkbox{RootID,ChildID}怎么让选中RootID后,在它内部的ChildID完全被选中或者取消?
<form name=theForm>
<FIELDSET astyle="BORDER:1px dashed #4e8ae4;" align=center>
<LEGEND><input name=RootID type=checkbox checked value=1 onclick="javascript:CheckAll('child_1')">语言选择</LEGEND>
<table width=500>
<tr>
<td><input name=ChildID type=checkbox checked value=1>中文</td>
</tr>
</table>
<table width=500>
<tr>
<td><input name=ChildID type=checkbox checked value=2>英文</td>
</tr>
</table>
</FIELDSET>
<FIELDSET astyle="BORDER:1px dashed #4e8ae4;" align=center>
<LEGEND><input name=RootID type=checkbox checked value=2 onclick="javascript:CheckAll('child_2')">系统配置</LEGEND>
<table width=500>
<tr>
<td><input name=ChildID type=checkbox checked value=3>修改管理员</td>
</tr>
</table>
<table width=500>
<tr>
<td><input name=ChildID type=checkbox checked value=4>增加管理员</td>
</tr>
</table>
</FIELDSET>
</form>