>I am new to Web programming so I was wondering if somebody could guide me to right direction.
>
>There is supposed to be a textbox and a small button next to it on my main form. When the user clicks on the button, a small window is supposed to open from where the user will select a name. After the user clicks "OK" on the small window, the name and the ID attached to that name is supposed to comeback to the original page. I want to store both the ID and name in database as the data is used by some other departments where they cannot resolve the ID to a name.
>
>I cannot use a dropdown list as we are talking about at least 3000 records to choose from and it will slow down the dropdown list.
What you would like to use is something similar to what I use here as a pick list. This is necessary when you have too much choices, such as you just mentioned. You may use the window.opener to obtain a reference to the calling window from the pick list window. So, basically, something like window.opener.document.form.field.value=YourSelectedValue would do.