home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / internet / Cybex / scripts / vyhledavani.js < prev   
Encoding:
Text File  |  1999-08-27  |  882 b   |  30 lines

  1. function chkSearch(thisform)
  2. {
  3.   if (!isWhitespace(thisform.kod.value))
  4.     {
  5.     if (!isInteger(thisform.kod.value))
  6.       {
  7.       alert ("\nK≤d produktu musφ b²t Φφslo") ;
  8.       thisform.kod.focus() ;
  9.       return false;
  10.       }
  11.     }  
  12.   if (!isWhitespace(thisform.cena.value))
  13.     {
  14.     if (!isInteger(thisform.cena.value))
  15.       {
  16.       alert ("\nMaximßlnφ cena musφ b²t celΘ Φφslo") ;
  17.       thisform.cena.focus() ;
  18.       return false;
  19.       }
  20.     }  
  21.   if (isWhitespace(thisform.produkt.value) && isWhitespace(thisform.partnumber.value) && isWhitespace(thisform.kod.value) && isWhitespace(thisform.cena.value) && thisform.vyrobce.selectedIndex==0 && thisform.druh.selectedIndex==0)
  22.       {
  23.       alert ("\nMusφte zadat alespo≥ jedno kritΘrium pro vyhledßvßnφ") ;
  24.       thisform.produkt.focus() ;
  25.       return false;
  26.       }
  27.   return true    
  28.   
  29. }
  30.