Hi there,
You need to loop through the Form collection and diagnose each control. When it's a check box, set its checked property:
function CheckAll()
{
for (var i = 0; i < document.MyForm.elements.length; i++)
{
if(document.MyForm.elements[i].type == 'checkbox')
{
document.MyForm.elements[i].checked = true
}
}
}
It's JavaScript, but the same principle applies to VBScript.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|