function checkUncheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for (;;) {
		if ((theForm[z].type == 'checkbox') && (theForm[z] != theElement))
	    	theForm[z].checked = theElement.checked;
	    z++;
	    if (theForm.elements.length <= z) break;
	}
}