This is such a Google question...
Something like:
function CheckAll(sp)
{
function CheckAll(sp)
{
var isChecked = sp.checked;
var thisItem = sp.id;
var items = sp.parentNode.parentNode.getElementsByTagName("input");
for (i=0; i<items.length;> {
if (items[i].id != thisItem && items[i].type=="checkbox")
{
if (isChecked)
{
items[i].checked = true;
}
else
{
items[i].checked = false;
}
}
}
}
}
Look
here[
^]. For you the Javascript trigger is the two buttons outside.