
function a1(type){var a4=null;
if (window.self.document.createElementNS)a4=window.self.document.createElementNS("http://www.w3.org/1999/xhtml",type);
else a4=window.self.document.createElement(type);
return a4;
};
function $(af){return document.getElementById(af);
};
function ah(div){var a4=a1("div");
div.appendChild(a4);
return a4;
}
function ak(div,al){var a4=document.createTextNode(al);
div.appendChild(a4);
div.appendChild(a1("br"));
return a4;
}
function an(div){while(div.firstChild) div.removeChild(div.firstChild);
}
function ar(div,al){an(div);
ak(div,al);
}
function as(at,au,av){at.onclick=function(){au[av]()};
}
var a36=function(a12){a36.prototype.a14.call(this,a12);
};
a36.prototype.a17={};
a36.prototype.a14=function(a12){this.a37=undefined;
if (window.XMLHttpRequest) {a37=new XMLHttpRequest();
}
else if (window.ActiveXObject) {try {a37=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (a3d) {try {a37=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (a3e) {}
}
}
a37.onreadystatechange=function () {if (a37.readyState ==4) {if (a37.status ==200) {try{eval(a37.responseText.replace(/(\r)?\n/g,"\\u000A"));
a12.au.a3o.call(a12.au,{keys:keys,values:values}
);
}
catch(a3r){}
}
else {a12.au.a3o.call(a12.au,{a3s:this.statusText}
);
}
}
}
a37.open("POST",a12.a3v,true);
a37.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
a37.send(a12.a42);
};
var a43=function(a12){a43.prototype.a14.call(this,a12);
};
a43.prototype.a17={};
a43.prototype.a14=function (a12) {this.a12=a12;
this.a44=$(this.a12.a44);
this.a45={};
this.a46({at:this.a44}
);
};
a43.prototype.a46=function(a12){if(!a12.at.childNodes) return;
for(var a29=0;
a29<a12.at.childNodes.length;
a29++){var a48=a12.at.childNodes[a29];
if(a48.nodeName =="SELECT"){this.a45[a48.name]=a48;
}
else if(a48.nodeName =="INPUT"){if(a48.type =="submit"){as(a48,this,"a4c");
}
else if(a48.type =="radio"){this.a45[a48.name+"_"+a48.value.replace(/\ /g,"_")]=a48;
}
else{this.a45[a48.name]=a48;
}
}
else if(a48.nodeName =="TEXTAREA"){this.a45[a48.name]=a48;
}
if(a48.childNodes) this.a46({at:a48}
);
}
};
a43.prototype.a4c=function(a12){var a4d=1;
if(this.a12.a4e){var a4f=["De volgende velden moeten nog worden ingevuld:"];
for(var a4g in this.a12.a4e){if(this.a45[a4g].value ==""){a4f[a4d]="- " + a4g;
a4d++;
}
}
}
if(a4d==1) {this.a4i();
this.a4j();
}
else{if(! this.a4k) {this.a4k=ah(this.a44);
}
an(this.a4k);
this.a4k.appendChild(a1("br"));
for(var a29=0;
a29<a4d;
a29++){ak(this.a4k,a4f[a29]);
}
}
};
a43.prototype.a4j=function(a12){var a4l="m=";
for(var a4g in this.a45){var a4m=this.a45[a4g];
if(a4m.type=="radio"){if(a4m.checked) a4l +=a4g + ":checked;";
}
else if(a4m.nodeName =="SELECT"){for(var a29=0;
a29<a4m.childNodes.length;
a29++){var a48=a4m.childNodes[a29];
if(a48.selected){a4l +=a4g + ":" + a48.text + ";";
}
}
}
else a4l +=a4g + ":" + a4m.value + ";";
}
new a36({au: this,a3v: "/index.mlf",a42: a4l.replace(/\\/g,'\\\\').replace(/"/g,'\\\"').replace(/'/g,"\\\\\\'").replace(/%/g,"%25").replace(/&/g,"%26").replace(/\+/g,"%2B")+"q;";}
);
};
a43.prototype.a4i=function (a12){an(this.a44);
if(this.a12.a4i){ak(this.a44,this.a12.a4i);
}
else{ak(this.a44,"sending data: ");
for(var a4g in this.a45){var a4m=this.a45[a4g];
if(a4m.type=="radio"){if(a4m.checked) ak(this.a44,a4g + "=checked");
}
else if(a4m.nodeName =="SELECT"){for(var a29=0;
a29<a4m.childNodes.length;
a29++){var a48=a4m.childNodes[a29];
if(a48.selected){ak(this.a44,a4g + "=" + a48.text);
}
}
}
else ak(this.a44,a4g + "=" + a4m.value);
}
}
};
a43.prototype.a3o=function (a12){an(this.a44);
if(a12.values[a12.keys.length-1]=="send ok!"){if(this.a12.a4q){ak(this.a44,this.a12.a4q);
}
else{ak(this.a44,"recieved Post OK: ");
for(var a29=0;
a29<a12.keys.length;
a29++) ak(this.a44,a12.keys[a29] + "=" + a12.values[a29]);
}
}
else{if(this.a12.a4r){ak(this.a44,this.a12.a4r);
}
else{ak(this.a44,"recieved Post FAILURE.");
if(a12.a3s) ak(this.a44,a12.a3s);
}
}
};

var application=function(){new a43({a44:"mailform",a4e:{},a4i: "Een ogenblik alstublieft,uw formulier wordt opgestuurd.",a4q: "Het formulier is verstuurd. Bedankt voor uw interesse. Wij nemen spoedig contact met u op.",a4r: "Helaas is er iets verkeerd gegaan. Zou u het alstublieft later nog een willen proberen?"}
);
};
window.onload=function(){setTimeout("application()",300);
};




