rem: alert("cqExport: preserving selected database " + oldDatabase); 
context: function cqExport(theForm) {    // export store the buffer state into the value of form element g_cq_uri    // if the g_cq_uri does not exist, we must create it in one XQuery,    // then populate it in another    // the simplest way is to create temporary form elements, and submit them    var theUri = document.getElementById(g_cq_uri).value;    if (theUri) {        var theQuery =            'xdmp:document-insert("' + theUri + '",'            + '<' + g_cq_buffers_id + ' id="' + g_cq_buffers_id + '">';        for (var i = 0; i < g_cq_buffers; i++) {            theQuery += '<' + g_cq_buffer_basename + '>'                + escape(getBuffer(i).value)                + '</' + g_cq_buffer_basename + '>'                + "\n";        } // for buffers        theQuery += '</' + g_cq_buffers_id + '>)'            + ', "exported ' + theUri + '"';        // set the current database to null,        // so we save to the default db        theDatabase = document.getElementById(g_cq_database_list);        oldDatabase = theDatabase.value;        theDatabase.value = null;        submitForm(theForm, theQuery, "text/html");        // TODO restore the user's chosen db        alert("cqExport: preserving selected database " + oldDatabase);        theDatabase.value = oldDatabase;    } // if theUri} // cqExport
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/7713533e1a5035671ad88b70eaf1a71be6c5fab3/cq.js/clean/cq.js