function chat(iName, iWidth, iHeight) // pouze pro chat
{
	var pURL = iName;
	pInfo = 'toolbar=0,';
	pInfo += 'location=0,';
	pInfo += 'directories=0,';
	pInfo += 'status=0,';
	pInfo += 'menubar=0,';
	pInfo += 'scrollbars=1,';
	pInfo += 'resizable=0,';
	pInfo += 'width=' + iWidth + ',';
	pInfo += 'height=' + iHeight;
	window.open(pURL, 'bigPop', pInfo);
}

document.write ('<img src="http://toplist.cz/dot.asp?id=812699&amp;http='+escape(document.referrer)+'&amp;wi='+escape(window.screen.width)+'&he='+escape(window.screen.height)+'&amp;cd='+escape(window.screen.colorDepth)+'&amp;t='+escape(document.title)+'" style="display: none;" />');

function Smile(what)
{
  document.forms.komentare.obsah_komentare.focus();
  document.forms.komentare.obsah_komentare.value=document.forms.komentare.obsah_komentare.value+what;
}

function kontrola()
      {
      if (document.getElementById('autor_komentare').value=='' || document.getElementById('autor_komentare').value==' ' || document.getElementById('autor_komentare').value=='  ')
      {
      alert("Vyplňte prosím vaše jméno.");
      document.getElementById('autor_komentare').focus();
      return false;
      }
      if (document.getElementById('obsah_komentare').value=='' || document.getElementById('obsah_komentare').value==' ' || document.getElementById('obsah_komentare').value=='  ')
      {
      alert("Vyplňte prosím obsah komentáře.");
      document.getElementById('obsah_komentare').focus();
      return false;
      }
      if (document.getElementById('antispam').value=='' || document.getElementById('antispam').value==' ' || document.getElementById('antispam').value=='  ')
      {
      alert("Vyplňte ochranu proti spamu.");
      document.getElementById('antispam').focus();
      return false;
      }
      if (document.getElementById('antispam').value=='ne')
      {
      minichat.submit();
      } else {
      alert('Některá data nejsou vyplněna nebo jsou vyplněna nesprávně.');
      return false;
      }
      }
      
function heslo(){
      if (document.komentare.autor_komentare.value == "hadl")
      {
      heslo = prompt("Pro vložení příspěvku prosím zadejte heslo administrátora hadl", "");
      return false;
      }
      }
      
function link()
      {
      var link;
      link = prompt("Vložte kompletní adresu, kterou chcete přidat:", "http://");
      if (link.length < 10 && link.indexOf('http://')) { alert("Adresa není korektní."); } else { document.forms.komentare.obsah_komentare.value=document.forms.komentare.obsah_komentare.value+'[odkaz]'+link+'[/odkaz] '; document.forms.komentare.obsah_komentare.focus(); }
      }

function hideAdvert() {
  var advert = document.getElementById('advert');
  if (advert.style.display == 'block') { advert.style.display = 'none' } else { advert.style.display = 'block' }
  }
