dhtmlxWindows unload

I load one windows in first page using content of second page of my site.



How i can unload windows with button since my second page.



Thanks

You can use something similar to next

<input   type=“button” onclick=" top.wins.window(ID).close(); "  value=“click me” />

where
    ID - id of window
    wins - name of dhtmlXWindows object

ok, very much thanks