<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<form name=hrong>
<input type=checkbox name=All οnclick="checkAll('mm')">复选框的全选 全不选<br/>
<input type=checkbox name=mm ><br/>
<input type=checkbox name=mm ><br/>
<input type=checkbox name=mm><br/>
<input type=checkbox name=mm><br/>
<input type=checkbox name=mm><br/><br/>
</form>
<SCRIPT LANGUAGE="JavaScript">
function checkAll(str)
{
var a = document.getElementsByName(str);
var n = a.length;
for (var i=0; i<n; i++)
a[i].checked = window.event.srcElement.checked;
}
</SCRIPT>
</BODY>
</HTML>