function ValidateForm1411058031(){ var flag = true; var message = 'U dient alle verplichte velden in te vullen!'; if(http.readyState == 4) { var showcheck = http.responseText; if (showcheck=='0') { message = 'Foutieve verificatie code!'; flag = false; }; if (document.ContactForm1411058031.field1305.value.length==0){ flag = false; }; if (document.ContactForm1411058031.field1306.value.length==0){ flag = false; }; if (document.ContactForm1411058031.field1311.value.length==0){ flag = false; }; if (flag == false) { alert(message); } else { document.ContactForm1411058031.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 CheckForm1411058031() { var captchacheck = document.ContactForm1411058031.captchacode.value; var url = '/form_gen/captcha-process.php?captcha=' + captchacheck; http.open('GET', url, true); http.onreadystatechange = ValidateForm1411058031; http.send(null); };