// <![CDATA[

function valbutton(thisform) {
// place any other field validations that you require here
// validate myradiobuttons
myOption = -1;
for (i=thisform.answer.length-1; i > -1; i--) {
if (thisform.rba1[i].checked) {
myOption = i; i = -1;
}
}
if (myOption == -1) {
alert("Please answer the question");
return false;
}

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

// ]]>
