Problem with dhtmlxwindow and frameset

hi,
below is a code of main page

when i call dhtmlxwindow from my ‘main’ content it loads perfectly but it places under the main frame and cannot move outside of a frame! i want to load window on the top of the frames so that it can moves in all the page!
how could i do that?