function ValidateForm4(){ 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.ContactForm4.field43.value.length==0){ flag = false; } if (document.ContactForm4.field44.value.length==0){ flag = false; } if (document.ContactForm4.field45.value.length==0){ flag = false; } if (document.ContactForm4.field339.value.length==0){ flag = false; } if (document.ContactForm4.field299.value.length==0){ flag = false; } if (document.ContactForm4.field50.value.length==0){ flag = false; } var radioBtnChecked = false; for (j=0; j