Can anyone tell me how to pass values to a page with frames.

From this other window the user would select a value. When they click on the value they want I call a javascript routine that will pass the values to the originating form that is still currently open on another window.

The code I currently have in the function:

function sendback() {
window.opener.frames[1].document.forms[0].txtSupplier.value = document.forms[0].txtSupplier.value
window.close()
}

This code does not seem to work for me though.

Can anyone please offer some help or suggestions.

Thanks again.