﻿function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	for(var i=0; i<document.images.length; i++)
   	{
		var img = document.images[i]
	  	var imgName = img.src.toUpperCase()
	  	if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	    {
			var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 	var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 	var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 	var imgStyle = "display:inline-block;" + img.style.cssText 
		 	if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 	if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 	if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
			var strNewHTML = "<img src='images/spacer.gif' border='0' " + imgID + imgClass + imgTitle
			strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
			img.outerHTML = strNewHTML
		 	i = i-1
		}
	}
}
//window.attachEvent("onload", correctPNG);

function containsDOM (container, containee) {
	var isParent = false;
	do {
		if ((isParent = container == containee))
		break;
		containee = containee.parentNode;
	}
	while (containee != null);
	return isParent;
}

function checkMouseEnter (element, evt) {
	if (element.contains && evt.fromElement) {
		return !element.contains(evt.fromElement);
	}
	else if (evt.relatedTarget) {
		return !containsDOM(element, evt.relatedTarget);
	}
}

function checkMouseLeave (element, evt) {
	if (element.contains && evt.toElement) {
		return !element.contains(evt.toElement);
	}
	else if (evt.relatedTarget) {
		return !containsDOM(element, evt.relatedTarget);
	}
}

function MM_findObj(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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function changeStyle (what , how) {
  	what.className = how;
}

function changeStyle2 (what , how) {
  	document.getElementById(what).className = how;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function HideAllLayers() {
//LET OP! HideSubLayers() altijd aanpassen naar de juiste DP benamingen staan, deze word samengesteld vanuit de code.
//vb: HideSubLayers_357(); ZET DIT TUSSEN TRY CATCH STATEMENTS
//Deze neemt ook de SUBSUB layers mee.
//OOK alle overige HOOFDLAYERS hierinzetten

	// Poppers Holding

	MM_showHideLayers('menu_aboutpoppers','','hide'); 
	MM_showHideLayers('menu_news','','hide'); 
	MM_showHideLayers('menu_products','','hide'); 
	MM_showHideLayers('menu_subsidiarycompanies','','hide'); 
	MM_showHideLayers('menu_careers','','hide'); 
	MM_showHideLayers('menu_contact','','hide'); 

	// Senco DE

	MM_showHideLayers('menu_uberpopperssenco','','hide'); 
	MM_showHideLayers('menu_news','','hide'); 
	MM_showHideLayers('menu_produkte','','hide'); 
	MM_showHideLayers('menu_bezugsquellen','','hide'); 
	MM_showHideLayers('menu_kontaktzupoppers','','hide'); 
	MM_showHideLayers('menu_kontakt','','hide'); 

	// Senco NL
	
	MM_showHideLayers('menu_overpopperssenco','','hide'); 
	MM_showHideLayers('menu_nieuws','','hide'); 
	MM_showHideLayers('menu_producten','','hide'); 
	MM_showHideLayers('menu_dealers','','hide'); 
	MM_showHideLayers('menu_service','','hide'); 
	MM_showHideLayers('menu_inloggen','','hide'); 
	MM_showHideLayers('menu_contact','','hide');

	// Tenchofast NL

	MM_showHideLayers('menu_technofast_over','','hide'); 
	MM_showHideLayers('menu_technofast_nieuws','','hide'); 
	MM_showHideLayers('menu_technofast_producten','','hide'); 
	MM_showHideLayers('menu_technofast_dealers','','hide'); 
	MM_showHideLayers('menu_technofast_service','','hide'); 
	MM_showHideLayers('menu_technofast_inloggen','','hide'); 
	MM_showHideLayers('menu_technofast_contact','','hide'); 

	MM_showHideLayers('menu_aboutpopperssenco','','hide'); 
	MM_showHideLayers('menu_wheretobuy','','hide'); 
	MM_showHideLayers('menu_customerarea','','hide');

	// Zimit UK

	MM_showHideLayers('menu_aboutpoppers_zimit','','hide'); 
	MM_showHideLayers('menu_news_zimit','','hide'); 
	MM_showHideLayers('menu_markets_zimit','','hide'); 
	MM_showHideLayers('menu_service_uk_zimit','','hide'); 
	MM_showHideLayers('menu_contact_uk_zimit','','hide'); 
	
	// Zimit NL

	MM_showHideLayers('menu_overpoppers_zimit','','hide'); 
	MM_showHideLayers('menu_nieuws_zimit','','hide'); 
	MM_showHideLayers('menu_markten_zimit','','hide'); 
	MM_showHideLayers('menu_service_nl_zimit','','hide'); 
	MM_showHideLayers('menu_contact_nl_zimit','','hide'); 

	// Verpa Senco

	MM_showHideLayers('menu_aboutverpasenco','','hide'); 
	MM_showHideLayers('menu_products','','hide'); 
	MM_showHideLayers('menu_distributors','','hide'); 
	MM_showHideLayers('menu_news','','hide'); 
	MM_showHideLayers('menu_jobs','','hide'); 
	MM_showHideLayers('menu_contact','','hide'); 
	
	// Wallebroek

	MM_showHideLayers('menu_over_wallebroek','','hide'); 
	MM_showHideLayers('menu_nieuws','','hide'); 
	MM_showHideLayers('menu_producten','','hide'); 
	MM_showHideLayers('menu_dealers','','hide'); 
	MM_showHideLayers('menu_contact','','hide'); 

	//holding EN
	try {
		HideSubLayers_7();
	}
	catch(err) {}
	
	try {
		HideSubLayers_8();
	}
	catch(err) {}
	
	try {
		HideSubLayers_9();
	}
	catch(err) {}

	try {
		HideSubLayers_10();
	}
	catch(err) {}
	
	try {
		HideSubLayers_11();
	}
	catch(err) {}
	
	try {
		HideSubLayers_12();
	}
	catch(err) {}
	
	try {
		HideSubLayers_13();
	}
	catch(err) {}
	
	
	//holding NL
	try {
		HideSubLayers_52();
	}
	catch(err) {}
	
	try {
		HideSubLayers_53();
	}
	catch(err) {}
	
	try {
		HideSubLayers_54();
	}
	catch(err) {}

	try {
		HideSubLayers_55();
	}
	catch(err) {}
	
	try {
		HideSubLayers_56();
	}
	catch(err) {}
	
	try {
		HideSubLayers_57();
	}
	catch(err) {}
	
	//Senco NL
	try {
		HideSubLayers_83();
	}
	catch(err) {}
	
	try {
		HideSubLayers_84();
	}
	catch(err) {}
	
	try {
		HideSubLayers_85();
	}
	catch(err) {}

	try {
		HideSubLayers_86();
	}
	catch(err) {}
	
	try {
		HideSubLayers_87();
	}
	catch(err) {}
	
	try {
		HideSubLayers_88();
	}
	catch(err) {}
	
	try {
		HideSubLayers_89();
	}
	catch(err) {}
	
	//Senco DE
	try {
		HideSubLayers_90();
	}
	catch(err) {}
	
	try {
		HideSubLayers_91();
	}
	catch(err) {}
	
	try {
		HideSubLayers_92();
	}
	catch(err) {}

	try {
		HideSubLayers_93();
	}
	catch(err) {}
	
	try {
		HideSubLayers_94();
	}
	catch(err) {}
	
	try {
		HideSubLayers_95();
	}
	catch(err) {}
	
	try {
		HideSubLayers_96();
	}
	catch(err) {}
	
	//Senco CO UK
	try {
		HideSubLayers_119();
	}
	catch(err) {}
	
	try {
		HideSubLayers_120();
	}
	catch(err) {}
	
	try {
		HideSubLayers_121();
	}
	catch(err) {}

	try {
		HideSubLayers_122();
	}
	catch(err) {}
	
	try {
		HideSubLayers_123();
	}
	catch(err) {}
	
	try {
		HideSubLayers_124();
	}
	catch(err) {}
	
	try {
		HideSubLayers_125();
	}
	catch(err) {}
	
	try {
		HideSubLayers_126();
	}
	catch(err) {}
	
	//Senco IE
	try {
		HideSubLayers_128();
	}
	catch(err) {}
	
	try {
		HideSubLayers_129();
	}
	catch(err) {}
	
	try {
		HideSubLayers_130();
	}
	catch(err) {}

	try {
		HideSubLayers_131();
	}
	catch(err) {}
	
	try {
		HideSubLayers_132();
	}
	catch(err) {}
	
	try {
		HideSubLayers_133();
	}
	catch(err) {}
	
	try {
		HideSubLayers_134();
	}
	catch(err) {}
	
	try {
		HideSubLayers_135();
	}
	catch(err) {}
	
	try {
		HideSubLayers_452();
	}
	catch(err) {}
	
	try {
		HideSubLayers_453();
	}
	catch(err) {}
	
	try {
		HideSubLayers_454();
	}
	catch(err) {}
	
	try {
		HideSubLayers_455();
	}
	catch(err) {}
	
	try {
		HideSubLayers_456();
	}
	catch(err) {}
	
	try {
		HideSubLayers_457();
	}
	catch(err) {}
	
	try {
		HideSubLayers_458();
	}
	catch(err) {}

	try {
		HideSubLayers_463();
	}
	catch(err) {}

	try {
		HideSubLayers_464();
	}
	catch(err) {}

	try {
		HideSubLayers_465();
	}
	catch(err) {}
	
	try {
		HideSubLayers_466();
	}
	catch(err) {}

	try {
		HideSubLayers_467();
	}
	catch(err) {}
	
	try {
		HideSubLayers_468();
	}
	catch(err) {}
	
	try {
		HideSubLayers_469();
	}
	catch(err) {}

	try {
		HideSubLayers_477();
	}
	catch(err) {}
	
	try {
		HideSubLayers_478();
	}
	catch(err) {}
	
	try {
		HideSubLayers_488();
	}
	catch(err) {}
	
	try {
		HideSubLayers_489();
	}
	catch(err) {}
	
	try {
		HideSubLayers_490();
	}
	catch(err) {}

	try {
		HideSubLayers_497();
	}
	catch(err) {}
	
	try {
		HideSubLayers_498();
	}
	catch(err) {}
	
	try {
		HideSubLayers_499();
	}
	catch(err) {}
	
	try {
		HideSubLayers_500();
	}
	catch(err) {}
	
	try {
		HideSubLayers_501();
	}
	catch(err) {}
	
	// Zimit (NL)
	try {
		HideSubLayers_513();
	}
	catch(err) {}
	
	try {
		HideSubLayers_514();
	}
	catch(err) {}
	
	try {
		HideSubLayers_515();
	}
	catch(err) {}
	
	try {
		HideSubLayers_516();
	}
	catch(err) {}
	
	try {
		HideSubLayers_517();
	}
	catch(err) {}
	try {
		HideSubLayers_655();
	}
	catch(err) {}

	try {
		HideSubLayers_656();
	}
	catch(err) {}

	// Wallebroek
	
//	try {
//		HideSubLayers_852();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_853();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_854();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_855();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_856();
//	}
//	catch(err) {}
//	
//	// DE
//	
//	try {
//		HideSubLayers_1052();
//	}
//	catch(err) {}
//
//	try {
//		HideSubLayers_1051();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_1053();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_1050();
//	}
//	catch(err) {}
//
//	try {
//		HideSubLayers_1049();
//	}
//	catch(err) {}
//	
//	// FR
//	
//	try {
//		HideSubLayers_1058();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_1057();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_1059();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_1056();
//	}
//	catch(err) {}
//	
//	try {
//		HideSubLayers_1055();
//	}
//	catch(err) {}

}

function MM_preloadImages() { //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=MM_preloadImages.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 MM_swapImgRestore() { //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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function checkboxValidate()
{
	var maakkeuze = Validatemaakkeuze(form1);
	if (maakkeuze == false)
	{
		return false
	}
	else
	{
		return true
	}
}


function checkboxValidate_en()
{
	var maakkeuze = Validatemaakkeuze_en(form1);
	if (maakkeuze == false)
	{
		return false
	}
	else
	{
		return true
	}
}


function checkboxValidate_de()
{
	var maakkeuze = Validatemaakkeuze_de(form1);
	if (maakkeuze == false)
	{
		return false
	}
	else
	{
		return true
	}
}

function checkboxValidate_tr()
{
	var maakkeuze = Validatemaakkeuze_tr(form1);
	if (maakkeuze == false)
	{
		return false
	}
	else
	{
		return true
	}
}

function checkboxValidate_fr()
{
	var maakkeuze = Validatemaakkeuze_fr(form1);
	if (maakkeuze == false)
	{
		return false
	}
	else
	{
		return true
	}
}

function Validatemaakkeuze(theForm) 
{
	gemaaktekeuze = form1.hoe_gevonden[form1.hoe_gevonden.selectedIndex].value
	if (gemaaktekeuze == "0") {
		alert('Geef aan hoe u ons gevonden heeft.')
		return false
	} else {
		return true
	}
}


function Validatemaakkeuze_en(theForm) 
{
	gemaaktekeuze = form1.hoe_gevonden[form1.hoe_gevonden.selectedIndex].value
	if (gemaaktekeuze == "0") {
		alert('How did you find us?')
		return false
	} else {
		return true
	}
}


function Validatemaakkeuze_de(theForm) 
{
	gemaaktekeuze = form1.hoe_gevonden[form1.hoe_gevonden.selectedIndex].value
	if (gemaaktekeuze == "0") {
		alert('Wie haben Sie uns gefunden?')
		return false
	} else {
		return true
	}
}

function Validatemaakkeuze_tr(theForm) 
{
	gemaaktekeuze = form1.hoe_gevonden[form1.hoe_gevonden.selectedIndex].value
	if (gemaaktekeuze == "0") {
		alert('Bizi nasıl buldunuz?')
		return false
	} else {
		return true
	}
}

function Validatemaakkeuze_fr(theForm) 
{
	gemaaktekeuze = form1.hoe_gevonden[form1.hoe_gevonden.selectedIndex].value
	if (gemaaktekeuze == "0") {
		alert('Comment vous nous avez trouve?')
		return false
	} else {
		return true
	}
}


function MM_validateForm() { //v4.0
//LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
var aantalslice
aantalslice = 0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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.slice(aantalslice,100)+' moet een geldig emailadres bevatten.\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.slice(aantalslice,100)+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm.slice(aantalslice,100)+' is verplicht.\n'; }
  } if (errors) alert('De volgende velden zijn verplicht:\n'+errors);
  document.MM_returnValue = (errors == '');
}



function MM_validateForm_nl() { //v4.0
//LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
var aantalslice
aantalslice = 14
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_nl.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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.slice(aantalslice,100)+' moet een geldig emailadres bevatten.\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.slice(aantalslice,100)+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm.slice(aantalslice,100)+' is verplicht.\n'; }
  } if (errors) alert('De volgende velden zijn verplicht:\n'+errors);
  document.MM_returnValue = (errors == '');
}



function MM_validateForm_nl2() { //v4.0
//LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
var aantalslice
aantalslice = 5
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_nl2.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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.slice(aantalslice,100)+' moet een geldig emailadres bevatten.\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.slice(aantalslice,100)+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm.slice(aantalslice,100)+' is verplicht.\n'; }
  } if (errors) alert('De volgende velden zijn verplicht:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm_fr() { //v4.0
//LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
var aantalslice
aantalslice = 0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_fr.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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.slice(aantalslice,100)+' Doit être une adresse e-mail.\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.slice(aantalslice,100)+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm.slice(aantalslice,100)+' est exigé.\n'; }
  } if (errors) alert('Les erreur(s) suivantes sont arrivées:\n'+errors);
  document.MM_returnValue = (errors == '');
}


