function ShowDiv(actie,naam) {
	obj = document.getElementById(naam);

	if (actie == 'show')
		obj.style.display = 'block';
	else
		obj.style.display = 'none';
}

function CheckFormulier() {
	var themessage = "U bent vergeten onderstaande velden in te vullen:\n";

	if (document.contact.volledigenaam.value=="") {
	themessage = themessage + " -  Naam\n";
	}
	if (document.contact.email.value=="") {
	themessage = themessage + " -  Emailadres\n";
	}
	if (document.contact.opmerking.value=="") {
	themessage = themessage + " -  Vraag/Opmerking\n";
	}

	if (themessage == "U bent vergeten onderstaande velden in te vullen:\n") {
		window.document.contact.submit();
	}
	else {
		alert(themessage);
		return false;
	}
}

	//haal hoogte window binnen
	var isNav4, isNav6
	var isBrand = navigator.appName
	var navVer = parseInt(navigator.appVersion)
	
	//browser check
	var isNav4 = (isBrand == "Netscape" && navVer < 5) ? true : false
	var isNav6 = (isBrand == "Netscape" && navVer >= 5) ? true : false
	
	//give back the computed style
	function getStyle(obj,Attribute) {
		if (obj) {
			if (obj.currentStyle)
				var value = eval('obj.currentStyle.'+Attribute)
			else
				var value = eval('document.defaultView.getComputedStyle(obj, null).'+Attribute)
			return parseInt(value);
		}
	}
	
	function getInsideWindowHeight() {
		if (isNav4 || isNav6)
			return window.innerHeight
	 	else 
		    return document.body.clientHeight
	}

function setDivHeights() {
	var windowheight 	= getInsideWindowHeight();
	var site			= document.getElementById("site");
	var inhoud			= document.getElementById("inhoud")?document.getElementById("inhoud"):document.getElementById("inhoudlinks");
	var inhoudTop	 	= getStyle(inhoud,'top');
	var inhoudHeight	= inhoud.offsetHeight + inhoudTop;
	
	if (inhoudHeight < windowheight) {
		inhoud.style.height = windowheight - inhoudTop;
	} else {
		site.style.height = inhoud.offsetHeight + inhoudTop;
	}
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
//window.onresize = setDivHeights;