if (e.type == checkbox && e.name != "allbox")
e.checked = e.form.allbox.checked;