Thanks for this mate, almost does it perfectly, but I want to adapt the function example you provided so as to be able to pass the ID of the checkboxes so as to use on different forms, I've got the following so far...
function Ash_CheckAllCheckboxes(field, numberofcheckboxes)
{
for (i = 1; i < numberofcheckboxes; i++)
document.getElementById(eval(field + i)).checked = true;
}
And I'm calling it like this...
Ash_CheckAllCheckboxes('CheckboxID_',5)
BUT I'm getting (via Firebug) the error "CheckboxID_1 is not defined", however if I set the field name within the function itself, its working fine - where am I going wrong here? It seems to be going wrong to me in the bit where I'm appending the numeric onto the checkbox ID that is beind passed into the function?
Thanks for your help.