<!-- Begin
var ans = new Array;
var done = new Array;
var yourAns = new Array;
var explainAnswer = new Array;

var score = 0;
ans[1] = "b";
ans[2] = "d";
ans[3] = "a";
ans[4] = "c";
ans[5] = "a";
ans[6] = "c";
ans[7] = "d";
ans[8] = "d";

explainAnswer[1]="PCR = polymerase chain reaction";
explainAnswer[2]="PCR was invented by Kary B Mullis - Crick and Watson discovered the structure of DNA, while Darwin developed the theory of evolution by natural selection.";
explainAnswer[3]="PCR is used to amplify DNA. 'Magnification' simply means making something look bigger - PCR actually makes more copies of the DNA.";
explainAnswer[4]="The mixture contains the original DNA sample, DNA polymerase, the four nucleotide bases and primers. Fluorescent tagged bases are used in DNA sequencing, whilst endonucleases are important enzymes in the process of genetic engineering. Primers are needed in the mixture to begin the replication sequence of the DNA.";
explainAnswer[5]="The DNA strands separate. The mixture is only maintained at this stage for 30 seconds before moving on.";
explainAnswer[6]="The enzyme DNA polymerase is extracted from a bacterium called <i>Thermus aquaticus</i>, which lives in the hot springs in Yellowstone National Park. This is why its optimum temperature is so much higher than any mammalian enzymes.";
explainAnswer[7]="1 billion copies of the molecule are made - as long as the mixture of reactants contains plenty of nucleotide bases, primers and DNA polymerase, the amount of DNA doubles every few minutes.";
explainAnswer[8]="DNA fingerprinting does not rely on PCR. This technique involves sequencing the DNA - although it is often carried out on DNA that has been amplified using PCR, the technique was developed before PCR and can be used when there are relatively large, fresh samples of DNA available.";

function Engine(question, answer) {
yourAns[question]=answer;
}

function Score(){
var answerText = "<p class=pagehdgo>How did you do?</p>";
score = 0;
for(i=1;i<=8;i++){
   answerText=answerText+"Question "+i+"<br>";
  if(ans[i]!=yourAns[i]){
    answerText=answerText+"The correct answer is <font color=#FF0000>"+ans[i]+"</font><br>"+explainAnswer[i]+"<p>";
  }
  else{
    answerText=answerText+"Correct! <p>";
    score++;
  }
}


answerText=answerText+"Your total score is : "+score+"";


var resWindow = window.open('','pcr_result','width=400,height=400,scrollbars=yes,resizable=yes');


resWindow.document.open("text/html", "replace");
resWindow.document.write("<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN>");
resWindow.document.write("<html><head><title>PCR | quiz results</title><meta http-equiv=Content-Type content=text/html; charset=iso-8859-1><link href=../styles/styles.css rel=stylesheet type=text/css></head><body onLoad=window.focus()>");
resWindow.document.write("<table width=100% border=0 cellspacing=0 cellpadding=3><tr><td>");
resWindow.document.write(answerText);
resWindow.document.write("<p align=<left><a href=# onClick=javascript:window.print()>Print the contents of this window</a>");
resWindow.document.write("<p align=<left><a href=# onClick=self.close()>Close this window</a></p>");
resWindow.document.write("</td></tr></table></body></html>");
resWindow.document.close();

}
//  End -->