5 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
6 JSAN.errorLevel = "die"; // none, warn, or die
7 JSAN.addRepository('/xul/server/');
8 JSAN.use('util.error'); error = new util.error();
9 error.sdump('D_TRACE','my_init() for main_test.xul');
11 dojo.require('openils.PermaCrud');
13 var types = new openils.PermaCrud(
17 ).retrieveAll('coust');
21 alert( js2JSON(type) );
25 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
26 try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); }
30 try { error.standard_unexpected_error_alert('main/test.xul',E); } catch(F) { alert(E); }