        function poslatOdkaz()
        {
          email_addr = prompt("Zadejte e-mail, kam chcete odkaz zaslat:", "");
          if (!checkEmail(email_addr)) {
            alert('Špatný formát adresy!');
            return;
          }
          document.getElementById('email_k_poslani_odkazu').value = email_addr;
          document.getElementById('formular_emailem').submit();
          
          return;
        }
        
        function checkEmail(email) {
        
          var str = new String(email);
          var isOK = true;
          rExp = /[!\"£$%\^&*()-+=<>,\'#?\\|¬`\/\[\]]/
          if( rExp.test(str) )
            isOK = false;
          if( str.indexOf('.') == -1 || str.indexOf('@') == -1 )
            isOK = false;
          if( str.slice(str.lastIndexOf('.')+1,str.length).length < 2 )
            isOK = false;
          if( str.slice(0,str.indexOf('@')).length < 1 )
            isOK = false;
          if( str.slice(str.indexOf('@')+1,str.lastIndexOf('.')).length < 1 )
            isOK = false;
        
          return isOK;
        }