var show;
	function sendRequest(toon, form, pagina) {
		show = toon;
		new Ajax.Request(pagina, 
			{ 
				method: 'post', 
				postBody: $(form).serialize(),
				onComplete: showResponse 
			});
		$(show).innerHTML = "<div align='center'><img src='images/ajax-loader.gif' /></div>";			
	}

	function showResponse(req){
		$(show).update(req.responseText);
	}
	
	function loadContent(toon, pagina) {
		show = toon;
		new Ajax.Request(pagina, 
			{ 
				method: 'post', 
				postBody: '',
				onComplete: showResponse 
			});
		$(show).update("<div align='center'><img src='images/ajax-loader.gif' /></div>");			
	}

	function confirmrequest(vraag, div, form, page) {
	var answer = confirm(vraag);
		if (answer){
			sendRequest(div, form, page);
		}
	}
	
	function hideDiv(div) { 
		if (document.getElementById(div)) { 
		document.getElementById(div).style.display = 'none'; 
		} 
	} 
	function showDiv(div) { 
		if (document.getElementById(div)) { 
		document.getElementById(div).style.display = 'block'; 
		} 
	} 
