function menuSubShow(identifier)
{
	$(identifier).style.display="block";
}

function menuSubHide(identifier)
{
	$(identifier).style.display="none";
}






/**
 *	Functie om alle checkboxes op een pagina in één keer aan of uit te vinken.
 *	Geef als parameter het checkbox object mee waarop geklikt moet worden om
 *	alles aan/uit te vinken.
 *	@author	Wouter Daan
 */
function checkAll(checkbox, assessmentID)
{
	var el = checkbox.form.elements, i = el.length;

	while (i--)
	{
		if (el[i].type == 'checkbox' && el[i].name != checkbox.name && el[i].className == 'checkbox assessment'+assessmentID)
			el[i].checked = checkbox.checked;
	}
}

function ajaxUpdater(params){
	var ajax = new Ajax.Updater(
								params.divId,
								params.page,
								{
									method: params.method,
									parameters: params.parameters,
									postBody: params.postBody,
									onComplete: params.onComplete,
									onSuccess: params.onSuccess,
									evalScripts: params.evalScripts
								}
								);
}
