function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.display = document.layers ? (iState ? "block" : "none") :
   (iState ? "block" : "none");
}




<!--
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setContent() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentElement = document.getElementById('wrapper');
					var contentHeight = contentElement.offsetHeight;
					if (windowHeight - contentHeight > 0) {
						contentElement.style.position = 'relative';
						contentElement.style.top = ((windowHeight / 2) - (contentHeight / 2)) + 'px';
					}
					else {
						contentElement.style.position = 'static';
					}
				}
			}
		}
		window.onload = function() {
			setContent();
		}
		window.onresize = function() {
			setContent();
		}
		//-->


function Swap(name,src) {
    if (document.images)
        document.images[name].src = src;
}


startList1 = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav1");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}



function setUpLayers()
{
if(document.layers)
 for(document.all=document.layers,x=0;x<document.all.length;x++)
  document.all[x].style=document.all[x]
if(!document.all)
 if(document.getElementsByTagName)
  document.all=document.getElementsByTagName("div")
}

// functie die alle lagen die in de var LayerIndex staan, uit te zetten en
// de laag die als parameter is meegegeven aan te zetten
function changeLayer(layerid)	{
	// het voorbereidende werk
	var arLayer;
	var strLayer;
	strLayer = layerid;

	if (strLayer!=null)	{
		arLayer = strLayer.split(',');
	
		// zet alle lagen uit
		for(x=0;x<layerIndex.length;x++)	{
			document.all[layerIndex[x]].style.visibility='hidden';
		}
		// zet de juiste lagen aan
		for (var i=0; i < arLayer.length; i++) {
			if(document.all[arLayer[i]])	{
				document.all[arLayer[i]].style.visibility='visible';
			}
		}
	}
 }
 
 function openWindow2(file){
	//alert(file);
	var new_window = window.open(file,'','scrollbars=no,toolbar=no,directories=no,location=no,resizable=no,menubar=no,status=no,width=460,height=380,top=300,left=400,focus');
	new_window.focus();
}
// variabele voor popup window
 var popupWin;

 
 function openWindow(strUrl) {
if (popupWin==null || popupWin.closed) 
   popupWin=window.open(strUrl,'','scrollbars=no,toolbar=no,directories=no,location=no,resizable=yes,menubar=no,status=no,width=465,height=480,width=450px,height=400px,left=300px,top=200px,focus');
  else 
   {popupWin.location.href=strUrl}
  popupWin.focus();
 }
 function openWindow3(strUrl) {
if (popupWin==null || popupWin.closed) 
   popupWin=window.open(strUrl,'','scrollbars=no,toolbar=no,directories=no,location=no,resizable=yes,menubar=no,status=no,width=760,height=380,top=50,left=50,focus');
  else 
   {popupWin.location.href=strUrl}
  popupWin.focus();
 }
 
  function openWindow4(strUrl) {
if (popupWin==null || popupWin.closed) 
   popupWin=window.open(strUrl,'','scrollbars=yes,toolbar=no,directories=no,location=no,resizable=yes,menubar=no,status=no,width=460,height=380,top=380,left=580,focus');
  else 
   {popupWin.location.href=strUrl}
  popupWin.focus();
 }
 
   function openWindow5(strUrl) {
if (popupWin==null || popupWin.closed) 
   popupWin=window.open(strUrl,'','scrollbars=yes,toolbar=no,directories=no,location=no,resizable=yes,menubar=no,status=no,width=500,height=380,top=380,left=580,focus');
  else 
   {popupWin.location.href=strUrl}
  popupWin.focus();
 }
 
    function openWindow6(strUrl) {
if (popupWin==null || popupWin.closed) 
   popupWin=window.open(strUrl,'','scrollbars=yes,toolbar=no,directories=no,location=no,resizable=yes,menubar=no,status=no,width=800,height=600,top=20,left=20,focus');
  else 
   {popupWin.location.href=strUrl}
  popupWin.focus();
 }
