Hey,

I am trying to create a chain select menues and I am trying to use JS to create rules for the select menues in HTML. Basically I want to have Four Select menues:

"Makes"
"Colors"
"Years"
"Metals"

The following menu should not work until the above choice is selected. I have thought about this script, however, I can make it work on 3 select-forms, however I need to be able to expand to the 4th and possibly to the 5th select menu.

Code:
makes = new Array ();
colors = new Array();
years = new Array ();
metals = new Array ();
var c;


c = 0;
makes[c] = "Polished";
colors[c] = new Array ();
years[c] = new Array ();

colors[c][0] = "Grey";
years[c][0] = new Array ("30","40","50");
var d = ([c][0])
metals[d] = new Array ("Chrome", "Bronze");

colors[c][0] = "Blue";
years[c][0] = new Array ("30","80","90");
var d = ([c][0])
metals[d] = new Array ("Rust", "Bronze");

colors[c][0] = "White";
years[c][0] = new Array ("40","50","90");
var d = ([c][0])
metals[d] = new Array ("Chrome", "Steel");

c = 1;
makes[c] = "Hardened";
colors[c] = new Array ();
years[c] = new Array ();

colors[c][1] = "Yellow";
years[c][1] = new Array ("30","40","50");
var d = ([c][1])
metals[d] = new Array ("Steel", "Latun");
Can anybody help me out please.