function MM_validateForm_Wallebroek() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_Wallebroek.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' moet een geldig emailadres bevatten.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' is verplicht.\n';
        }
    } if (errors) alert('De volgende velden zijn verplicht:\n' + errors);
    document.MM_returnValue = (errors == '');
}

function MM_validateForm_Wallebroek_DE() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_Wallebroek_DE.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' soll ein Emailadresse sein.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' ist ein Pflichtfeld.\n';
        }
    } if (errors) alert('Diese Felder sind Pflichtfelder:\n' + errors);
    document.MM_returnValue = (errors == '');
}

function MM_validateForm_Wallebroek_EN() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_Wallebroek_EN.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' must contain a valid email 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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    }
                }
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' is required.\n';
        }
    } if (errors) alert('The follow fields are required:\n' + errors);
    document.MM_returnValue = (errors == '');
}

function MM_validateForm_werkenbijpoppers() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_werkenbijpoppers.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' moet een geldig emailadres bevatten.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' is verplicht.\n';
        }
    } if (errors) alert('De volgende velden zijn verplicht:\n' + errors);
    document.MM_returnValue = (errors == '');
}


function MM_validateForm_en() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 14
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_en.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' must be an email 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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' is needed.\n';
        }
    } if (errors) alert('The following error(s) occurred:\n' + errors);
    document.MM_returnValue = (errors == '');
}

