function ValidateForm83(){ var flag = true; var message = 'Please fill in all mandatory fields !'; if(http.readyState == 4) { var showcheck = http.responseText; if (showcheck=='0') { message = 'Incorrect verification code!'; flag = false; }; if (document.ContactForm83.field598.value.length==0){ flag = false; }; if (document.ContactForm83.field599.value.length==0){ flag = false; }; if (flag == false) { alert(message); } else { document.ContactForm83.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 CheckForm83() { var captchacheck = document.ContactForm83.captchacode.value; var url = '/datepicker2/captcha-process.php?captcha=' + captchacheck; http.open('GET', url, true); http.onreadystatechange = ValidateForm83; http.send(null); }; /************************************************************************************************************ JS Calendar ************************************************************************************************************/ /* Update log: (C) www.dhtmlgoodies.com, September 2005 Version 1.2, November 8th - 2005 - Added