function addBookmark(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
}

function okno(soubor,sirka,vyska)  {
	window.open(soubor,'','toolbar=no,scrollbars=yes,location=no,status=no,width='+sirka+',height='+vyska+',resizable=1')
}

function Aktivni(id)  {
  document.getElementById(id).className = "aktivni";
}

function Deaktivni(id)  {
  document.getElementById(id).className = "";
}

function Vyhledavani(id)  {
  if (document.getElementById(id).value == "vyhledávání") {
    document.getElementById(id).value="";
  }
}

function Upraveno(id, hodnota)  {
  document.getElementById(id).className = "upraveno";
  if (document.getElementById(id).value == hodnota) {
    document.getElementById(id).value = hodnota+": ";
  }
}

function popupOdkazy() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick = function() { return !window.open(this.href); }
    }
  }
  return true;
}
window.onload = popupOdkazy;

