I have a column of checkboxes in the ASP response page. How do I put the "check all" checkbox? The Javascript below was a "submit" button originally.

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function checkAll(field)
{
for (i = 0; i < field.length; i++)
  field[i].checked = true ;
}

//  End -->
</script>
And now the Body:
Code:
<input type="checkbox" name="CheckAll" value="Check All" onClick="this.value=checkall(this.form.list);">