		
		function bevestig(url){
			var name = confirm("Bevestig");
			
			if(name ==true){
				window.location = url;
			}
			else{}
		}
		
		
		function openPopup(url) {
	 	   		var tekst = "width=600,height=600,toolbar=0,location=0,directories=0"
	       		+ ",status=0,menuBar=0,scrollBars=1,resizable=1";
	  	  		var winPop = window.open(url,"",tekst);
	 	 	}
		
		function toggleView(blok){
			var bool = 0;
			if(document.getElementById("check" + blok).checked == true){
				bool = 1;
			}
			init();
						
			var visualisatie = 'none'
			if (bool == 0){
				visualisatie = 'none';
				document.getElementById("blok" + blok).innerHTML = "";
			}
			else{
				visualisatie = 'block';
				document.getElementById("check" + blok).checked = true;
				document.getElementById("blok" + blok).innerHTML = "<input type='file' id='foto' name='foto' />";
			}
			
			
			document.getElementById("blok" + blok).style.display = visualisatie;
		}
		
		//swap cursor
		
		function swapCursor(id, curs) {
      		document.getElementById(id).style.cursor = curs;
		}
		
