function checkUncheckAll(theForm, checked, field) {
	var z = 0;
	while (theForm[z].type != null) {
		if(theForm[z].name == field && theForm[z].type == 'checkbox')
			theForm[z].checked = checked;
		z++;
	}
}
