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){}
15 runEvt('common','init');
16 if( getOrigLocation() == 0 ) ORIGLOC = LOCATION;
20 if( cgi.param(PARAM_LOCATION) == null ) {
21 var org = G.user.prefs[PREF_DEF_LOCATION];
22 var depth = G.user.prefs[PREF_DEF_DEPTH];
24 if(!org) org = G.user.ws_ou();
25 if(!depth) depth = findOrgDepth(org);
32 runEvt("common", "run");
34 G.ui.common.now_searching.appendChild(text(findOrgUnit(getLocation()).name()));
37 function windowUnload() { runEvt("common", "unload"); }