function valbutton(thisform) {
// place any other field validations that you require here
// validate myradiobuttons



//alert("You selected button number " + myOption
//+ " which has a value of "
//+ thisform.myradiobutton[myOption].value);


myOption1 = -1;
for (i=thisform.group1.length-1; i > -1; i--) {
if (thisform.group1[i].checked) {
myOption1 = i; i = -1;
}
}
if (myOption1 == -1) {
alert("You must select an answer for Question 1");
return false;
}

myOption2 = -1;
for (i=thisform.group2.length-1; i > -1; i--) {
if (thisform.group2[i].checked) {
myOption2 = i; i = -1;
}
}
if (myOption2 == -1) {
alert("You must select an answer for Question 2");
return false;
}

myOption3 = -1;
for (i=thisform.group3.length-1; i > -1; i--) {
if (thisform.group3[i].checked) {
myOption3 = i; i = -1;
}
}
if (myOption3 == -1) {
alert("You must select an answer for Question 3");
return false;
}


myOption4 = -1;
for (i=thisform.group4.length-1; i > -1; i--) {
if (thisform.group4[i].checked) {
myOption4 = i; i = -1;
}
}
if (myOption4 == -1) {
alert("You must select an answer for Question 4");
return false;
}


myOption5 = -1;
for (i=thisform.group5.length-1; i > -1; i--) {
if (thisform.group5[i].checked) {
myOption5 = i; i = -1;
}
}
if (myOption5 == -1) {
alert("You must select an answer for Question 5");
return false;
}


myOption6 = -1;
for (i=thisform.group6.length-1; i > -1; i--) {
if (thisform.group6[i].checked) {
myOption6 = i; i = -1;
}
}
if (myOption6 == -1) {
alert("You must select an answer for Question 6");
return false;
}


myOption7 = -1;
for (i=thisform.group7.length-1; i > -1; i--) {
if (thisform.group7[i].checked) {
myOption7 = i; i = -1;
}
}
if (myOption7 == -1) {
alert("You must select an answer for Question 7");
return false;
}



myOption8 = -1;
for (i=thisform.group8.length-1; i > -1; i--) {
if (thisform.group8[i].checked) {
myOption8 = i; i = -1;
}
}
if (myOption8 == -1) {
alert("You must select an answer for Question 8");
return false;
}


myOption9 = -1;
for (i=thisform.group9.length-1; i > -1; i--) {
if (thisform.group9[i].checked) {
myOption9 = i; i = -1;
}
}
if (myOption9 == -1) {
alert("You must select an answer for Question 9");
return false;
}


myOption10 = -1;
for (i=thisform.group10.length-1; i > -1; i--) {
if (thisform.group10[i].checked) {
myOption10 = i; i = -1;
}
}
if (myOption10 == -1) {
alert("You must select an answer for Question 10");
return false;
}


myOption11 = -1;
for (i=thisform.group11.length-1; i > -1; i--) {
if (thisform.group11[i].checked) {
myOption11 = i; i = -1;
}
}
if (myOption11 == -1) {
alert("You must select an answer for Question 11");
return false;
}

myOption12 = -1;
for (i=thisform.group12.length-1; i > -1; i--) {
if (thisform.group12[i].checked) {
myOption12 = i; i = -1;
}
}
if (myOption12 == -1) {
alert("You must select an answer for Question 12");
return false;
}


myOption13 = -1;
for (i=thisform.group13.length-1; i > -1; i--) {
if (thisform.group13[i].checked) {
myOption13 = i; i = -1;
}
}
if (myOption13 == -1) {
alert("You must select an answer for Question 13");
return false;
}


myOption14 = -1;
for (i=thisform.group14.length-1; i > -1; i--) {
if (thisform.group14[i].checked) {
myOption14 = i; i = -1;
}
}
if (myOption14 == -1) {
alert("You must select an answer for Question 14");
return false;
}

myOption15 = -1;
for (i=thisform.group15.length-1; i > -1; i--) {
if (thisform.group15[i].checked) {
myOption15 = i; i = -1;
}
}
if (myOption15 == -1) {
alert("You must select an answer for Question 15");
return false;
}


myOption16 = -1;
for (i=thisform.group16.length-1; i > -1; i--) {
if (thisform.group16[i].checked) {
myOption16 = i; i = -1;
}
}
if (myOption16 == -1) {
alert("You must select an answer for Question 16");
return false;
}

myOption17 = -1;
for (i=thisform.group17.length-1; i > -1; i--) {
if (thisform.group17[i].checked) {
myOption17 = i; i = -1;
}
}
if (myOption17 == -1) {
alert("You must select an answer for Question 17");
return false;
}


myOption18 = -1;
for (i=thisform.group18.length-1; i > -1; i--) {
if (thisform.group18[i].checked) {
myOption18 = i; i = -1;
}
}
if (myOption18 == -1) {
alert("You must select an answer for Question 18");
return false;
}




myOption19 = -1;
for (i=thisform.group19.length-1; i > -1; i--) {
if (thisform.group19[i].checked) {
myOption19 = i; i = -1;
}
}
if (myOption19 == -1) {
alert("You must select an answer for Question 19");
return false;
}





myOption20 = -1;
for (i=thisform.group20.length-1; i > -1; i--) {
if (thisform.group20[i].checked) {
myOption20 = i; i = -1;
}
}
if (myOption20 == -1) {
alert("You must select an answer for Question 20");
return false;
}





myOption21 = -1;
for (i=thisform.group21.length-1; i > -1; i--) {
if (thisform.group21[i].checked) {
myOption21 = i; i = -1;
}
}
if (myOption21 == -1) {
alert("You must select an answer for Question 21");
return false;
}




myOption22 = -1;
for (i=thisform.group22.length-1; i > -1; i--) {
if (thisform.group22[i].checked) {
myOption22 = i; i = -1;
}
}
if (myOption22 == -1) {
alert("You must select an answer for Question 22");
return false;
}






myOption23 = -1;
for (i=thisform.group23.length-1; i > -1; i--) {
if (thisform.group23[i].checked) {
myOption23 = i; i = -1;
}
}
if (myOption23 == -1) {
alert("You must select an answer for Question 23");
return false;
}




myOption24 = -1;
for (i=thisform.group24.length-1; i > -1; i--) {
if (thisform.group24[i].checked) {
myOption24 = i; i = -1;
}
}
if (myOption24 == -1) {
alert("You must select an answer for Question 24");
return false;
}








myOption25 = -1;
for (i=thisform.group25.length-1; i > -1; i--) {
if (thisform.group25[i].checked) {
myOption25 = i; i = -1;
}
}
if (myOption25 == -1) {
alert("You must select an answer for Question 25");
return false;
}








myOption26 = -1;
for (i=thisform.group26.length-1; i > -1; i--) {
if (thisform.group26[i].checked) {
myOption26 = i; i = -1;
}
}
if (myOption26 == -1) {
alert("You must select an answer for Question 26");
return false;
}



myOption27 = -1;
for (i=thisform.group27.length-1; i > -1; i--) {
if (thisform.group27[i].checked) {
myOption27 = i; i = -1;
}
}
if (myOption27 == -1) {
alert("You must select an answer for Question 27");
return false;
}

myOption28 = -1;
for (i=thisform.group28.length-1; i > -1; i--) {
if (thisform.group28[i].checked) {
myOption28 = i; i = -1;
}
}
if (myOption28 == -1) {
alert("You must select an answer for Question 28");
return false;
}











// place any other field validations that you require here
thisform.submit(); // this line submits the form after validation
}



