richedit = function(textid, rtewidth, rteheight, toolbarName) {
	this.textid = textid;
	
	eval("var editor = CKEDITOR.instances." + textid);
	if (editor) {
		CKEDITOR.remove(editor);
	}
	if (toolbarName=="User") {
	 CKEDITOR.replace(textid, {
		// toolbar : toolbarName,
		forcePasteAsPlainText : true,
		skin : 'kama'
		});
	} else {
	 CKEDITOR.replace(textid, {
		// toolbar : toolbarName,
		skin : 'kama',
		customConfig : '/js/ckeditor/config_admin.js'
		});
	}
	
	this.getContent = function()
	{
		eval("var html = CKEDITOR.instances." + this.textid + ".getData()");
		return html;
	};
	
	this.focus = function()
	{
		eval("var editor = CKEDITOR.instances." + this.textid);
		editor.focus();
	}
};

