We got this code from teacher so we can learn from it. Simply, it is 10 question test with 3 possible answers on each question. If you hit number of good answers button it should give you back actual number of good answers. I can not make this run under up to date Chrome, IE etc. Everytime I hit number of good answers button on the bottom i get nothing or zero. Only browser that will actually run it is PSPad's super old IE.

```
<html>
<head>
<title>Test HTML</title>

<SCRIPT language=JavaScript>
var contents = true;

function counter(form)   
   {     
    var equal=0;
    if (form.o1[2].status==true)  equal++      
    if (form.o2[0].status==true)  equal++      
    if (form.o3[1].status==true)  equal++      
    if (form.o4[0].status==true)  equal++ 
    if (form.o5[0].status==true)  equal++
    if (form.o6[1].status==true)  equal++
    if (form.o7[0].status==true)  equal++
    if (form.o8[1].status==true)  equal++
    if (form.o9[0].status==true)  equal++
  if (form.o10[2].status==true)  equal++
     {
      form.right.value=" "+equal;
     }
   }
</SCRIPT>

<META http-equiv=Content-Type content="text/html; charset=windows-1250">
</head>
<DIV align=center>
<H3><B>TEST<br>HTML</B></H3>
<HR width="90%" color=#ffff00>
</DIV>
<FORM name=test method=post>
<TABLE width="100%" border=0>
<TBODY>
<TR vAlign=top><TD width="70%">
               <OL>
               <LI>q1</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o1> Answer0
               <br><INPUT type=radio value=B name=o1> Answer1
               <br><INPUT type=radio value=C name=o1> Answer2
               </BLOCKQUOTE>                        

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=2>q2</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o2> Answer0
               <br><INPUT type=radio value=B name=o2> Answer1
               <br><INPUT type=radio value=C name=o2> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=3>q3</LI></OL> 
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o3> Answer0
               <br><INPUT type=radio value=B name=o3> Answer1 
               <br><INPUT type=radio value=C name=o3> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=4>q4</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o4> Answer0
               <br><INPUT type=radio value=B name=o4> Answer1
               <br><INPUT type=radio value=C name=o4> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=5>q5</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o5> Answer0
               <br><INPUT type=radio value=A name=o5> Answer1
               <br><INPUT type=radio value=A name=o5> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=6>q6</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o6> Answer0 
               <br><INPUT type=radio value=A name=o6> Answer1    
               <br><INPUT type=radio value=A name=o6> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=7>q7</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o7> Answer0
               <br><INPUT type=radio value=A name=o7> Answer1   
               <br><INPUT type=radio value=A name=o7> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=8>q8</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o8> Answer0
               <br><INPUT type=radio value=A name=o8> Answer1    
               <br><INPUT type=radio value=A name=o8> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=9>q9</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o9> Answer0
               <br><INPUT type=radio value=A name=o9> Answer1  
               <br><INPUT type=radio value=A name=o9> Answer2
               </BLOCKQUOTE>

<TR vAlign=top><TD width="70%">
               <OL>
               <LI value=10>q10</LI></OL>
               <BLOCKQUOTE>
               <br><INPUT type=radio value=A name=o10> Answer0
               <br><INPUT type=radio value=A name=o10> Answer1 
               <br><INPUT type=radio value=A name=o10> Answer2
               </BLOCKQUOTE>
</TBODY>
</TABLE>
<HR width="90%" color=#ffff00>
<P align=center>
<INPUT style="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma" onclick="return counter(this.form)" type=button value="Number of good answers"> 
<INPUT size=5 name=right> 
</FORM>
</BODY>
</HTML>

```

Thank you for solving my problem. I am not that good in JS.

EDIT: Thank you guys you are really the best. :)