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 = "Which organism is more sensitive to acid?"+TA
var W2 = "What disease does each organism cause?"+TA
var W3 = "S. aureus can produce both toxins."+TA
var W4 = "Which disease involves the bacteria leaving the intestine?"+TA
var W5 = "Which antibiotic is considered broad spectrum?"+TA
var W6 = "What are the characteristics of dysentery and cholera?"+TA
var W7 = "A vaccine is available for tetanus."+TA
var W8 = "Shigella are invasive organisms."+TA
var W9 = "Where do the organisms responsible for each disease come from?"+TA
var W10 = "Which organism is anaerobic?"+TA
var W11 = "Which organism is an intracellular pathogen?"+TA
var W12 = "Which organism is motile?"+TA
var W13 = "Which group contains LPS?"+TA
var W14 = "Carriage is inversely correlated with age."+TA
var W15 = "What organism has Protein A?"+TA
var W16 = "Are they the same?"+TA
var W17 = "Staphylococci are sometimes categorized by this trait."+TA
var W18 = "TIPH:  small, large, small, large."+TA
var W19 = "You just have to remember this."+TA
var W20 = "Which form produces a systemic disease more quickly?"+TA
var W21 = "Hmmmm"+TA
var W22 = "What percentage of all UTIs involve E. coli?"+TA
var W23 = "L comes before S and A comes before G."+TA
var W24 = "Can Pseudomonas ferment anything?"+TA
var W25 = "Which is most common?"+TA

var CA="AAACABABAABAAAAAABAABABCAA";
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="x2s2_f0.htm";}
          else {
             parent.t11.document.location.href = "x2s1_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();
}


