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

function checkUncheckAllAr(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name == 'ar[]')
		{
			theForm[z].checked = theElement.checked;
		}
	}
}