<!-- //
function makewin(targurl, width, height, winopts){if(window.sidebars == null){sidebars = new Object;sidebars.length = 1;}allopts ="width=" + width + ",height=" + height + "," + winopts;var tempref = window.open(targurl, "sidebar" + sidebars.length, allopts);sidebars[sidebars.length] = tempref;sidebars.length++;}
function killwins(){if(navigator.appName !="Microsoft Internet Explorer"){if(window.sidebars != null){for(i = 1; i < sidebars.length; i++){sidebars[i].close();}}}}
function MM_reloadPage(init){if(init==true) with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;}} else if(innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);
function updateanswer(answer,qnum) {
   
   ansinteger=answer.ans.selectedIndex
   ansstring=answer.ans.options[ansinteger].text   
   document.forms[qnum].q1.value=ansstring
} 
function scoretest() {
   var counter = 0
   if (document.forms[10].q1.value =="erythr-"){counter += 1}
   if (document.forms[11].q1.value =="macro-"){counter += 1}
   if (document.forms[12].q1.value =="tachy-"){counter += 1}
   if (document.forms[13].q1.value =="endo-"){counter += 1}
   if (document.forms[14].q1.value =="multi-"){counter += 1}
   if (document.forms[15].q1.value =="post-"){counter += 1}
   if (document.forms[16].q1.value =="mono-"){counter += 1}
   if (document.forms[17].q1.value =="mal-"){counter += 1}
   if (document.forms[18].q1.value =="re-"){counter += 1}
   if (document.forms[19].q1.value =="tachy-"){counter += 1}
   document.results.score.value= counter+ " out of 10 correct."
   if (counter <= 5){advice ="Very Poor - Review your prefixes and try it again"}
   if (counter == 6) {advice ="Poor"}
   if (counter == 7) {advice ="Not too good, keep working"}
   if (counter == 8) {advice ="Fair, keep trying"}
   if (counter == 9) {advice ="Close, but you can do better"}
    if (counter == 10) {advice ="Very Good - Well Done"}putincorrect()
   document.results.feedback.value= advice
}
function putincorrect(){
   document.ca1.blank.value="erythr-"
   document.ca2.blank.value="macro-"
   document.ca3.blank.value="tachy-"
   document.ca4.blank.value="endo-"
   document.ca5.blank.value="multi-"
   document.ca6.blank.value="post-"
   document.ca7.blank.value="mono-"
   document.ca8.blank.value="mal-"
   document.ca9.blank.value="re-"
   document.ca10.blank.value="tachy-"
}
// -->