	/*********************************************** 
	 copyright : (C) 2005 - DesignBox Teamwork       
	 Web: www.designbox.nl  Mail: info@designbox.nl  
	 change date : 19 - 06 - 2007                    
	 **********************************************/ 
	 
	function Form_Validate() { //v4.0
	  var i,p,q,nm,test,num,min,max,errors='',args=Form_Validate.arguments;
	  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=Find_Object(args[i]);
	    if (val) { nm=val.name; if ((val=val.value)!="") {
	      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
	        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
	      } else if (test!='R') { num = parseFloat(val);
	        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
	        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
	          min=test.substring(8,p); max=test.substring(p+1);
	          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
	    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
	  } if (errors) alert('The following error(s) occurred:\n'+errors);
	  document.Form_returnValue = (errors == '');
	}
	
/*=====================================================================================================================*/
	
	// Fudge factors for window decoration space.
	// In my tests these work well on all platforms & browsers.
	function Pop_Up(url, w, h) {
		w += 32;
		h += 96;
		 var win = window.open(url,
		  'popup', 
		  'width=' + w + ', height=' + h + ', ' +
		  'location=no, menubar=no, ' +
		  'status=no, toolbar=no, scrollbars=yes, resizable=yes');
		 win.resizeTo(w, h);
		 win.focus();
		}
	
/*=====================================================================================================================*/	
	
	// Deze funktie maakt het inputveld onclick leeg en vv
	var condText;
	function clearTextBoxOnCondition(textBox,conditionText){
    if(textBox.value == conditionText) {
      textBox.value="";
      condText=conditionText;
    }
	}
	
	function fillTextBoxOnCondition(textBox){
    if(textBox.value == "") {
      textBox.value=condText;
    }
	}
	
/*=====================================================================================================================*/	
	
	// Deze funktie is het jumpmenu
	function Spring_Menu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}
	
