function checkMandatory(){ var flag = true; var message = 'Please fill in all mandatory fields !'; if (document.checkFRM.field6.value.length==0){ flag = false; }; if (document.checkFRM.field8.value.length==0){ flag = false; }; if (document.checkFRM.field9.value.length==0){ flag = false; }; if (document.checkFRM.field10.value.length==0){ flag = false; }; if (document.checkFRM.field14.value.length==0){ flag = false; }; if (document.checkFRM.field15.value.length==0){ flag = false; }; if (document.checkFRM.field16.value.length==0){ flag = false; }; var radioBtnChecked = false; for (j=0; j