function MM_validateForm_verpa() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 0
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_verpa.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' must be an email 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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' is needed.\n';
        }
    } if (errors) alert('The following error(s) occurred:\n' + errors);
    document.MM_returnValue = (errors == '');
}



function MM_validateForm_en2() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_en2.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' must be an email 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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' is needed.\n';
        }
    } if (errors) alert('The following error(s) occurred:\n' + errors);
    document.MM_returnValue = (errors == '');
}




function MM_validateForm_de() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_de.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' soll ein Emailadresse sein.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' ist ein Pflichtfeld.\n';
        }
    } if (errors) alert('Diese Felder sind Pflichtfelder:\n' + errors);
    document.MM_returnValue = (errors == '');
}


function MM_validateForm_de2() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_de2.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' soll ein Emailadresse sein.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' ist ein Pflichtfeld.\n';
        }
    } if (errors) alert('Diese Felder sind Pflichtfelder:\n' + errors);
    document.MM_returnValue = (errors == '');
}



function MM_validateForm_tr() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 0
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_tr.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' bir eposta adresi olmalı.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' gereklidir.\n';
        }
    } if (errors) alert('The following error(s) occurred:\n' + errors);
    document.MM_returnValue = (errors == '');
}

function MM_validateForm_tr2() { //v4.0
    //LET OP! .slice(14,100) is toegevoegd om page$ te verwijderen uit de ERROR meldingen
    var aantalslice
    aantalslice = 5
    var i, p, q, nm, test, num, min, max, errors = '', args = MM_validateForm_tr2.arguments;
    for (i = 0; i < (args.length - 2); i += 3) {
        test = args[i + 2]; val = MM_findObj(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.slice(aantalslice, 100) + ' bir eposta adresi olmalı.\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.slice(aantalslice, 100) + ' must contain a number between ' + min + ' and ' + max + '.\n';
                    } 
                } 
            } else if (test.charAt(0) == 'R') errors += '- ' + nm.slice(aantalslice, 100) + ' gereklidir.\n';
        }
    } if (errors) alert('The following error(s) occurred:\n' + errors);
    document.MM_returnValue = (errors == '');
}






//ORGINEEL////////////////////////////
function MM_validateForm_org() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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+' moet een geldig emailadres bevatten.\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 verplicht.\n'; }
  } if (errors) alert('De volgende velden zijn verplicht:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm_en_org() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_en.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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 be an email 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 needed.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm_de_org() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_de.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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+' soll ein Emailadresse sein.\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 needed.\n'; }
  } if (errors) alert('Diese Felder sind Pflichtfelder:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm_tr_org() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm_tr.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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+', bir eposta adresi olmalı.\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+' gereklidir.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_validateForm_fr_org() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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+' moet een geldig emailadres bevatten.\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 verplicht.\n'; }
  } if (errors) alert('De volgende velden zijn verplicht:\n'+errors);
  document.MM_returnValue = (errors == '');
}

text_tabs = 3;
function show_text_tab(a)
{
	for(i=1;i<=text_tabs;i++)
	{
		document.getElementById('text_tab_'+i).style.display = 'none';
	}
	document.getElementById('text_tab_'+a).style.display = 'block';
}

