<!--
// Multiple-Choice with Images, Charles Kelly, May 1998
// Calculates score, prevents double answers, gives feedback.
t=0;s=0;d=new Array;
function f(q,a){if(!d[q]){d[q]=-1;m="";t++;if(a==1){s++;m="CORRECT!"}else{m="WRONG!"};w="Score: "+Math.round((s/t)*100)+" percent\n("+s+" out of "+t+")";m+="\n\n\n"+w;alert(m);document.q.s.value="Score: "+Math.round((s/t)*100)+"% ("+s+"/"+t+")"}else{alert("You've already answered that one.")}}
//-->

