<snip code>
else if (document.RFO.arow.value != 1) {
for(i=document.RFO.arow.value; i > 1 ; i--){
if (''==document.RFO.elements['acc_tot_' + i].value){
alert("Need Amount For Each Account Used");
document.RFO.elements['acc_tot_' + i].focus();
}
else {
setCookie();
document.RFO.submit();
}
}
}
<snip code>
My brain is mush...one problem fixed...which brings up another.
I they only use two accounts,
if acc_tot_2 is null they get an alert message then the focus goes to it.
However, if they use more than 2 accounts,
if acc_tot_3 is null they get an alert message...but because acc_tot_2 was
not null the form is submited.
How do I rewrite this to handle more than two acc_tot_? fields?