
var editor = new Array();
function initEditor(Name)
{
	if(!document.getElementById(Name)) {
		return;
	}
	editor[Name] = new HTMLArea(Name);
	var cfg = new HTMLArea.Config();
	cfg.pageStyle = "body { color: black; font-family: arial,sans-serif; font-size: 11px };address,pre,p,li,table {margin: 0 cm; margin-bottom: 0.001 pt;}"
	cfg.statusBar = false;
	cfg.sizeIncludesToolbar = false;

	cfg.toolbar = [
		[ "fontname", "space", "fontsize", "space",
		  "bold", "italic", "underline", "forecolor", "specialtags" ]
	];
	
	addMergingProperties(cfg);

	editor[Name].config = cfg;
	editor[Name].generate();
	return false;
}