function ValidateForm1309872439(){ var flag = true; var message = 'U moet alle verplichte velden invullen!'; if(http.readyState == 4) { var showcheck = http.responseText; if (showcheck=='0') { message = 'Foutieve verificatie code!'; flag = false; }; if (document.ContactForm1309872439.field2062.value.length==0){ flag = false; }; if (document.ContactForm1309872439.field2063.value.length==0){ flag = false; }; if (document.ContactForm1309872439.field2065.value.length==0){ flag = false; }; if (flag == false) { alert(message); } else { document.ContactForm1309872439.submit(); }; }; };function createRequestObject(){ try { xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {alert('Sorry, but your browser doesn\'t support XMLHttpRequest.'); }; return xmlhttp; }; var http = createRequestObject(); function CheckForm1309872439() { var captchacheck = document.ContactForm1309872439.captchacode.value; var url = '/form_gen/captcha-process.php?captcha=' + captchacheck; http.open('GET', url, true); http.onreadystatechange = ValidateForm1309872439; http.send(null); };