// All windows are named as below. This allows the testimonies pop up
// to TARGET the opener window when the "More testimonies" link is clicked
window.name = "main";
//----------------evaluate BEGINS----------------------
function evaluate(form)
{
  // Slice off submit and reset button elements
   var numberElements = form.elements.length -2
   var A = 0
   var P = 0
   var U = 0
   for(i = 0; i < numberElements; i++)
   {
       if(form.elements[i].checked)
	   {
	       switch(form.elements[i].value)
		   {
		   case 'A': A += 1
		   break
		   case 'P': P += 1
		   break
		   case 'U': U += 1
		   }
	   }// end if
   }// end for
   alert("YOUR SCORE:\n\n" + 
         "Adequate:    " + A + "\n" + 
         "Progressing: " + P + "\n" + 
		 "Unknown:     " + U + "\n" +
		 "\nChoose your next step!")
   return false
}// end evaluate
//----------------evaluate ENDS-----------------------



