Wow.. Been a while since I started a new thread. Anyhow, I'm now learning JavaScript, which I figure is way overdue, since I know XHTML, CSS, PHP and a little ASP.NET. Anyway, I've come across a problem I need help solve.

I want to reference a value from a selectbox - like this:

function WindowThingy(fileName, formName, formSelect) {
  var selectId = document.formName.formSelect.selectedIndex;
  var windowUrl = fileName + '?id=' + theid;
  NewWindow(windowUrl, 'WindowThingy', '300', '200');
Naturally, the code above doesn't work, but I think you understand what I'm trying to do, and can help me fix the darn thing.

I would be very grateful for any help!