Facebook
From Dedo, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 217
  1. function Sprawdz_d(form)
  2.         {
  3.                 if(document.getElementById('nazw').value.lengh <3)
  4.                         {
  5.                        
  6.                         alert("Pole Nazwisko musi zawierać co najmniej trzy znaki");
  7.                         form.nazw.focus();
  8.                         return false;
  9.                        
  10.                         }
  11.                         if (document.getElementById('imie').value.lengh <2)
  12.                         {
  13.                        
  14.                         alert("Pole Imie musi zawierać co najmniej dwa znaki");
  15.                         form.imie.focus();
  16.                         return false;
  17.                        
  18.                         }
  19.                        
  20.                         if (document.getElementById('zawod').value == "")
  21.                         {
  22.                        
  23.                         alert("Pole Zawód musi być wypełnione");
  24.                         form.imie.focus();
  25.                         return false;
  26.                        
  27.                         }
  28.                        
  29.                         return true
  30.         }