Why not? This Javascript:
if (document.health_prof_app.coursesCompleted[counter].checked) {
looks to me like it's accessing an array. If it's not (which I don't understand why it's not, but sure...), then use a foreach statement to loop through the array.
Also, what is the purpose of the Javascript? Just to check if the user ticked at least one of the boxes? If so, you could do that with some simple PHP code.
EDIT: Tried it out myself, and alas, you were right - the array breaks the Javascript. I'll attempt to mess with the Javascript, but the server-side PHP check would be simple, too! :p
EDIT2: Alright, got your Javascript working.. add the '[]' brackets to all of the checkboxes names and use this Javascript:
var total = 0;
var elements = document.health_prof_app.elements;
for (counter = 0; counter < elements.length; counter++) {
if (elements[counter].checked == true && elements[counter].name == "coursesCompleted[]") {
total += 1;
}
}
if (total < 1){
alert("Please fill in your completed courses.");
return(false);
}