请问在下面部分加入什么代码才可以点击数字按钮将相应的checkbox变为checked(被选中)啊
<SCRIPT language=javascript>
function secBoard(n)
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells[i].className="sec1";
secTable.cells[n].className="sec2";
在这部分加入代码
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies[i].style.display="none";
mainTable.tBodies[n].style.display="block";
}
</SCRIPT>
<!--HTML部分-->
<TABLE id=secTable cellSpacing=0 cellPadding=0 width=290>
<TBODY>
<TR height=35>
<TD class=sec2 onclick=secBoard(0) width=43 align="center"> 1</TD> '数字按钮
<TD class=sec1 onclick=secBoard(1) width=43 align="center"> 2</TD>
<TD class=sec1 onclick=secBoard(2) width=43 align="center"> 3</TD>
<TD class=sec1 onclick=secBoard(3) width=43 align="center"> 4</TD>
<TD class=sec1 onClick=secBoard(4) width=43 align="center"> 5</TD>
</TR>
</TBODY>
</TABLE>
<table>
<tr>
<td width="570" height="1" bgcolor="#999999"></td>
</tr>
</table>
<TABLE class="main_tab" id=mainTable height=38 cellSpacing=0 cellPadding=0 width=575 border=0>
<!--关于TBODY标记-->
<form name=form1 onsubmit=return(search4())>
<TBODY style="DISPLAY: block">
<TR>
<TD vAlign=top align=middle height="38">
<TABLE cellSpacing=0 cellPadding=0 width=291 border=0 height="38">
<TBODY>
<TR>
<TD height="35">
<p>综合搜索:
<input type="text" name="textfield">
<input type="submit" name="Submit1" value="搜索">
<input type="checkbox" name="abc0"> '就是这些checkbox,一开始没有选中当选择相应的数字按钮后就被选中怎样实现
</p>
</TD>
</TR></TBODY>
</TABLE>
</TD></TR></TBODY><!--关于cells集合-->
<TBODY style="DISPLAY: none">
<TR>
<TD vAlign=top align=middle height="38">
<TABLE cellSpacing=0 cellPadding=0 width=291 border=0 height="38">
<TBODY>
<TR>
<TD height="35">
<p>综合搜索:
<input type="text" name="textfield2">
<input type="submit" name="Submit2" value="搜索">
<input type="checkbox" name="abc1">
</p>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR></TBODY><!--关于tBodies集合-->
<TBODY style="DISPLAY: none">
<TR>
<TD vAlign=top align=middle height="38">
<TABLE cellSpacing=0 cellPadding=0 width=291 border=0 height="38">
<TBODY>
<TR>
<TD height="35">
<p>综合搜索:
<input type="text" name="textfield3">
<input type="submit" name="Submit3" value="搜索">
<input type="checkbox" name="abc2">
</p>
</TD>
</TR></TBODY>
</TABLE>
</TD></TR></TBODY><!--关于display属性-->
<TBODY style="DISPLAY: none">
<TR>
<TD vAlign=top align=middle height="38">
<table cellspacing=0 cellpadding=0 width=291 border=0>
<tbody>
<tr>
<td height="38">
综合搜索:
<input type="text" name="textfield4">
<input type="submit" name="Submit4" value="搜索">
<input type="checkbox" name="abc3">
</td>
</tr>
</tbody>
</table>
</TD>
</TR>
</TBODY>
<TBODY style="DISPLAY: none">
<TR>
<TD vAlign=top align=middle height="38">
<table cellspacing=0 cellpadding=0 width=291 border=0 height="38">
<tbody>
<tr>
<td height="35">
综合搜索:
<input type="text" name="textfield5"> <input type="submit" name="Submit5" value="搜索">
<input type="checkbox" name="abc4">
</td>
</tr>
</tbody>
</table>
</TD>
</TR>
</TBODY>
</form>
</TABLE>