function cmd(command)
{
var range = document.all.editor.contentWindow.document.selection.createRange();
range.execCommand(command);
}
