I have to make a form that has 2 radio buttons:
Are you a member? Yes | No

And depending on what they select, it changes the value of the products they can purchase:
Code:
<script language="JavaScript">

function member(select) {
if (select == "no")
{
var Prod1 = 100;
var Prod2 = 200;
var Prod3 = 10;
var Prod4 = 10;
var Prod5 = 250;
var Prod6 = 95;
}
else 
{
var Prod1 = 0;
var Prod2 = 100;
var Prod3 = 0;
var Prod4 = 0;
var Prod5 = 200;
var Prod6 = 75;
}
}
</script>
I tried:

<input type="radio" name="member" value="yes" onClick="member('yes');">
<input type="radio" name="member" value="no" onClick="member('no');">

I am not a javascript person - so can someone help me out on this?

I would like it to be an 'onClick or onFocus' event because I am making a calculator, and need the values immediately.

TIA