<!--
// funkce najeti na nahled sablony
function tb_over(elem)
{
var barvapozadi = "#F4830B";
el = document.getElementById(elem);
el.style.borderColor = barvapozadi;
el.style.cursor = 'hand'
}

function tb_out(elem)
{
el = document.getElementById(elem);
el.style.borderColor = "";
} 

function showMenu(menuid)
{  
  document.getElementById(menuid).style.visibility='visible';
}

function hideMenu(menuid)
{
  document.getElementById(menuid).style.visibility='hidden';
}

function popUp(URL, w, h) {
  var day = new Date();
  var id = day.getTime();
  var winLeft = (screen.width - w) / 2;
  var winTop = (screen.height - h) / 2;
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + w + ",height=" + h + ",left = " + winLeft + ",top = " + winTop + "');");
}

function emoticon(text) {
	text = ' ' + text + ' '; // da pred a za smile mezery
	if (document.novy_vzkaz.vzkaz.createTextRange && document.novy_vzkaz.vzkaz.caretPos) {
		var caretPos = document.novy_vzkaz.vzkaz.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		document.novy_vzkaz.vzkaz.focus();
	} else {
	document.novy_vzkaz.vzkaz.value  += text;
	document.novy_vzkaz.vzkaz.focus();
	}
}

/*
function storeCaret(textEl) {
	if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}*/
//-->

