var cb = document.forms[0].$$SelectDoc;
// find the first checked document . . .
var selectcount = 0;
var docUNID = new Array();
for(i = 0; i < cb.length; i ++){
if (cb[i].checked){
docUNID[selectcount] = cb[i].value;
selectcount++;
}
}
if (docUNID[0] == null ){
alert('You did not select any documents, please correct and try again.');
} else {
if (docUNID != null ){
result=window.confirm('You are going to process the selected documents, click OK if you wish to proceed.');
if (result==true) {
document.forms[0].SelectedDocs.value = docUNID
document.forms[0].submit();
}
}
}