//otevirani noveho okna
var i=0;
var okno;
function MM_openBrWindow(theURL,winName,features) { //v1.2
if (i==1) okno.close(); okno=window.open(theURL,winName,features); i=1;
}
//funkce pro menu
function extendMenu(what){
obj=document.getElementById('sec'+what);
head = document.getElementById('head'+what);
if (obj.style.display=='none'){
obj.style.display='';
}
else{
obj.style.display='none';
}
}
// load the plugin files
HTMLArea.loadPlugin("TableOperations");

var editor = null;
function initEditor() {
// create an editor for the "ta" textbox
editor = new HTMLArea("sText");

// register the TableOperations plugin with our editor
editor.registerPlugin(TableOperations);

editor.generate();
return false;
}

function insertHTML() {
var html = prompt("Enter some HTML code here");
if (html) {
editor.insertHTML(html);
}
}

function highlight() {
editor.surroundHTML('<span style="background-color: yellow">', '</span>');
}
