rem: $(gQueryMimeType).value = theMimeType; 
add: $(kQueryMimeType).value = theMimeType; 
context: function submitForm(theForm, query, theMimeType, saveHistory) {    debug.print("submitForm: " + query);    if (! theForm) {        alert("null form in submitForm!");        return;    }    if (saveHistory) {        gHistory.add(query);    }    // sync the session, if it has changed    gSession.sync();    // copy query to the hidden element    $(gQueryInput).value = query;    //debug.print("submitForm: " + $F(gQueryInput));    // set the mime type    if (null != theMimeType) {        debug.print("submitForm: mimeType = " + theMimeType);        $(gQueryMimeType).value = theMimeType;    }    // TODO it would be nice to grey out the target frame, if possible    // post the form    theForm.submit();    // would like to disable buttons during post    // TODO what if the user hits the stop button?    // IE6 supports onstop, gecko does not    // onabort is not useful for this.    //gBufferTabs.disableButtons();    //Event.observe(parent.frames[1].window, "unload",    //function(e) { this.enableButtons(); }    //.bindAsEventListener(gBufferTabs));}
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/95f89c0957a3426915b61066d1c0793d3f8f49db/query.js/buggy/query.js