﻿function noenter() {
  return !(window.event && window.event.keyCode == 13); 
}

function skontroluj_cislo(cislo)
{
  re = /^[0-9]{1,}[.]{0,1}[0-9]{0,}[E]{0,1}[+,-]{0,1}[0-9]{0,}$/;
  return cislo.search(re) == 0;
}

function check1(text)
{
  if (!skontroluj_cislo(document.getElementById('kvantita1').value) && !skontroluj_cislo(document.getElementById('kvantita2').value))
  {
    alert(text);
	document.getElementById('kvantita1').focus();
    return false;
  }
 }
