I am working on an e-mail form to collect new addresses and unsubscribe people from a Spanish newsletter. The form has English options too. When people unsubscribe we would like to know why.

When the user asks to be removed I have three checkboxes below it that ask the user to please tell us why.

I can't seem to get the requirement of the check boxes set on the selection of the specific radio button. It always wants to require the checkboxes. Also when I select the correct radio button it doesn't require the checkboxes.

I have tried a few different methods and nothing seems to work.

checks radio buttons

VLOption = -1
for (i=0; i<latina.ReceiveVL.length; i++) {
if (latina.ReceiveVL[i].checked) {
VLOption = i
}
}
if (VLOption == -1) {
alert("Please let us know whether you want to subscribe, unsubscribe or change your address.")
return false;
}

Attempts to check checkboxes on selection of radio button.

for (var I = 0; I < latina.elements.length; I++) {
if (latina.ReceiveVL[VLOption].value == "No" && (latina.elements[I].name.substring(0, 2) == "No_") && (latina.elements[I].checked)) {
subselected = true;
}
}
if (!subselected) {
alert("Please let us know why you wish to unsubscribe.");
return false;
}

Here is the page where the script is posted http://204.71.140.142./ll/visionlatina/emailform.htm.

Thanks for your help!