// okna

function window1(a) {
window.open (a, 'char', 'toolbar=no, menubar=no, location=no, directories=no, scrollbars=no, resizable=yes, status=yes, width=650, height=490, top=10, left=10');
}

function window2(a) {
window.open (a, 'char', 'toolbar=no, menubar=no, location=no, directories=no, scrollbars=no, resizable=yes, status=yes, width=473, height=650, top=80, left=70');
}

function window3(a) {
window.open (a, 'char', 'toolbar=yes, menubar=yes, location=yes, directories=yes, scrollbars=yes, resizable=yes, status=yes, width=800, height=600, top=10, left=10');
}

function zmen_okno() {
w =document.images['img'].width+9;
h =document.images['img'].height+81;
window.resizeTo (w, h);
window.focus ();
}

function zmen_okno2() {
w =document.images['img'].width+69;
h =document.images['img'].height+106;

if (w > screen.availWidth - 20) w = screen.availWidth - 20;
if (h > screen.availHeight - 100) h = screen.availHeight - 100;

window.resizeTo (w, h);
window.focus();
}

//smajlici

function pridatznak(znak) {
	document.forms['prispevek'].prispevek.value += znak;
	document.forms['prispevek'].prispevek.blur();
	document.forms['prispevek'].prispevek.focus();
	}

// formulare

function clearvalue(a) {
  a.value='';
}

// pridat k oblibenym

function AddFavorite(linkObj,addUrl,addTitle)
{
  if (document.all && !window.opera)
  {
    window.external.AddFavorite(addUrl,addTitle);
    return false;
  }
  else if (window.opera && window.print)
  {
    linkObj.title = addTitle;
    return true;
  }
  else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
  {
    if (window.confirm('Přidat oblíbenou stránku jako nový panel?'))
    {
      window.sidebar.addPanel(addTitle,addUrl,'');
      return false;
    }
  }
  window.alert('Po potvrzení stiskněte CTRL-D,\nstránka bude přidána k vašim oblíbeným odkazům.');
  return false;
}