<!--

/**
 *
 * Function Document (engine) from cybertec.3open.com
 * Copyright 2005 Miroslav Kovar,
 * all rights reserved.
 *
 * version 1.5.2
 *
 */

//Otevre novr okno nahrada targetu
function openwindow (url)
{
  opener = window.open (url, 'OpenNewWindow');
  pener.document.focus();
}

//kontroluje board
function check (form)
{
  if (form.text.value == false)
  {
    alert('vyplňte text zprávy!');
    form.text.focus();
    document.forms.conatctform.text.style.border = '1px #FF500D solid';
    return false;
  }
  else if (form.name.value == false)
  {
    alert('vyplňte Vaše jméno!');
    form.name.focus();
    document.forms.conatctform.name.style.border = '1px #FF500D solid';
    return false;
  }
  else if (form.email.value == false)
  {
    alert('vyplňte Váši e-mailovou adresu!');
    form.email.focus();
    document.forms.conatctform.email.style.border = '1px #FF500D solid';
    return false;
  }
  else {
    return true;
  }
}

//cursor
function cursor (type)
{
  if (type)
  {
    document.getElementById('text').style.cursor=type;
  }
  else {
    document.getElementById('text').style.cursor='';
  }
}

function galery (pat, name)
{
 var img = '';
 
 img = name+".jpg";
 
 galerys = window.open ('', 'zoom', 'left=100, top=100, width=800, height=600,'+
                        'toolbar=no, location=no, directories=no, status=no,'+
                        'menubar=no, scrollbars=no, resizable=no, copyhystory=no');

 with (galerys.document)
 {
  open ();
   write ('<?xml version="1.0" encoding="iso-8859-2"?>\n');
   write ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n');
   write ('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">\n');
   write ('<head>\n\n');
   write (' <title>galery - '+name+'</title>\n\n');
   write (' <meta http-equiv="content-type"  content="application/xhtml+xml; charset=iso-8859-2" />\n');
   write (' <meta http-equiv="pragma"        content="no-cache" />\n');
   write (' <meta http-equiv="cache-control" content="no-cache" />\n');
   write (' <meta http-equiv="expires"       content="-1" />\n\n');
   write ('<style type="text/css">body{margin:0px;padding:0px;overflow:hidden;}img{border:0px}</style>');
   write ('</head>\n');
   write ('<body>\n');
   write ('<a href="javascript:close();" title="close">');
   write ('<img src="img/'+pat+'/'+img+'" alt="'+name+'" name="prvni" />\n');
   write ('</a>\n');
   write ('</body>\n');
   write ('</html>');
  close ();
 }
}
//-->

