Javascript: multiple dependant drop lists

H E L P ! ! !

I’m in over my head on this one.
Javascript isn’t one of best things. :esmirk:

I’m building an order form. The first drop list will have product choices. The second drop list will be the colors available for the chosen product. The values in the second list need to change depending on the selection made in the first. So far, so good, I’ve done that before.

Here’s the problem. I need multiple instances of this same pair of drop lists so the customer can order more than one item.

I’ve been unable to locate a tutorial with an example that handles this situation. There has to be a way to do this without duplicating the same set of code ten or twelve times with different function names, that just goes against the programmers code. :azn:

Any assistance would be greatly appreciated.

Thanks, abzoid :cap: