<script language="javascript">
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
</script>
<form name="form1" method="post" action="del.asp">
<input type="checkbox" name="DelID" id=DelID value=<%=对应的代码%>>
............... '对应的内容自己补充
<input type="checkbox" name="chkall" onClick="CheckAll(this.form)">选中所有
<input type="submit" name="sumbit" value="删除" />
<input type="reset" name="sumbit2" value="重置" >
</form>