shivom,
To get the confirmation message:
<script type="text/javascript">
function validate(form){
var errors = [];
if ( !checkRadioArray(form.science_soundness) ) {
errors[errors.length] = "Please select grade for Scientific Soundness.";
}
if ( !checkRadioArray(form.relevance) ) {
errors[errors.length] = "Please select grade for Relevance.";
}
if (errors.length > 0) {
reportErrors(errors);
return false;
}
return confirm('Are you sure you wish to continue?');
}
This will return true/false if they click OK or Cancel.
Then, If I am not mistaken, you will have to assign an ID= to your submit / save buttons and use javascript to parse which button was clicked, and put that in the validate code. I am unsure of what assign.php does, as at a quick glance you are validating both Save & Submit buttons.