Try this simpler thing instead...
Where you are having the links in the main window, add the target field to
the <a> link like this

<A href="yourUrl" target="new_open_window_random">
What this will do (atleast in IE) is that it will try to open your link in
the target specified. If the target is found then it opens as expected in
the target window, however if the target is not found then it simply creates
a new window and uses it as the target. All subsequent opens are done in
that window. If the user closes the window then another one is created.

This will do away with the need for a open button and also eliminate need
for any scripts.

HTH
NP


"Raj" <phoenix_cbe@yahoo.com> wrote in message
news:2624d049.0306301438.66cf0ea8@posting.google.c om...
> Hi All,
> I am having a lot of problems with pop up windows,
>
> My requirements are like this
>
> 1. I have a parent window from where I open a child window called say
> "aaa.aspx"
> thru a button click, which for example, can be called btnOpen
>
> 2. The parent window is a datalist that displays one record per page.
> When then user navigates to another record and the aaa.aspx page is
> open, nothing happens when the user clicks btnOpen, Since it is
> already open. He has to close it and then click btnOpen for the new
> set of records to open in the child window. I cant seem to figure out
> an alternative to this problem. Can someone please help on this..
>
>
> TIA
> Raj