function Menu(Menucel,OverAction){
	//var menuBlok = new getObj('menuBlok');
	
		if (OverAction==1){
			document.getElementById(Menucel).className="MenuAchterOver";
		}else{
			document.getElementById(Menucel).className="MenuAchter";
		}
		
	}
	
function wachtscherm(divvenster,visibility){
	var divvensterNew = new getObj(divvenster);
	divvensterNew.style.visibility = visibility;
	}

function openWin(theURL,winName,features) {
  	window.open(theURL,winName,"toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,"+features);
}

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function BevestigDelete(Naam){
		var name = confirm("Weet u zeker dat u " + '\n' + '\n' + Naam + '\n' + '\n' + " wilt verijderen?")
		if (name == true){
			 return true;
		}else{
			return false;
		}
	}
	
	
	
function KarakterControle(veld) {
		
		var karakters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
		var ok = true;
		var temp;
		for (var i=0; i<veld.value.length; i++) {
			temp = "" + veld.value.substring(i, i+1);
			if (karakters.indexOf(temp) == "-1") ok = false;
		}
		return ok;
	}
	
	
	
	function Controle(f,VeldNaam){
		if (f[VeldNaam].value.length > 0){
			if (KarakterControle(f[VeldNaam]) == false){
				alert("U kan enkel de volgende karakters gebruiken. \n A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \n a b c d e f g h i j k l m n o p q r s t u v w x y z \n 0 1 2 3 4 5 6 7 8 9 \n en spatie");
				return false
			}
		}
		
		return true
	}

