<script type="text/javascript">
function validateRange(elname, minval,maxval)
 {
 var val=document.getElementById(elname).value;
 console.log(elname,minval,maxval,val);
 if (val==null || val=="" || isNaN(val)|| val<minval || val>maxval)
   {
   alert("Skaičius turi būti tarp "+minval+" ir "+maxval+"!");
   return false;
   }
 }
</script>

