var OpenWindows = {};/** ---------------------------* Void focusWindow (HWND hwnd)* brings a window into focus* ----------------------------*/function focusWindow(hwnd){ Interop.Call('User32','BringWindowToTop',hwnd); Interop.Call('User32','ShowWindow',hwnd , SW_NORMAL);}/** ---------------------------* Void OpenWindow (String name)* opens a window if its not open , otherwise it will bring it into focus using focusWindow* ----------------------------*/function OpenWindow(name){ if(typeof(OpenWindows[name]) != 'undefined'){ //focus it focusWindow(OpenWindows[name].Handle) return OpenWindows[name]; }else{ //create it //OpenWindows[name] = MsgPlus.CreateWnd("rssinterface.xml",name); OpenWindows[name] = Trans.LoadWindow("rssinterface.xml",name); return OpenWindows[name] }}/** ---------------------------* Void CloseWindow (String name)* removes the window name from the OpenWindows object and closes it* ----------------------------*/function CloseWindow(name){ OpenWindows[name].Close(WNDEXITCODE_OK); delete OpenWindows[name];}