
function Form_Validator(theForm)
{

  if (!theForm.overall.checked)
  {
	rvalue = false;
	for (i=0; i < theForm.overall.length; i++)
		if (theForm.overall[i].checked) rvalue=true;
	
	if (!rvalue) {
		alert("How would you rate your overall visit?");
    	theForm.overall[0].focus();
  		return (rvalue);
	}
  }
  
  if (!theForm.understanding.checked)
  {
	rvalue = false;
	for (i=0; i < theForm.understanding.length; i++)
		if (theForm.understanding[i].checked) rvalue=true;
	
	if (!rvalue) {
		alert("When your appointment was over, did you have a good understanding of your dental situation?");
		theForm.understanding[0].focus();
  		return (rvalue);
	}
  }
	
	if (!theForm.financial.checked)
   {
 	rvalue = false;
	for (i=0; i < theForm.financial.length; i++)
		if (theForm.financial[i].checked) rvalue=true;
	
	if (!rvalue) {
	   alert("Were your financial options explained to you?");
		theForm.financial[0].focus();
  		return (rvalue);
	}
  }
  
  if (!theForm.wait.checked)
  {
 	rvalue = false;
	for (i=0; i < theForm.wait.length; i++) if (theForm.wait[i].checked) rvalue=true;
	
	if (!rvalue) {
		alert("Did you have to wait over 5 minutes past your appointment time to be seated?");
		theForm.wait[0].focus();
  		return (rvalue);
	}
  }
  
  if (!theForm.time.checked)
  {
 	rvalue = false;
	for (i=0; i < theForm.time.length; i++) if (theForm.time[i].checked) rvalue=true;
	
	if (!rvalue) {
		alert("Once seated, did your appointment last the amount of time you expected?");
		theForm.time[0].focus();
  		return (rvalue);
	}
  }
 
 	if (!theForm.greeting.checked)
  {
 	rvalue = false;
	for (i=0; i < theForm.greeting.length; i++) if (theForm.greeting[i].checked) rvalue=true;
	
	if (!rvalue) {
		alert("Was the staff courteous and did they greet you properly?");
		theForm.greeting[0].focus();
  		return (rvalue);
	}
  }

	if (!theForm.refer.checked)
  {
 	rvalue = false;
	for (i=0; i < theForm.refer.length; i++) if (theForm.refer[i].checked) rvalue=true;
	
	if (!rvalue) {
		alert("Would you refer your friends and family to us?");
		theForm.refer[0].focus();
  		return (rvalue);
	}
  }


  return (rvalue);
}