rem: if(console) { 
add: if(typeof console != 'undefined') { 
context: dbforms2.init = function(formConfig) {    // set up the log    dbforms2_log.init();    dbforms2_log.log('--');    dbforms2_log.log('dbforms2 initializing...');    // FIXME: this should be per form    this.liveSelectRootURI = formConfig['liveSelectRootURI'];        // set up the status text    this.statusTextDiv = document.getElementById('statustext');    dbforms2.statusText('Initializing...');    // create the main form    this.mainform = dbforms2.getFormByConfig(formConfig);    this.mainform.toolbar = new dbforms2_toolbar();    this.mainform.initToolbar();    this.mainform.toolbar.lockAllButtons();        // set client-side event handlers    if(formConfig['onSaveJS']) {        this.mainform.eventHandlers['onSaveJS'] = formConfig['onSaveJS'];    }    if(formConfig['onLoadJS']) {        this.mainform.eventHandlers['onLoadJS'] = formConfig['onLoadJS'];    }	// check if an id has been passed via url and load the corresponding entry if so    this.parseUrlParams();	if (this.urlParams['id']) {		this.mainform.loadFormDataByID(this.urlParams['id']);	}	    // set up a live select for the main chooser    var cf_onLiveChoose = new ContextFixer(this.loadEntryByID, this);    this.chooser = new dbforms2_liveselect();    this.chooser.onChooseAction = cf_onLiveChoose.execute;    var wev = new ContextFixer(this.deleteEntryByID, this);    this.chooser.onDeleteAction = wev.execute;    this.chooser.dataURI = formConfig['chooserDataURI'];    this.chooser.init(document.getElementById('chooserQueryField'), document.getElementById('chooserResults'), document.getElementById('chooserImg'));    // we're ready to go now.    this.mainform.toolbar.unlockButton('save');    this.mainform.toolbar.unlockButton('new');    dbforms2.statusText('Ready.');    dbforms2_log.log('dbforms2 initialized');        // firebug breaks xmlhttprequests    if(console) {        console.warn("NOTE: Firebug 0.4 breaks XMLHttpRequests, when 'Options -> Show XMLHttpRequests' is enabled!");    }}
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/8d64aea180d848a53cb7c60e78215e4d2a1ea653/dbforms2.js/clean/webinc/plugins/dbforms2/dbforms2.js