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

function getScore(form,score) {
  var score = 0;
  var myvalue = 0;
  var currElt;
  var currSelection;
  var profile = "";
  var graphic;
  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 = "<br><br>Take out those rose-colored contacts! Your idea of romance is about as heavy as a skim milk latte and just as nourishing. Go for the real thing.<br><br><br><br>";
     graphic = "yellow";
if (score >35) {
	profile = "<br>You're probably very trusting of your girl/guy---or maybe you're just playing with him/her until the real thing comes along.<br><br><br><br><br>";
	graphic = "red";
	} 
	
if (score >68) {
	profile = "<br>It looks like the ''real thing.'' You have a highly developed sense of romance. You know how to treat others well and be treated well yourself in return.<br><br><br><br><br>";
	graphic = "green";
	}
	
var scoreWin = window.open ("","scorewin","width=500,height=220,screenX=300,screenY=300,left=300,top=300");
scoreWin.document.write('<html>'
  + '<head>'
  + '<title>Is It The Real Thing?</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>'
  + '<br>'
  + '</body>'
  + '</html>'
  + '');
  
scoreWin.document.close();  
}
// -->

