function checkUncheckAll($theElement,$checked) {
	var $theForm = $theElement.form;
	for ($i=0;$i<$theForm.length;$i++){
		with($theForm.elements[$i]){
			if(type == 'checkbox' && disabled == false){
				checked = $checked;
			}
		}
	}
	return;
}	

function confirm(msg){
	$returnValue = window.confirm(msg);
	/*return $returnValue;*/
}

function checkForSelectedChkbox($theForm,$regexpChkBox){
	for ($i=0;$i<$theForm.length;$i++){
		with($theForm.elements[$i]){
			if(type == 'checkbox' && $regexpChkBox.test(name)){
				if(checked){
					return true; //selectie gevonden!
				}
			}
		}
	}
	
	return false; //geen selectie gevonden
}

function submitAction($form,$submitaction)
{
    with($form){
        submitaction.value = $submitaction;
        submit();
    }
}
