<!--

function QuizShowNext (index)
{
  if (index == 2)
     {
     document.getElementById("Block1").style.display= "none";
     document.getElementById("Block2").style.display= "block";
     }
  else if (index == 3)
     {
     document.getElementById("Block2").style.display= "none";
     document.getElementById("Block3").style.display= "block";
     }
  else if (index == 4)
     {
     document.getElementById("Block3").style.display= "none";
     document.getElementById("Block4").style.display= "block";
     }
  else if (index == 5)
     {
     document.getElementById("Block4").style.display= "none";
     document.getElementById("Block5").style.display= "block";
     }

  return true;
}


function QuizShowPrevious (index)
{
  if (index == 1)
     {
     document.getElementById("Block2").style.display= "none";
     document.getElementById("Block1").style.display= "block";
     }
  else if (index == 2)
     {
     document.getElementById("Block3").style.display= "none";
     document.getElementById("Block2").style.display= "block";
     }
  else if (index == 3)
     {
     document.getElementById("Block4").style.display= "none";
     document.getElementById("Block3").style.display= "block";
     }
  else if (index == 4)
     {
     document.getElementById("Block5").style.display= "none";
     document.getElementById("Block4").style.display= "block";
     }

  return true;
}


function QuizSubmit()
{
  var cText;  // text in cookie
    
    
  cText = "Negquiz=";
 
    // Q1 - Not True is the correct answer
  if (document.CQ.CQ1[1].checked)  cText += "1C"
  else                             cText += "1F";

    // Q2 - True is the correct answer
  if (document.CQ.CQ2[0].checked)  cText += "2C"
  else                             cText += "2F";

    // Q3 - True is the correct answer
  if (document.CQ.CQ3[0].checked)  cText += "3C"
  else                             cText += "3F";

    // Q4 - True is the correct answer
  if (document.CQ.CQ4[0].checked)  cText += "4C"
  else                             cText += "4F";
       
    // Q5 - Not True is the correct answer
  if (document.CQ.CQ5[1].checked)  cText += "5C"
  else                             cText += "5F";
       
    // Q6 - True is the correct answer
  if (document.CQ.CQ6[0].checked)  cText += "6C"
  else                             cText += "6F";
       
    // Q7 - Not True is the correct answer
  if (document.CQ.CQ7[1].checked)  cText += "7C"
  else                             cText += "7F";
       
    // Q8 - Not True is the correct answer
  if (document.CQ.CQ8[1].checked)  cText += "8C"
  else                             cText += "8F";
       
    // Q9 - True is the correct answer
  if (document.CQ.CQ9[0].checked)  cText += "9C"
  else                             cText += "9F";
       
    // Q10 - True is the correct answer
  if (document.CQ.CQ10[0].checked)  cText += "0C"
  else                              cText += "0F";
      
    // Q11 - Not True is the correct answer
  if (document.CQ.CQ11[1].checked)  cText += "aC"
  else                              cText += "aF";

    // Q12 - Not True is the correct answer
  if (document.CQ.CQ12[1].checked)  cText += "bC"
  else                              cText += "bF";
       
    // Q13 - True is the correct answer
  if (document.CQ.CQ13[0].checked)  cText += "cC"
  else                              cText += "cF";
      
    // Q14 - Not True is the correct answer
  if (document.CQ.CQ14[1].checked)  cText += "dC"
  else                              cText += "dF";
       
    // Q15 - True is the correct answer
  if (document.CQ.CQ15[0].checked)  cText += "eC"
  else                              cText += "eF";
       
    // Q16 - Not True is the correct answer
  if (document.CQ.CQ16[1].checked)  cText += "fC"
  else                              cText += "fF";
      
    // Q17 - Not True is the correct answer
  if (document.CQ.CQ17[1].checked)  cText += "gC"
  else                              cText += "gF";
       
    // Q18 - Not True is the correct answer
  if (document.CQ.CQ18[1].checked)  cText += "hC"
  else                              cText += "hF";
       
    // Q19 - True is the correct answer
  if (document.CQ.CQ19[0].checked)  cText += "iC"
  else                              cText += "iF";
       
    // Q20 - True is the correct answer
  if (document.CQ.CQ20[0].checked)  cText += "jC,"
  else                              cText += "jF,";
       
  document.cookie = cText;

  if (document.cookie.length <= 0)    // problems saving cookie?
     {
     alert ("This web page uses cookies to process your inputs.\nIt appears that your web browser does not allow using cookies.\nPlease change that setting and re-submit.\n(Error " + document.cookie.length + ")\n\nSorry for the inconvenience.");
     document.getElementById("Block5").style.display= "none";
     document.getElementById("Block1").style.display= "block";
     return false;
     }
  else
     return true;
}

//-->
