okay this code is supposed to be able to write out different responses for my check boxes but of course it is not working so here is the code

<script type="text/javascript">
function get_boxes()
{
var many = document.week.day.length;
document.write("the length of the checkboxes is " + many + "<br />");
document.write(i + "<br />");
for(i=1; i<many; i++)
{
if (document.week.day[i].checked==true)
{
document.write(i);
}

}
var weekday = document.week.day[2].value;
document.write(weekday);
}/*closes function*/



</script>
</head>
<body>
<fieldset>
<legend>
Checkbox Attributes
</legend>
<form name="week">

<input type="checkbox" name="day" value="s"/>Sunday<br>
<input type="checkbox" name="day" value="m"/>Monday<br>
<input type="checkbox" name="day" value="t"/>tuesday<br>
<input type="checkbox" name="day" value="w"/>Wednesday<br>
<input type="checkbox" name="day" value="th"/>Thursday<br>
<input type="checkbox" name="day" value="f"/>Friday<br>
<input type="checkbox" name="day" value="sa"/>Saturday<br>
<input type="button" value="submit" onClick="get_boxes()">

</form>
</fieldset>


</body>