javascript with multiple form input to one color chooser

Why wont the javascript separate the form elements properly. My original problem was to input form elements for color choosing and also there were other elements such as a drop down menu. The javascript would not recognize the elements in the drop down. So I decided to break a nine part form into nine individual forms so that I could put the drop down menu after the radio input lines. I know it sounds stupid but I find that the radio boxes must have the same name to link them and by doing this I must use the array function so the radio inputs can become elements and would not need individual names. So I was happy with the array elements until I came to the drop down menu. I have 9 radio lines and then some extra drop downs and check boxes and this whole thing is multiplied 9 times, so I want a form for each of the 9 groups. I thought I had it licked when I put my javascript at the top but it outputs the second form to the first form. The script seems clear enough to work but it doesnt. The entire problem started when I wanted a color picker for vrml which is what this is. I modifed the hex output to become vrml. I did have another color picker which had the color info inside the form so I threw it out because I wanted it outside the form so I could have several forms but only one color data.
So perhaps if you can not fix this problem then you can give me advice on alternatives.

well I figured it out after researching on the web. The trick is in using the automatic array ability in the form input names. So the group of radio inputs are numbered choice[] such that the word choice

rtronsta, thankyou for the reply! It does look like it has some possibilities however I could not get it to work. Also I decided my problem was inpossible since two or more radios are checked at same time.
I suspect you did not get it to work either. The first thing I see as an error would be that you are using the checkbox for the input. Actually the radio input should be used. Therefore the first box or element[0] is skipped, as is element[3] also on the second line and likewise in the second form. I only understand js so much and I see that what you wrote is confusing to me in part. You put in ids but you also use the word input instead of checkbox or radio; and you put in three siblings instead of one. I thought at one time putting two functions in would be better, one for each form but I dont know too much. I noticed you put in id but did no use the method getelementbyid but used getelementbyname; shouldnt id be in there somewhere? Since you did not refer to id in the script then the script can not see two forms but only one. I see where I made a mistake since if I had two buttons pushed at once then I could only choose one color and get that color into both test boxes; that would be wrong. So I must go back to earlier thinking where there would be only one large radio group. This would destroy the idea of multiple forms.
So it will not work in any case.

The best idea of all is to have a popup color picker. Every color pick I find has an output of hex or dec and no vrml. Maybe you could help me modify one to output the vrml numbers. I have a color picker popup that has no equations but has the hex codes and there are a lot. In some color pickers they only use the hex 11 33 66 99 cc and ff which makes it easy to replace, but the popup I found has many hex codes and would take forever to replace. The only hex to vrml converter I found does not work properly. The output for ff is about 2.5 and vrml is limited at 1.0.

My final idea is to make a table inside my accordian with a right and left half.
I would have nine accordion divisions with a table having a right and left half in
each division; The left table would have all the radio buttons and the right would
have the checkboxes and drop down menu. This way I could put all the radio buttons
for all 9 divisions in a row and number elements consecutivesly. I dont really like the
idea that much though it might work.

The radio buttons must be a single group to work and use one color at a time.
I dont know if this is possible with multiple forms.

well I figured it out after researching on the web. The trick is in using the automatic array ability in the form input names. So the group of radio inputs are numbered choice[] such that the word choice which binds the radio buttons together also becomes a separate array. Then I named all the text areas to the name text and then they became an array automatically. It was rough still since I wish to put the form into an accordion and some accodions will not accept so easy. I finally used the jquery accordion. In case anyone should have a similar interest I have attached the main html code. The file is supposed to make vrml planetary systems with a complex set of php files associated with it; this is the gui for it. And this will close the issue.

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool. As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this:
(CODE)
B…

The task
A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome.
So let’s take a number like this “12345678.91¿ and format i…

The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)

The viewer will learn the basics of jQuery including how to code hide show and toggles.
Reference your jQuery libraries:
(CODE)
Include your new external js/jQuery file:
(CODE)
Write your first lines of code to setup your site for jQuery…