I am begginer in JavaScript and this forum.

I have problem with my drop down menu which is available on this link

When feature user will choose all subcategories and click Go button browser automatically redirects him to proper site.

Main problem is generating proper links to this sites.
Every category has a unique ID, but how can i assign this number dynamically to array.

This menu is for Os Commerce. It's generating links like this

Where number 1 means category id=1 (Osobowe)
4 - Volvo
5 - V70

In this link I uploaded source files.