			function openPopup(url) {
	 	   		var tekst = "width=620,height=700,toolbar=0,location=0,directories=0"
	       		+ ",status=0,menuBar=0,scrollBars=1,resizable=1";
	  	  		var winPop = window.open(url,"",tekst);
	 	 	}
			
			function swapCursor(id, curs) {
      		document.getElementById(id).style.cursor = curs;
		}
		
		function init(){
			var y = document.getElementById('midden').offsetHeight;
			document.getElementById('menu_left').offsetHeight.value = y;
		}
		
	function matchHeight(){ 

     var maxHeight,divHeight,d; 

     maxHeight=0; 
     d = document.getElementById('midden');
	 
     if(d.offsetHeight){ 
        divHeight=d.offsetHeight; 
     } 
	 else if(d.style.pixelHeight){
       divHeight=d.style.pixelHeight; 
     } 
        
     maxHeight=Math.max(maxHeight,divHeight); 


     // assign maximum height value to all of container <div> elements 
	document.getElementById('menu_left').style.height = maxHeight;
	document.getElementById('menu_right').style.height = maxHeight;
	document.getElementById('content').style.height = maxHeight;
	document.getElementById('login').style.bottom = 0 + 'px';
	} 



		function bevestig(url, tekst){
			var name = confirm(tekst);
			
			if(name ==true){
				window.location = url;
			}
			else{}
		}
		
	function swapImage(naam, url) {
    	document[naam].src = url;
 	 }

	function changeCheckbox(target, base){
		if(document.getElementById(base).checked == true){
			document.getElementById(target).value = 1;
		}
		else{
			document.getElementById(target).value = 0;
		}
		//alert(document.getElementById(target).value);
	}
	
	function Emailcheck()
{
	allesok=true;
	if (allesok==true) {
	if ((document.mailform.company.value=="")
	 || (document.mailform.username.value=="")
	 || (document.mailform.addressL1.value=="")
   || (document.mailform.addressL2.value=="")
	 || (document.mailform.country.value=="")
	 || (document.mailform.tel.value=="")) {
		allesok=false;
		alert("Please do fill in all marked fields!");
		document.mailform.company.focus();
	}
	}
	if (allesok==true){
		document.mailform.submit();
	}
}

function EmailcheckNL()
{
	allesok=true;
	if (allesok==true) {
	if ((document.mailform.company.value=="")
	 || (document.mailform.username.value=="")
	 || (document.mailform.addressL1.value=="")
	 || (document.mailform.tel.value=="")) {
		allesok=false;
		alert("Gelieve alle verplichte velden in te vullen!");
		document.mailform.company.focus();
	}
	}
	if (allesok==true){
		document.mailform.submit();
	}
}