<!--
var numQues = 11;
var numChoi = 2;

function getScore(form,score) {
  var score = 0;
  var myvalue = 0;
  var currElt;
  var currSelection;
  var profile = "";
  for (i=0; i<numQues; i++) {
    currElt = i*numChoi;
    for (j=0; j<numChoi; j++) {
      currSelection = form.elements[currElt + j];
      if (currSelection.checked) {
	  	myvalue = parseInt(currSelection.value);
        score = score + myvalue;
        break;
      }
    }
  }
  
// form.debug.value = score 
profile = "Those who rate this score have great problems in finding themselves. It takes the ''loving nature'' of others to help. But it is essential for the individual to recognize his own lack of warmth and love and make an honest effort to change.<br>";
	
if (score >39) {
	profile = "This bracket suggests a lack of warmth and love. Many individuals can find a new satisfaction by giving rather than sitting back and expecting to receive.<br>";
	}
	
if (score >69) {
	profile = "Testees in this range usually have a loving nature and respond to those around them. They are concerned about others more than themselves, and generally are outgoing people with a great respect for their fellow man.<br>";
	} 
	
var scoreWin = window.open ("","scorewin","width=480,height=150,screenX=270,screenY=310,left=270,top=310");
scoreWin.document.write('<html>'
  + '<head>'
  + '<title>Do You Have A Loving Nature?</title>'
  + '<link rel="stylesheet" type="text/css" href="popup.css" />'
  + '</head>'
  + '<body>'
  + '<div class=c8>'
  + '<div class=c9>'
  + '<p align="center" valign="middle"><span class="c1"><b>Your score is ' + score + ' %.</span></b></p>' + profile
  + '</div>'
  + '</div>'
  + '<br>'
  + '</body>'
  + '</html>'
  + '');
  
scoreWin.document.close();  
}
// -->

