rem: e_textarea = d.getElementById(textarea_id); 
add: e_textarea = FA.getObj(textarea_id); 
context: function switch_editor_type(switch_to, curr_type, textarea_id, iframe_id) {		switchto = switch_to;		// get the textare which will hold values	e_textarea = d.getElementById(textarea_id);	// if everything is good and this isn't Opera	if(e_textarea && !d.is_opera) {				// some checks		if((switch_to == 'bbcode' && curr_type == 'bbcode') || (switch_to == 'wysiwyg' && curr_type == 'wysiwyg')) {			return false;		}		// if we are switching to bbcode		if(switch_to == 'bbcode' && curr_type == 'wysiwyg') {			message_value = get_iframe_text(); // get the iframe value			if(wysiwyg_editor) {				wysiwyg_editor.style.display = 'none'; // hide the wysiwyg buttons			}		}		// if we are switching to wysiwyg		if(switch_to == 'wysiwyg' && curr_type == 'bbcode') {			bbcode_buttons.style.display = 'none'; // hide the bbcode buttons			message_value = textarea_value(e_textarea); // get the textarea value		}				var query_string = '';				// add the textarea/iframe value to the query string		if(message_value != '') {			query_string += '&message=' + escape_str(message_value);		}				// if we have the forum id and it's semi-valid		if(forum_id && parseInt(forum_id) > 0) {			query_string += '&forum_id=' + parseInt(forum_id);		}				var k4_http = FAHttpRequestsFactory.createInstance();		k4_http.Request('POST', 'misc.php?act=switch_editor&switchto=' + switch_to + '&use_ajax=1' + query_string, (function(){FAHTTP.loadingState(editorcodex,'top');}), false, (function(){createEditor(k4_http);}));	}}
meta: 8193	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8193/d55368118dec4a8f237e8e432dd97304d21083d6/http_requests.js/buggy/trunk/upload/js/http_requests.js