<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test</title>
<script type="text/javascript" language="javascript">
function ChangeOtherStatus(form)
{
alert(document.forms["zz"].elements[2].type);
for( i=0; i<document.forms["zz"].elements.length;i++)
{
f =document.forms["zz"].elements[i];
if(f.type=="checkbox")
{
f.checked = form.Checkbox1.checked;
}
alert(document.forms["zz"].elements[i].type);
}
}
</script>
</head>
<body>
<form action="ConstantsMenu.asp" id="zz">
<input id="Checkbox1" οnclick="ChangeOtherStatus(this.form)" type="checkbox" />
<input id="Checkbox2" type="checkbox" />
<input id="Checkbox3" type="checkbox" />
</form>
</body>
</html>