rem: var obj			= document.getElementById(bbcode_button_objects[i]); 
add: var obj			= FA.getObj(bbcode_button_objects[i]); 
context: function bbcodex_button_click(i) {		var obj			= document.getElementById(bbcode_button_objects[i]);	/* Get this context's editor */	var editor		= bbcode_button_objects[i].split('_');	editor			= document.getElementById(editor[sizeof(editor)-1]);	/* Get selected text, if any */	var selection	= get_selection(editor);		/* Get the value of a select option if it is a select */	var value		= sizeof(obj) ? obj[obj.selectedIndex].value : null;		/* If we are using a select box, and the value of the selected index is null */	if(sizeof(obj)) {		if(obj[obj.selectedIndex] && obj[obj.selectedIndex].value == '') {						/* Return nothing, but focus the editor */			return editor.focus();		}	}		/* Has this person highlighted something? */	if(selection) {				replace_selection(editor, tag_open(obj.name, value), tag_close(obj.name), selection);		/* If there is no selection */	} else {				var open_tag	= tag_open(obj.name, value);		var closed_tag	= tag_close(obj.name);				/* Add the opening tag to the object */		obj.tag			= open_tag;		obj.closed_tag	= closed_tag;				/* Check to see if this tag is open or not */		tag_is_open		= get_open_tag(obj, value);				/* If the tag is already open, close it */		if(tag_is_open) {						/* Close the current tag, and any others before it that haven't been closed */			close_tag(obj, editor);		/* If we are opening this tag */			} else {						/* Add the opening value to the editor */			editor.value	+= open_tag;						/* Change the look of the button itself */			if(value == null || value == '')				obj.value	+= '*';			var new_obj		= new Array(obj.tag, obj.closed_tag, obj)						/* Add this tag to the open tags array */			array_push(bbcode_opentags, new_obj);		}	}	/* Focus the textarea */	editor.focus();}
meta: 8193	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8193/d55368118dec4a8f237e8e432dd97304d21083d6/bbcode.js/buggy/trunk/upload/templates/Descent/bbcode.js