<!--

var numQues = 10;
var numChoi = 3;


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 = "<center>Try again or view correct answers below.</center><br><br><br><br>The scientific name for kissing is: philematology.<br><br>The average person will spend an estimated 20,160 minutes kissing in their lifetime.<br><br>50 percent of all people kiss have their first romantic kiss before they are: 14.<br><br>You burn 26 calories in a one minute kiss.<br><br>Feelings of passion cause a surge of chemicals in the brain similar to those brought on by: both bungee jumping and distance running.<br><br>The longest kiss on film was between Jane Wyman and Regis Tommey in the 1941 movie You're in the Army Now. It lasted 3 minutes and 5 seconds.<br><br>Over 34 facial muscles are involved in passionate kissing.<br><br>Your lips are 100 times more sensitive than the tips of your fingers.<br><br>A study by a Canadian anthropologist demonstrated that 97 percent of women shut their eyes during a kiss but only 37 percent of men did. <br><br>The Romans soon discovered that a kiss has many meanings and assigned words for these different types of kisses, such as basium meaning: passionate kiss.<br>";

if (score >59) {
	profile = "<center>Good Job!<br>You can try and improve your score<br>or view correct answers below.</center><br><br><br><br>The scientific name for kissing is: philematology.<br><br>The average person will spend an estimated 20,160 minutes kissing in their lifetime.<br><br>50 percent of all people kiss have their first romantic kiss before they are: 14.<br><br>You burn 26 calories in a one minute kiss.<br><br>Feelings of passion cause a surge of chemicals in the brain similar to those brought on by: both bungee jumping and distance running.<br><br>The longest kiss on film was between Jane Wyman and Regis Tommey in the 1941 movie You're in the Army Now. It lasted 3 minutes and 5 seconds.<br><br>Over 34 facial muscles are involved in passionate kissing.<br><br>Your lips are 100 times more sensitive than the tips of your fingers.<br><br>A study by a Canadian anthropologist demonstrated that 97 percent of women shut their eyes during a kiss but only 37 percent of men did. <br><br>The Romans soon discovered that a kiss has many meanings and assigned words for these different types of kisses, such as basium meaning: passionate kiss.<br>";
	} 
	
if (score >79) {
	profile = "<center>Great Job! <br>View correct answers below.</center><br><br><br>The scientific name for kissing is: philematology.<br><br>The average person will spend an estimated 20,160 minutes kissing in their lifetime.<br><br>50 percent of all people kiss have their first romantic kiss before they are: 14.<br><br>You burn 26 calories in a one minute kiss.<br><br>Feelings of passion cause a surge of chemicals in the brain similar to those brought on by: both bungee jumping and distance running.<br><br>The longest kiss on film was between Jane Wyman and Regis Tommey in the 1941 movie You're in the Army Now. It lasted 3 minutes and 5 seconds.<br><br>Over 34 facial muscles are involved in passionate kissing.<br><br>Your lips are 100 times more sensitive than the tips of your fingers.<br><br>A study by a Canadian anthropologist demonstrated that 97 percent of women shut their eyes during a kiss but only 37 percent of men did. <br><br>The Romans soon discovered that a kiss has many meanings and assigned words for these different types of kisses, such as basium meaning: passionate kiss.<br>";
	}
	
var scoreWin = window.open ("","scorewin","scrollbars=yes,width=480,height=150,screenX=270,screenY=310,left=270,top=310");

scoreWin.document.write('<html>'
  + '<head>'
  + '<title>A Kiss is A Kiss</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><br>Your score is ' + score + ' %.</span></b></p>' + profile
  + '</div>'
  + '</div>'
  + '<br>'
  + '</body>'
  + '</html>'
  + '');
  
scoreWin.document.close();  

}

// -->
