function guestbookcheck(el) {
	for (i=0;i<el.length;i++)
		if (el[i].value=='') {
			alert('U hebt niet alle velden ingevuld');
			if (el[i])
				el[i].focus();
			return false;
		}
	return true;
}

//popup voor presentatiebouwsteen
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var popupscherm=0;
function popupPresentatie(imgnodes,descriptions,displaytime,width, height) {
	if (popupscherm && ! popupscherm.closed)	popupscherm.close();
	var filename = "/popup_presentatie.php?do=x&imgnodes="+imgnodes+"&descs="+descriptions+"&displaytime="+displaytime;
	var fileid = "Pagelink";
	if (!width || width=="") width="700";
	if (!height || height=="") height="550";
	var scrollbars="no";
	var resizable="no";
	var menubar="no";
	var toolbar="no";
	var status="no";
	var location="no";
	popupscherm=0;
	var args = "height=" + height + ", width=" + width + ", scrollbars=" + scrollbars + ", resizable=" + resizable +  ", menubar=" + menubar + ", toolbar=" +toolbar + ", status=" + status + " ,location=" + location;
	popupscherm = open(filename, fileid, args);
	if (!InternetExplorer) 						popupscherm.focus();
}

var dh = function () {
	// dh : div-hoogte functie ================================================== //
	// deze functie bepaald de hoogte van de scrollbare div in de pagina ======== //
	// twee instellingen zijn mogelijk: de hoogte van de 'kop' ================== //
	// de id van de gewenste DIV ================================================ //

	// heading: dit is de hoogte van de kop van de pagina. Dit is een vaste waarde //
	//var heading = 349;
	var heading = 269;
	
	// de margin-top zoals die in de DIV komt te staan;
	var marginTop = 5;
	
	// de border zoals die in de DIV komt te staan;
	var divBorder = "0px black solid";
	
	// de breedte zoals dat in de div komt
//	var divWidth = 590;
		
	// de id van de scrollbare div =============================================== //
	var scrollDiv = 'scrolldiv';
	
	//============================================================================= //
	var scrollDivObj = document.getElementById(scrollDiv);

	if (scrollDivObj==null) 
		return false;

	if (!document.body)
		return false;
	
	var w = false;
	
	if (window.innerHeight) 
    	 w = window.innerHeight;
	else 
		if (document.body.clientHeight) 
	    	w = document.body.clientHeight;
		 else 
			return false;
	
	if (isNaN(w)) 
		return false;


	var divHeight = w - heading - marginTop ;

	divHeight < 1 ? divHeight = 1: divHeight = divHeight
	scrollDivObj.style.height = divHeight;
	scrollDivObj.style.marginTop = marginTop;
	scrollDivObj.style.border = divBorder;
//	scrollDivObj.style.width = divWidth;
	scrollDivObj.style.overflow = 'auto';
	scrollDivObj.style.overflowX ='hidden';
	scrollDivObj.style.visibility = 'visible';
}
