			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 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);
	}
