function radio_selected(radiobutton) {
 for (i = 0; i < radiobutton.length; i++) {
  if (radiobutton[i].checked) {
   return true;
  }
 }
 return false;
}
function radio_selected_extra(radiobutton, extrafield)
{
 for (i = 0; i < radiobutton.length - 1; i++) {
  if (radiobutton[i].checked) {
   return true;
  }
 }
 if (radiobutton[i].checked && extrafield.value) {
  return true;
 }
 return false;
}
function check_form(page) {
if ( (page == 2) && (!radio_selected(document.prontosurvey.q1)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q2)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q3)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q4)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q5)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q6)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q7)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q8)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q9)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q10)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 2) && (!radio_selected(document.prontosurvey.q11)) ) {
 alert('Please answer each question marked with an asterisk (*), including all radio button selections.');
 return false;
}
if ( (page == 3) && (!radio_selected(document.prontosurvey.q12)) ) {
 alert('Please make a selection.');
 return false;
}
if ( (page == 3) && (!radio_selected(document.prontosurvey.q13)) ) {
 alert('Please make a selection.');
 return false;
}
if ( (page == 3) && (!radio_selected(document.prontosurvey.q14)) ) {
 alert('Please make a selection.');
 return false;
}
if ( (page == 4) && (!radio_selected_extra(document.prontosurvey.q15, document.prontosurvey.q15_extra)) ) {
 alert('Please make a selection.');
 return false;
}
if ( (page == 4) && (!radio_selected_extra(document.prontosurvey.q16, document.prontosurvey.q16_extra)) ) {
 alert('Please make a selection.');
 return false;
}
if ( (page == 4) && (!radio_selected_extra(document.prontosurvey.q17, document.prontosurvey.q17_extra)) ) {
 alert('Please make a selection.');
 return false;
}
if ( (page == 5) && (!document.prontosurvey.q18.value) ) {
 alert('required information');
 return false;
}
if ( (page == 5) && (!document.prontosurvey.q19.value) ) {
 alert('required information');
 return false;
}
if ( (page == 5) && (!document.prontosurvey.q20.value) ) {
 alert('required information');
 return false;
}

}