function initToolBar(ed,myEditor)
{
	var eb = document.all.editbar;
	if (ed!=null) {
		eb._editor = window.frames[myEditor];
	}
}

function doFormat(what)
{
	var eb = document.all.editbar;
	eb._editor.execCommand(what, arguments[1]);
}

function swapMode()
{
	var eb = document.all.editbar._editor;
	eb.swapModes();
}

function create()
{
	var eb = document.all.editbar;
	eb._editor.newDocument();
}

function newFile()
{
	create();
}

