I'm trying to create a javascript to return different answers for a radio button. : I'm trying to create a javascript to return different answers for a radio button. I have set up the html for a radio button form like this:

    	<ul>
     <li>
    <h5>Does the PURPLE card have your number?</h5>
    <input type="radio" name="card1" value="A">yes<br>
    <input type="radio" name="card1" value="B">no<br>
    </li>
    <li>
    <h5>Does the GREEN card have your number?</h5>
    <input type="radio" name="card2" value="A">yes<br>
    <input type="radio" name="card2" value="B">no<br>
    </li>
    <li>
    <h5>Does the BLUE card have your number?</h5>
    <input type="radio" name="card3" value="A">yes<br>
    <input type="radio" name="card3" value="B">no<br>
    </li>
    <li>
    <h5>Does the PINK card have your number?</h5>
    <input type="radio" name="card4" value="A">yes<br>
    <input type="radio" name="card4" value="B">no<br>
    </li>
    <li>
    <h5>Does the RED card have your number?</h5>
    <input type="radio" name="card5" value="A">yes<br>
    <input type="radio" name="card5" value="B">no<br>
    </li>
    <li>
    <h5>Does the ORANGE card have your number?</h5>
    <input type="radio" name="card6" value="A">yes<br>
    <input type="radio" name="card6" value="B">no<br>
    </li>
 
    </ul>

    <button onclick="returnScore()">View Results</button>
	

I am trying to make it so that a different result will be returned based on the which answers are yes are no. For example yes no no no no no would return answer 1. yes yes no no no no would return answer 2. etc. for 36 possible returns. 

this problem is coming from the card game here: http://www.counton.org/explorer/mathsmagic/realmystery/