home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / JanaSetup.exe / admin / pruefen_js / loggfiles.js < prev    next >
Encoding:
Text File  |  2006-05-08  |  770 b   |  48 lines

  1. function send()
  2. {
  3.     if (pruefen() == true)
  4.         document.formular.submit();
  5. }
  6.  
  7. /**/
  8.  
  9. function pruefen()
  10. {
  11.     var fu = new Array('',
  12.  
  13.     txt[25][4],
  14.     txt[18][7],
  15.     txt[25][5],
  16.     txt[25][6],
  17.     txt[25][7],
  18.     txt[25][8],
  19.     txt[25][9],
  20.     txt[25][10],
  21.     txt[25][11],
  22.     txt[25][15],
  23.     txt[25][16],
  24.     txt[18][17],
  25.     txt[18][21],
  26.     txt[18][10],
  27.     txt[25][12],
  28.     txt[25][13],
  29.  
  30.     '');
  31.  
  32.     var anz = fu.length - 1;
  33.  
  34.     for (i = 1; i < anz; i++)
  35.     {
  36.         var fe = document.forms[0].elements[i].value;
  37.  
  38.         if ((fe != -2) && (fe != -1) && ((fe.match(/\D/) != null) || (fe < 1) || (fe > 2097152)))
  39.         {
  40.             alert(txt[19][9] + fu[i] + txt[25][14]);
  41.             document.forms[0].elements[i].select();
  42.             document.forms[0].elements[i].focus();
  43.             return false;
  44.         }
  45.     }
  46.  
  47.     return true;
  48. }