var i = "0";
var t = 0;
var r = 0;
var a = 0;
var clr = "";
var cor = "CORRECT! ";
var incor = "INCORRECT! ";
var TA=" TRY AGAIN.";

var R0 = "That's all there is to it!"
var R1 = ""
var R2 = ""
var R3 = ""
var R4 = ""
var R5 = ""
var R6 = ""
var R7 = ""
var R8 = ""
var R9 = ""
var R10 = ""
var R11 = ""
var R12 = ""
var R13 = ""
var R14 = ""
var R15 = ""
var R16 = ""
var R17 = ""
var R18 = ""
var R19 = ""
var R20 = ""
var R21 = ""
var R22 = ""
var R23 = ""
var R24 = ""
var R25 = ""

var W0 = "Oh come on....I even gave you the answer!"
var W1 = "Nope!"+TA
var W2 = "Which vaccine is given by the normal route of entry for the virus?"+TA
var W3 = "Most any virus can undergo antigenic drift."+TA
var W4 = "Major genome rearrangements occur in an animal host."+TA
var W5 = "One is good for flu, the other for HSV."+TA
var W6 = "Which form is the intracellular replicative form?"+TA
var W7 = "There was only one naked virus that we discussed in class."+TA
var W8 = "Which one is a solely human pathogen?"+TA
var W9 = "Epidemic-lice, endemic-not lice."+TA
var W10 = "Like dissolves like."+TA
var W11 = "Usually, the suffix 'ase' implies an enzymatic activity."+TA
var W12 = "Which organism can only be grown on the footpads of armadillos?"+TA
var W13 = "Only one of the Rickettsial diseases does not show a rash."+TA
var W14 = "What lesions are present in the different stages?"+TA
var W15 = "Which virus has a negative stranded genome?"+TA
var W16 = "There is only one serotype of one of these."+TA
var W17 = "Symptoms reflect CNS involvement."+TA
var W18 = "Which one remains latent in the dorsal ganglia?"+TA
var W19 = "Does one of these toxins inhibit protein synthesis?"+TA
var W20 = "Immediate early proteins are made upon entry into the host cell."+TA
var W21 = "This is usually only seen in one of the sexes."+TA
var W22 = "Which virus produces a more chronic infection?"+TA
var W23 = "Which one has antigens that resemble host antigens?"+TA
var W24 = "Does Rubella infect the gastrointestinal tract?"+TA
var W25 = "There is an effective vaccine for both viruses."+TA

var CA="ABBCBAACABBAACBBABBABABABC";
var cBtn = "";

function NA(a) {
  if (eval(a) < 27) {
     if (parent.t12.document.cform.choice[3].checked==true && a > 1) {
         alert("You forgot to choose an answer!");}
     else {
        if (eval(a) == 26) {
	var rgt = eval(top.t00.document.topform.Right1.value)
	var tot = eval(top.t00.document.topform.Total1.value)
           top.t00.document.topform.Right1.value = eval(parent.t14.document.XScore.right.value)+rgt;
           top.t00.document.topform.Total1.value = eval(parent.t14.document.XScore.total.value)+tot;
           parent.location.href="x3s2_f0.htm";}
          else {
             parent.t11.document.location.href = "x3s1_f1.htm#" + a;
             parent.t12.document.cform.qnumber.value = a;
             parent.t13.document.aform.result.value = clr;
             for (var i = 0; i < 3; i++) {
             parent.t12.document.cform.choice[i].checked=0;   }
             parent.t12.document.cform.choice[3].checked=1;
             parent.t14.document.XScore.cntr.value = "0";
             parent.t15.document.NexQ.QSet.value = (eval(a)+1);
        if (parent.t15.document.NexQ.QSet.value < eval(26)) {
            parent.t15.document.NexQ.QVal.value = "CLICK to go to Question #" + eval(parent.t15.document.NexQ.QSet.value);
  }     else {parent.t15.document.NexQ.QVal.value = "CLICK to go to Section II";}
 }}

}
}

function ANS(cBtn) {
   var c = "";
   var y = parent.t12.document.cform.qnumber.value;
   var c = CA.charAt(eval(y));

   if (c==cBtn) {
       parent.t13.document.aform.result.value = cor + eval("R" + y);
    if (y != 0) {
       i = parent.t14.document.XScore.cntr.value;
if (i == "0") {
  i = "1";
  t = t + 1;
  r = r + 1;
  parent.t14.document.XScore.right.value = r;
  parent.t14.document.XScore.total.value = t;
  parent.t14.document.XScore.ave.value = Math.round((r / t) * 100);
  parent.t14.document.XScore.cntr.value = i;
}
    } }
   else {
      parent.t13.document.aform.result.value = incor + eval("W" + y);
    if (y != 0) {
        i = parent.t14.document.XScore.cntr.value;
if (i == "0") {
  i = "1";
  t = t + 1;
  parent.t14.document.XScore.right.value = r;
  parent.t14.document.XScore.total.value = t;
  parent.t14.document.XScore.ave.value = Math.round((r / t) * 100);
  parent.t14.document.XScore.cntr.value = i;
}

   } }
}

function person_in() {
enter = new Date;
top.t00.document.topform.TimeIn.value=enter.getTime();
}


