5 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
6 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
7 JSAN.errorLevel = "die"; // none, warn, or die
8 JSAN.addRepository('/xul/server/');
9 JSAN.use('util.error'); error = new util.error();
10 error.sdump('D_TRACE','my_init() for main_test.xul');
12 dojo.require('openils.PermaCrud');
14 var types = new openils.PermaCrud(
18 ).retrieveAll('coust');
22 alert( js2JSON(type) );
26 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
27 try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); }
31 try { error.standard_unexpected_error_alert('main/test.xul',E); } catch(F) { alert(E); }