Hi Dirk and Marc
Thank you both very much for your responces.
Marc, your method does seem to destroy the Window if called after the palette is closed.
The question now is how does one trigger that $.UserInterface(-1) should be call after the Window is closed?
Would the best way of doing this be to use an onClose to create an idleTask that will call the $.UserInterface(-1) function and then remove itself?
Trevor