i got it !
i was using document.getElementById("win").style.display="none"
the latter closes the panel from where ever you call the line.
, "agodbie007" <agodbie@...>
> hi, i hope someone can help me with this:
> i have two panels which open simultaneously when i click "open"
> the first panel is YAHOO panel, the second is custom built.
> what i need to do is, when i close the second panel, i want the
> panel to close also automatically (not hide which i am currently
> to do)- without pressing its close button..
> the problem is when i click "open" a second time, only the custom
> shows up, not the YAHOO one.. (i think this is happening because it
> hidden rather than closed and doesnt initialize again)
> is there some way to force the panel to close or destroy via script
> rather than pressing the close button, so i can open it again when
> click the "open" button?