  if (document.getElementById)
    { document.write('<style type="text/css">')
    document.write('.switchcontent{display:none;}')
    document.write('</style>') }
  function getElementbyClass(classname)
    { ccollect=new Array()
    var inc=0
    var alltags=document.all? document.all : document.getElementsByTagName("*")
    for (i=0; i<alltags.length; i++)
      { if (alltags[i].className==classname) ccollect[inc++]=alltags[i] } }
  function expandcontent(cid)
    { if (typeof ccollect!="undefined") {
      document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "block" } }
  function do_onload()
    { getElementbyClass("switchcontent") }
  fr();
  if (document.getElementById)
    window.onload=do_onload;

  function init()
  { score = 0; res=-1; done1 = done2 = done3 = 0;
  return score, res, done1, done2, done3;
  }
    
  function check1(chk)
  {
  if (done1 == 0)
    { 
    done1 = 1;
    if (chk == 1)
      { score++; res = "Correct!";} 
    else
      { res = "Wrong!";  }       
      document.aa1.atext.value=res;
      document.scoreform.scoretxt.value=score;  
    }
  return score, done1;  
  }

  function check2(chk)
  {
  if (done2 == 0)
    { 
    done2 = 1;
    if (chk == 1)
      { score++; res = "Very well!";} 
    else
      { res = "Incorrect!";  }       
      document.aa2.atext2.value=res;
      document.scoreform.scoretxt.value=score;  
    }
  return score, done2;  
  }
  
  function check3(chk)
  {
  if (done3 == 0)
    { 
    done3 = 1;
    if (chk == 1)
      { score++; res = "Excellent!";} 
    else
      { res = "Wrong!";  }       
      document.aa3.atext3.value=res;
      document.scoreform.scoretxt.value=score;  
      document.aa3.finalscore.value=score;
    }
  return score, done3;  
  }

function fr()
{ if (window.location != top.location) 
{ top.location.href=window.location }; }