/*=====================================================================================================================*/
	
	// Deze funktie is voor image rollovers
	function Preload_Images() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=Preload_Images.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function Swap_Image_Restore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function Find_Object(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=Find_Object(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function Swap_Image() { //v3.0
	  var i,j=0,x,a=Swap_Image.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=Find_Object(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	
/*=====================================================================================================================*/	
	
	// Hier begint de functie voor de navigatie aan de linkerkant
	var aantalKnoppen = 10;
	
	knop1= new Array(4); 
	knop1[0]="images/nederlands/btn-overarianeinden.gif"; 
	knop1[1]="images/nederlands/btn-overarianeinden_f2.gif"; 
	knop1[2]=""; 
	knop1[3]="overai.php";
	
	knop2= new Array(4); 
	knop2[0]="images/nederlands/btn-winkelsensalons.gif"; 
	knop2[1]="images/nederlands/btn-winkelsensalons_f2.gif"; 
	knop2[2]=""; 
	knop2[3]="winkelsensalons.php";
	
	knop3= new Array(4); 
	knop3[0]="images/nederlands/btn-zoekwinkel.gif"; 
	knop3[1]="images/nederlands/btn-zoekwinkel_f2.gif"; 
	knop3[2]=""; 
	knop3[3]="winkels.php";
	
	knop4= new Array(4); 
	knop4[0]="images/nederlands/btn-registreren.gif"; 
	knop4[1]="images/nederlands/btn-registreren_f2.gif"; 
	knop4[2]=""; 
	knop4[3]="registreer.php";
	
	knop5= new Array(4); 
	knop5[0]="images/nederlands/btn-contact.gif"; 
	knop5[1]="images/nederlands/btn-contact_f2.gif"; 
	knop5[2]=""; 
	knop5[3]="contact.php";
	
	knop6= new Array(4); 
	knop6[0]="images/nederlands/btn-perspublicaties.gif"; 
	knop6[1]="images/nederlands/btn-perspublicaties_f2.gif"; 
	knop6[2]=""; 
	knop6[3]="perspublicaties.php";
	
	knop7= new Array(4); 
	knop7[0]="images/nederlands/btn-werkenmetariane.gif"; 
	knop7[1]="images/nederlands/btn-werkenmetariane_f2.gif"; 
	knop7[2]=""; 
	knop7[3]="werkenmetariane.php";
	
	knop8= new Array(4); 
	knop8[0]="images/nederlands/btn-logindepositairs.gif"; 
	knop8[1]="images/nederlands/btn-logindepositairs_f2.gif"; 
	knop8[2]=""; 
	knop8[3]="logindepo.php";
	
	knop9= new Array(4); 
	knop9[0]="images/nederlands/btn-loginpers.gif"; 
	knop9[1]="images/nederlands/btn-loginpers_f2.gif"; 
	knop9[2]=""; 
	knop9[3]="loginpers.php";
	
	knop10= new Array(4); 
	knop10[0]="images/nederlands/btn-juridischezaken.gif"; 
	knop10[1]="images/nederlands/btn-juridischezaken_f2.gif"; 
	knop10[2]=""; 
	knop10[3]="juridischezaken.php";
	
	function knopOver(Input) {
		if(document.images[Input].src!=location.href.substring(0,location.href.lastIndexOf("/")+1)+eval(Input+"[1]")) {
			document.images[Input].src=eval(Input+"[1]"); 
			document.images[Input].style.cursor = "pointer";
		}
	}
	
	function knopOut(Input) {
		if(document.images[Input].src!=location.href.substring(0,location.href.lastIndexOf("/")+1)+eval(Input+"[0]")) {
			document.images[Input].src=eval(Input+"[0]"); 
			document.images[Input].style.cursor = "default";
		}
	}
	
	function knopClick(Input) {
		for(var i=1;i<=aantalKnoppen;i++){ 
			document.images["knop"+i].src=eval("knop"+i+"[0]");
		}
		document.images[Input].src=eval(Input+"[1]"); 
		if(eval(Input+"[2]")!="") parent.location.href=eval(Input+"[2]");
		if(eval(Input+"[3]")!="") parent.location.href=eval(Input+"[3]"); 
		document.images[Input].style.cursor = "default";
	}
	
/*=====================================================================================================================*/

	function enable(){
		if (document.all || document.getElementByid){
		document.checkout.betaalmethode.disabled=false;
		document.checkout.cardnummer.disabled=false;
		document.checkout.cardnaam.disabled=false;
		document.checkout.expiredate.disabled=false;
		document.checkout.issue.disabled=false;
		}
	}

	function disable(){
		if (document.all || document.getElementByid){
		document.checkout.betaalmethode.disabled=true;
		document.checkout.cardnummer.disabled=true;
		document.checkout.cardnaam.disabled=true;
		document.checkout.expiredate.disabled=true;
		document.checkout.issue.disabled=true;
		}
	}

/*=====================================================================================================================*/	

	function YY_checkform() { //v4.66
		//copyright (c)1998,2002 Yaromat.com
		var args = YY_checkform.arguments; var myDot=true; var myV=''; var myErr='';var addErr=false;var myReq;
		for (var i=1; i<args.length;i=i+4){
		if (args[i+1].charAt(0)=='#'){myReq=true; args[i+1]=args[i+1].substring(1);}else{myReq=false}
		var myObj = Find_Object(args[i].replace(/\[\d+\]/ig,""));
		myV=myObj.value;
		if (myObj.type=='text'||myObj.type=='password'||myObj.type=='hidden'){
		if (myReq&&myObj.value.length==0){addErr=true}
		if ((myV.length>0)&&(args[i+2]==1)){ //fromto
		var myMa=args[i+1].split('_');if(isNaN(myV)||myV<myMa[0]/1||myV > myMa[1]/1){addErr=true}
		} else if ((myV.length>0)&&(args[i+2]==2)){
		var rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(myV))addErr=true;
		} else if ((myV.length>0)&&(args[i+2]==3)){ // date
		var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);
		if(myAt){
		var myD=(myAt[myMa[1]])?myAt[myMa[1]]:1; var myM=myAt[myMa[2]]-1; var myY=myAt[myMa[3]];
		var myDate=new Date(myY,myM,myD);
		if(myDate.getFullYear()!=myY||myDate.getDate()!=myD||myDate.getMonth()!=myM){addErr=true};
		}else{addErr=true}
		} else if ((myV.length>0)&&(args[i+2]==4)){ // time
		var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);if(!myAt){addErr=true}
		} else if (myV.length>0&&args[i+2]==5){ // check this 2
		var myObj1 = Find_Object(args[i+1].replace(/\[\d+\]/ig,""));
		if(myObj1.length)myObj1=myObj1[args[i+1].replace(/(.*\[)|(\].*)/ig,"")];
		if(!myObj1.checked){addErr=true}
		} else if (myV.length>0&&args[i+2]==6){ // the same
		var myObj1 = Find_Object(args[i+1]);
		if(myV!=myObj1.value){addErr=true}
		}
		} else
		if (!myObj.type&&myObj.length>0&&myObj[0].type=='radio'){
		var myTest = args[i].match(/(.*)\[(\d+)\].*/i);
		var myObj1=(myObj.length>1)?myObj[myTest[2]]:myObj;
		if (args[i+2]==1&&myObj1&&myObj1.checked&&Find_Object(args[i+1]).value.length/1==0){addErr=true}
		if (args[i+2]==2){
		var myDot=false;
		for(var j=0;j<myObj.length;j++){myDot=myDot||myObj[j].checked}
		if(!myDot){myErr+='* ' +args[i+3]+'\n'}
		}
		} else if (myObj.type=='checkbox'){
		if(args[i+2]==1&&myObj.checked==false){addErr=true}
		if(args[i+2]==2&&myObj.checked&&Find_Object(args[i+1]).value.length/1==0){addErr=true}
		} else if (myObj.type=='select-one'||myObj.type=='select-multiple'){
		if(args[i+2]==1&&myObj.selectedIndex/1==0){addErr=true}
		}else if (myObj.type=='textarea'){
		if(myV.length<args[i+1]){addErr=true}
		}
		if (addErr){myErr+='* '+args[i+3]+'\n'; addErr=false}
		}
		if (myErr!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+myErr)}
		document.Form_returnValue = (myErr=='');
	}
	
