2 /* these events should be used by all */
4 window.onunload = windowUnload;
6 attachEvt("common", "init", loadUIObjects);
7 attachEvt("common", "init", initParams);
8 attachEvt("common", "init", initCookies);
10 attachEvt("common", "unload", _tree_killer);
11 try{ attachEvt("common", "unload", cleanRemoteRequests);} catch(e){}
14 runEvt('common','init');
15 if( getOrigLocation() == 0 ) ORIGLOC = LOCATION;
18 if( grabUser() && cgi.param(PARAM_LOCATION) == null )
19 LOCATION = G.user.home_ou();
21 runEvt("common", "run");
23 G.ui.common.now_searching.appendChild(text(findOrgUnit(getLocation()).name()));
26 function windowUnload() { runEvt("common", "unload"); }