

//include("/jscripts/htmlarea/htmlarea.js");

	var editor = null;

	function editor_generate(body_text) {
		editor = new HTMLArea(body_text);
		var config = editor.config; // this is the default configuration

		// to keep relative links relative:
		config.relativeURL = true;

		// to change the base href of the editor:
	//	config.baseURL = "</";

		// Choose buttons/functionality [refer to htmlarea.js for instructions]
		/*config.toolbar = [
			['formatblock', 'space','fontname', 'space', "bold", "italic", "underline", "separator", "strikethrough", "subscript", "superscript", "separator", "copy", "cut", "paste", "separator", "lefttoright", "righttoleft", "separator", "justifyleft", "justifycenter", "justifyright", "justifyfull"],
			["insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator", "inserthorizontalrule", "createlink", "insertimage", "inserttable", "htmlmode", "separator", "undo", "redo", "separator", "popupeditor", "separator", "about", "space", "space", "separator", "space", "space"]
			];*/

		editor.generate();	
	}

	function mycode(editor, id) {
		editor.surroundHTML('[code]', '[/code]');
	}


