Javascript lookup

Hi All,

I have a form A with lookup Name & dominoform name & a hidden field with the formula as IDNameDominoform name.

I have form B with dropdown list of lookupnames with formula @Word(LookupNames ; “~~” ; 2)…when they select the lookup name it open the particular dmino form…

I am using javascipt… Any suggestions would be appreciated… Thanks in advance…

Here is javascript code in onchange of dropdown list:-

var f = document.forms[0]

var n = f.Name.options[f.Workspace.selectedIndex].value;

NewWin=window.open(“/dbname.nsf/” + n,“frbottom”)