You do not need Javascript to do that.
Assume....
BO name is MyBO
Attribute MyBO.RadioBut is your Radio Button
Attribute A,B and C should be visible for New Customer and D,E and F visible for New Member
In the Rules....something like
First Rule
RadioButton = 'Customer'
READ PROTECT MyBO.A FROM ALL EXCEPT System
READ PROTECT MyBO.B FROM ALL EXCEPT System
READ PROTECT MyBO.C FROM ALL EXCEPT System
Second Rule
RadioButton = 'Member'
READ PROTECT MyBO.D FROM ALL EXCEPT System
READ PROTECT MyBO.E FROM ALL EXCEPT System
READ PROTECT MyBO.F FROM ALL EXCEPT System
Make sure they are both Dynamic
You can also join it together in a single Rule but you will need to use textural rules for that