What about return from the function? should I end with:
? This is so inermittant (and I cannot get it to fail myself) that I probably won't be able to test these syntaxes. So, some advice from EE on best-practice would be appreciated and applied and, hopefully, will fix the problem. THX
var frm = document.register;
var found = false;
for (i = 0; i < frm.mbrType.length; i++)
if (frm.mbrType[i].checked == true) found = true;
if (found == false)
alert("Please select whether you are retired or still working for the SHP.");
<form name=register method=POST action="register.jsp">
<input type=radio name=mbrType value="PENSION">I retired from the ...
<input type=radio name=mbrType value="ACTIVE">I work for the ...
<button class=ohprsButton onclick="doSubmit();">Register Me</button>