First of all, I'm a complete javascript newbie - go easy on me! I was told this was a friendly helpful place, so I thought it'd be a good idea to post my question here.

Here's what I want to do:
I have a big PHP array which holds various options.

PHP Code:
$ARRAY['type1']['someoption1'] = 1;
$ARRAY['type1']['someoption2'] = 0;
$ARRAY['type1']['someoption3'] = 0;
$ARRAY['type1']['someoption4'] = 1;

$ARRAY['type2']['someoption1'] = 0;
$ARRAY['type2']['someoption2'] = 1;
$ARRAY['type2']['someoption3'] = 0;
$ARRAY['type2']['someoption4'] = 1;

// etc. 
On an HTML page I have a form with two radio buttons for each option in the above array. (Yes/No) At the top of the page, I have a selection of buttons representing ['typeX'] , each with an "onClick" property.

What I want to happen is that when you click on a button, the options for that type will appear in the form, using the settings from the PHP array.

How can I do this? I presume I'm going to need to convert the PHP array into a javascript one, can this be done?

Thanks in advance for any help.