function ValidateForm31(){ var flag = true; var message = 'Please fill in all mandatory fields !'; var showcheck = -1;var showcheck = http.responseText; if (showcheck=='0') { message = 'Incorrect verification code!'; flag = false; } if (document.ContactForm31.field371.value.length==0){ flag = false; } if (document.ContactForm31.field372.value.length==0){ flag = false; } if (document.ContactForm31.field373.value.length==0){ flag = false; } if (document.ContactForm31.field374.value.length==0){ flag = false; } if (document.ContactForm31.field376.value.length==0){ flag = false; } if (document.ContactForm31.field377.value.length==0){ flag = false; } var radioBtnChecked = false; for (j=0; j