/*=====================================================================================================================*/

	function Open_BrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
	
/*=====================================================================================================================*/	

	function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
		newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
		newWindow.document.open();
		newWindow.document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
		if (imageType == "swf"){
			newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
			newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
			newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
			newWindow.document.write('</embed></object>');	}else{
			newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 
		}
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		newWindow.focus();
	}
	
/*=====================================================================================================================*/		

	var ActieveNr = 0;

	function ClickVraag(nr) {
		if (nr != ActieveNr) {
			if (ActieveNr != 0) {
				document.getElementById('antwoord' + ActieveNr).style.display = 'none';
				document.getElementById('vraag' + ActieveNr).style.display = 'block';
			}
			document.getElementById('antwoord' + nr).style.display = 'block';
			document.getElementById('vraag' + nr).style.display = 'none';
			ActieveNr = nr;
		} else {
			document.getElementById('antwoord' + nr).style.display = 'none';
			document.getElementById('vraag' + nr).style.display = 'block';
			ActieveNr = 0;
		}
	}
	
/*=====================================================================================================================*/

	function over(obj) {
		obj.style.backgroundColor='#FBFBFB';
		obj.style.cursor='hand';
	}

	function out(obj) {
		obj.style.backgroundColor='#ffffff';
		obj.style.cursor='default';
	}

	function showMe(page) {
		window.open(page,'Inden','toolbar=no,location=no,directories=no,status=no,menubar=no,scrolling=yes,scrollbars=yes,resizable=yes');
	}	
	
/*=====================================================================================================================*/

	var checkobj
	
	function agreesubmit(el){
		checkobj=el
		if (document.all||document.getElementById){
			for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
			var tempobj=checkobj.form.elements[i]
			if(tempobj.type.toLowerCase()=="submit")
			tempobj.disabled=!checkobj.checked
			}
		}
	}	
	
/*=====================================================================================================================*/	