ÿþ< ! - -  
  
 f u n c t i o n   r e q u i r e d F i e l d s ( )  
 {  
     / /   V e r i f y   f o r m   r e q u i r e d   f i e l d s  
  
 	 v a r   e r r o r m e s s a g e   =   " "  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . f i r m a . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   F i r m a   \ n "  
         d o c u m e n t . f o r m u l a r . f i r m a . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . l a n d 1 . v a l u e . l e n g t h   < =   0 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   Z k r a t k a   z e m e   \ n "  
         d o c u m e n t . f o r m u l a r . l a n d 1 . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . p l z 1 . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   P S C   \ n "  
         d o c u m e n t . f o r m u l a r . p l z 1 . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . o r t 1 . v a l u e . l e n g t h   < =   2 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   M e s t o   \ n "  
         d o c u m e n t . f o r m u l a r . o r t 1 . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . t e l e f o n 1 . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   T e l e f o n   \ n "  
         d o c u m e n t . f o r m u l a r . t e l e f o n 1 . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . a n s p r e c h p e r s o n . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   K o n t a k t n í   o s o b a   \ n "  
         d o c u m e n t . f o r m u l a r . a n s p r e c h p e r s o n . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . l a n d 2 . v a l u e . l e n g t h   < =   0 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   Z k r a t k a   z e m e   \ n "  
         d o c u m e n t . f o r m u l a r . l a n d 2 . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . p l z 2 . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   P S C   \ n "  
         d o c u m e n t . f o r m u l a r . p l z 2 . f o c u s ( ) ;  
 	 }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . o r t 2 . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   M e s t o   \ n "  
         d o c u m e n t . f o r m u l a r . o r t 2 . f o c u s ( ) ;  
 	 }  
  
       i f   ( d o c u m e n t . f o r m u l a r . k o l l i a n z . v a l u e . l e n g t h   = =   " " )  
       {  
             e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   K o l l i   m e n n y i s é g   \ n "  
         d o c u m e n t . f o r m u l a r . k o l l i a n z . f o c u s ( ) ;  
       }  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . g e w i c h t . v a l u e . l e n g t h   = =   " " )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   H m o t n o s t   \ n "  
         d o c u m e n t . f o r m u l a r . g e w i c h t . f o c u s ( ) ;  
 	 }  
  
  
  
 	 i f   ( d o c u m e n t . f o r m u l a r . e m a i l . v a l u e . l e n g t h   < =   3 )  
 	 {  
 	 	 e r r o r m e s s a g e   =   e r r o r m e s s a g e + "     ·   E m a i l   \ n "  
         d o c u m e n t . f o r m u l a r . e m a i l . f o c u s ( ) ;  
 	 }  
  
         i f   ( d o c u m e n t . f o r m u l a r . e m a i l . v a l u e . i n d e x O f ( ' @ ' ) = = - 1   | |   d o c u m e n t . f o r m u l a r . e m a i l . v a l u e . i n d e x O f ( ' . ' ) = = - 1   | |   d o c u m e n t . f o r m u l a r . e m a i l . v a l u e . i n d e x O f ( "   " )   ! =   - 1 )  
         {  
         e r r o r m e s s a g e   =   e r r o r m e s s a g e   +   "     ·   K o n e c n á   e - m a i l o v á   a d r e s a   m u s í   o b s a h o v a t   ' @ '   ( z a v i n á c )     a   ' . '   ( b o d k u ) ,   n e s m i e   o b s a h o v a t   m e d z e r u .   \ n "  
         d o c u m e n t . f o r m u l a r . e m a i l . f o c u s ( ) ;  
         }  
  
 	 i f   ( e r r o r m e s s a g e . l e n g t h   >   0 )  
 	 {  
 	 	 a l e r t ( " C h y b í   v y p l n i t   j e at e   n á s l e d u j í c í   ú d a j e :   \ n " + e r r o r m e s s a g e )  
 	 }  
  
     e l s e  
 	 {  
         w i n   =   w i n d o w . o p e n ( " h t t p : / / w w w . g w - w o r l d . c z / g w t o o l s / F o r m s / c z / m a i l _ s e n d i n g . h t m " , " s e n d m a i l " , " w i d t h = 6 0 0 , h e i g h t = 2 7 0 , t o o l b a r = n o , d i r e c t o r i e s = n o , s t a t u s = n o , s c r o l l b a r s = n o , r e s i z a b l e = n o , l o c a t i o n = n o , m e n u b a r = n o " ) ;  
 	     d o c u m e n t . f o r m u l a r . s u b m i t ( ) ;  
 	 }  
  
 	  
 }  
  
 - - >  
 
