ÿþf u n c t i o n   t y p _ z m i a n a   ( )   { 
     / / v a r   t y p   =   $ ( " # w s p _ 1 " ) . a t t r ( ' c h e c k e d ' ) 
     v a r   t y p   =   $ ( " # w s p _ 1 " ) . a t t r ( ' c h e c k e d ' )   ?   0   :   ( $ ( " # w s p _ 2 " ) . a t t r ( ' c h e c k e d ' )   ?   1   :   2 ) ; 
     i f   ( t y p   = =   2 )   { 
         $ ( " # w s p _ 1 " ) . a t t r ( ' c h e c k e d ' , t r u e ) ; 
         t y p   =   0 ; 
     } 
     i f   ( t y p   = =   0 )   $ ( ' # w s p o l p r a c a _ d i v ' ) . h i d e ( ' f a s t ' ) ; 
     e l s e   $ ( ' # w s p o l p r a c a _ d i v ' ) . s h o w ( ' f a s t ' ) ; 
 } 
 
 $ ( f u n c t i o n   ( )   { 
   v a r   a d i v   =   $ ( ' # a n k i e t a ' ) ; 
   
   i f   ( $ ( ' # a n k i e t a ' ) . s i z e   ( )   >   0 )   { 
     v a r   s t r   =   ' ' ; 
     s t r   + =   ' < f o r m   m e t h o d = " p o s t "   c l a s s = " a j a x f o r m "   i d = " f o r m 1 "   a c t i o n = " / a n k i e t a . p h p " > ' ; 
     s t r   + =   '     < i n p u t   t y p e = " h i d d e n "   n a m e = " a n k i e t a "   v a l u e = " 1 " / > ' ; 
     s t r   + =   '     < f i e l d s e t > ' ; 
     s t r   + =   '         < t a b l e   i d = " a n k i e t a _ t a b l e " > ' ; 
     s t r   + =   '             < t r > < t d   c o l s p a n = " 2 " > ' ; 
     s t r   + =   '                 < l a b e l   f o r = " t y p " > < s t r o n g > < e m > C z y   c h c i a Bb y   P a n /   P a n i   w z i   u d z i a B  w   o b c h o d a c h   9 0 . l e c i a   L O   i m .   S t e f a n a   {e r o m s k i e g o   j a k o : < / e m > < / s t r o n g > < / l a b e l > < b r / > ' ; 
     s t r   + =   '                 < i n p u t   i d = " w s p _ 1 "   t y p e = " r a d i o "   v a l u e = " 0 "   n a m e = " t y p "   t i t l e = " W y b i e r z   r o d z a j   w s p ó Bp r a c y "   c l a s s = " r e q u i r e d "   o n c l i c k = " t y p _ z m i a n a ( ) " > U c z e s t n i k < / i n p u t > < b r / > ' ; 
     s t r   + =   '                 < i n p u t   i d = " w s p _ 2 "   t y p e = " r a d i o "   v a l u e = " 1 "   n a m e = " t y p "   t i t l e = " W y b i e r z   r o d z a j   w s p ó Bp r a c y "   c l a s s = " r e q u i r e d "   o n c l i c k = " t y p _ z m i a n a ( ) " > U c z e s t n i k   i   w s p ó Bo r g a n i z a t o r < / i n p u t > ' ; 
     s t r   + =   '             < / t r > ' ; 
     s t r   + =   '             < t r > ' ; 
     s t r   + =   ' 	 	 	     < t d > < l a b e l   f o r = " i m i e " > I m i : < / l a b e l > < / t d > ' ; 
     s t r   + =   ' 	 	 	     < t d > < i n p u t   t y p e = " t e x t "   t i t l e = " t o   p o l e   j e s t   w y m a g a n e "   n a m e = " i m i e "   c l a s s = " r e q u i r e d "   v a l u e = " " / > < / t d > ' ; 
     s t r   + =   ' 	 	     < / t r > ' ; 
     s t r   + =   '             < t r > ' ; 
     s t r   + =   ' 	 	 	     < t d > < l a b e l   f o r = " n a z w i s k o " > N a z w i s k o : < / l a b e l > < / t d > ' ; 
     s t r   + =   ' 	 	 	     < t d > < i n p u t   t y p e = " t e x t "   t i t l e = " t o   p o l e   j e s t   w y m a g a n e "   n a m e = " n a z w i s k o "   c l a s s = " r e q u i r e d "   v a l u e = " " / > < / t d > ' ; 
     s t r   + =   ' 	 	     < / t r > ' ; 
     s t r   + =   '             < t r > ' ; 
     s t r   + =   ' 	 	 	     < t d > < l a b e l   f o r = " r o c z n i k " > R o c z n i k   u k o Dc z e n i a   s z k o By : < / l a b e l > < / t d > ' ; 
     s t r   + =   ' 	 	 	     < t d > < i n p u t   t y p e = " t e x t "   n a m e = " r o c z n i k "   v a l u e = " " / > < / t d > ' ; 
     s t r   + =   ' 	 	     < / t r > ' ; 
     s t r   + =   '             < t r > ' ; 
     s t r   + =   ' 	 	 	     < t d > < l a b e l   f o r = " t e l e f o n " > N u m e r   t e l e f o n u : < / l a b e l > < / t d > ' ; 
     s t r   + =   ' 	 	 	     < t d > < i n p u t   t y p e = " t e x t "   n a m e = " t e l e f o n "   t i t l e = " p o d a j   p r o s z   s w ó j   n u m e r   t e l e f o n u "   c l a s s = " r e q u i r e d "   v a l u e = " " / > < / t d > ' ; 
     s t r   + =   ' 	 	     < / t r > ' ; 
     s t r   + =   '             < t r > ' ; 
     s t r   + =   ' 	 	 	     < t d > < l a b e l   f o r = " e _ m a i l " > E - m a i l : < / l a b e l > < / t d > ' ; 
     s t r   + =   ' 	 	 	     < t d > < i n p u t   t y p e = " t e x t "   n a m e = " e _ m a i l "   v a l u e = " " / > < / t d > ' ; 
     s t r   + =   ' 	 	     < / t r > ' ; 
     s t r   + =   '             < t r > < t d   c o l s p a n = " 2 " > ' ; 
     s t r   + =   '         	 	 < d i v   i d = " w s p o l p r a c a _ d i v " > ' ; 
     s t r   + =   '                 < p > ' ; 
     s t r   + =   '                     < l a b e l   f o r = " a d r e s " > A d r e s : < / l a b e l > ' ; 
     s t r   + =   '                     < i n p u t   t y p e = " t e x t "   n a m e = " a d r e s "   v a l u e = " "   s t y l e = " w i d t h : 2 0 0 p x " / > ' ; 
     s t r   + =   '                 < / p > ' ; 
     s t r   + =   '                     D e k l a r o w a n a   w s p ó Bp r a c a : < b r / > ' ; 
     s t r   + =   '                     < u l > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " w _ f i n " > p o m o c   f i n a n s o w a < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " w _ e d " > p o m o c   p r z y   e d y c j i / w y d r u k u   m a t e r i a Bó w   j u b i l e u s z o w y c h < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " w _ a r t " > o p r a w a   a r t y s t y c z n a < / i n p u t > < / l i > ' ; 
     s t r   + =   '                     < / u l > < b r / > ' ; 
     s t r   + =   '                     O f e r o w a n e   u s Bu g i : < b r / > ' ; 
     s t r   + =   '                   < u l > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " u _ f o t o " > u s Bu g i   f o t o g r a f i c z n e < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " u _ p o l i " > u s Bu g i   p o l i g r a f i c z n e < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " u _ g a s t r o " > u s Bu g i   g a s t r o n o m i c z n e < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " u _ t r a n s " > u s Bu g i   t r a n s p o r t o w e < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > < i n p u t   t y p e = " c h e c k b o x "   n a m e = " u _ d o k " > u s Bu g i   w   z a k r e s i e   d o k u m e n t a c j i   s p o t k a n i a < / i n p u t > < / l i > ' ; 
     s t r   + =   '                         < l i > I n n e   u s Bu g i :   < i n p u t   t y p e = " t e x t "   n a m e = " u _ i n n e " / > < / l i > ' ; 
     s t r   + =   '                     < / u l > ' ; 
     s t r   + =   '               < / d i v > ' ; 
     s t r   + =   '           < / t d > < / t r > ' ; 
     s t r   + =   '         < / t a b l e > ' ; 
     s t r   + =   ' 	 	 < p > ' ; 
     s t r   + =   ' 	 	 	 < i n p u t   c l a s s = " s u b m i t "   t y p e = " s u b m i t "   v a l u e = " W y [l i j " / > ' ; 
     s t r   + =   ' 	 	 < / p > ' ; 
     s t r   + =   ' 	 < / f i e l d s e t > ' ; 
     s t r   + =   ' < / f o r m > ' ; 
     a d i v . h t m l ( s t r ) ; 
 	 j Q u e r y ( ) . a j a x S t a r t ( f u n c t i o n ( )   { 
 	 	 	 $ ( ' # w y n i k ' ) . h t m l ( ' < i m g   s r c = " i m a g e s / l o a d i n g . g i f "   a l t = " . . . " / >   T r w a   p r z e t w a r z a n i e . . . ' ) ; 
 	 } ) . a j a x S t o p ( f u n c t i o n ( )   { 
 	 	 	 $ ( ' # a n k i e t a ' ) . h t m l ( ' ' ) ; 
 	 } ) . a j a x E r r o r ( f u n c t i o n ( a ,   b ,   e )   { 
 	 	 	 / /   t h r o w   e ; 
 	 	 	 $ ( ' # w y n i k ' ) . h t m l ( ' B Bd :   ' + e ) ; 
 	 	 	 t h r o w   e ; 
 	 } ) ; 
 	 	 
 	 v a r   v   =   j Q u e r y ( " . a j a x f o r m " ) . v a l i d a t e ( { 
 	 	 	 s u b m i t H a n d l e r :   f u n c t i o n ( f o r m )   { 
 	 	 	 	 j Q u e r y ( f o r m ) . a j a x S u b m i t ( { 
 	 	 	 	 	 t a r g e t :   " # w y n i k " 
 	 	 	 	 } ) ; 
 	 	 	 } 
 	 } ) ; 
 	 
 	 $ ( " # w s p _ 1 " ) . a t t r ( ' c h e c k e d ' , t r u e ) ; 
 	 $ ( " # w s p _ 2 " ) . a t t r ( ' c h e c k e d ' , f a l s e ) ; 
 	 $ ( " # w s p o l p r a c a _ d i v " ) . f a d e O u t ( 1 0 0 ) ; 
   } 
 	 
 } ) ; 
 
 
