rem:  var currDatabase = document.getElementById(g_cq_eval_list_id).value; debug("submitForm: currDatabase = " + currDatabase); setCookie(g_cq_eval_list_id, currDatabase, 30); 
add:  if (false) { disableButtons(true);       var fSet = getFrameset(); var qFrame = getQueryFrame(); var rFrame = getResultFrame(); if (!(rFrame && qFrame)) { debug("null queryFrame or resultFrame!"); } else { var f = function () { disableButtons(false) }; rFrame.onload = f; rFrame.onunload = f; rFrame.onabort = f; qFrame.onabort = f; fSet.onabort = f; debug("resultFrame.onload = " + rFrame.onload); } }   var currEval = document.getElementById(g_cq_eval_list_id).value; debug("submitForm: currEval = " + currEval); setCookie(g_cq_eval_list_id, currEval, 30); 
context: function submitForm(theForm, theInput, theMimeType) {    if (! theForm) {        alert("null form in submitForm!");        return;    }    refreshBufferList(g_cq_buffer_current, "submitForm");    // copy the selected database to the session cookie    var currDatabase = document.getElementById(g_cq_eval_list_id).value;    debug("submitForm: currDatabase = " + currDatabase);    setCookie(g_cq_eval_list_id, currDatabase, 30);    // copy current buffer to hidden element    document.getElementById(g_cq_query_input).value = theInput;    debug("submitForm: "+document.getElementById(g_cq_query_input).value);    // set the mime type    if (theMimeType != null) {        debug("submitForm: mimeType = " + theMimeType);        document.getElementById(g_cq_query_mime_type).value = theMimeType;    }    // post the form    theForm.submit();    return;}
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/0e5f0b3da8533c199502a5e5d1c14981dffa3634/cq.js/buggy/cq.js