function toggleRemark(object,id)
{
	var visibility = toggleDisplay("remark_edit" + id); 
	
	if (visibility)
	{
		object.src = "/images/save.png";
		object.alt = "Opslaan";
		object.title = "Opslaan";
	}
	else
	{
		document.getElementById("remark" + id).innerHTML = document.getElementById("remark_edit" + id).value; 

		object.src = "/images/edit.png";
		object.alt = "Wijzigen";
		object.title = "Wijzigen";
	}
}

function checkConfirmation(minimumHours)
{
	var counter = zero = total = 0, object, bool = true; 
	
	while (object = document.getElementById("hours" + ++counter)) 
	{ 
		!(document.getElementById("admin" + counter).value/1) && !object.selectedIndex && zero++; 

		total += object.value/1;
	} 

	if (zero > 0) 
	{ 
		alert("Niet overal uren opgegeven"); 

		bool = false; 
	} 
	else
	{
		if (total < minimumHours)
		{
			alert("Het totaal aantal uren telt niet op tot " + minimumHours);

			bool = false;
		}
		
	}

	return bool;
}