ÿþ 
 f u n c t i o n   g e t E l e m e n t ( i d )  
 {  
 	 i f   ( d o c u m e n t . a l l )  
 	 	 r e t u r n   d o c u m e n t . a l l [ i d ] ;  
 	 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d )  
 	 	 r e t u r n   d o c u m e n t . g e t E l e m e n t B y I d ( i d ) ;  
 	 e l s e  
 	 	 r e t u r n   f a l s e ;  
 }  
  
  
 f u n c t i o n   s e t B u t t o n S t y l e ( b u t t o n , s t a t e , s i z e )  
 {  
 	 v a r   i s O b j e c t   =   t y p e o f   b u t t o n   = =   ' o b j e c t ' ;  
 	  
     	 s t y l e   =   i s O b j e c t   ?   b u t t o n . s t y l e   :   e v a l ( b u t t o n + " . s t y l e " ) ;  
  
 	 v a r   i m a g e N a m e   =   s i z e   >   0   & &   s i z e   <   4   ?   " b u t t o n 0 "   +   s i z e   :   " b u t t o n 0 1 " ;  
         s t y l e . b a c k g r o u n d I m a g e   =   s t a t e = = ' o n '   ?   " u r l ( " + i m a g e N a m e + " _ b . g i f ) "   :   " u r l ( " + i m a g e N a m e + " _ a . g i f ) " ;  
 }  
  
  
 / /  
 / /   O t w i e r a   n o w e   o k n o   p o p u p .  
 / /  
 f u n c t i o n   o p e n P o p u p W i n d o w ( s t r N a m e ,   s t r L o c a t i o n ,   w i d t h ,   h e i g h t )  
 {  
 	 i f   (   s t r L o c a t i o n . i n d e x O f ( " p o p u p = 1 " ) < 0   )  
 	 {  
 	 	 / /   d o d a j   p o p u p = 1   d o   U R L ' a  
 	 	 i f   (   s t r L o c a t i o n . i n d e x O f ( ' ? ' )   > = 0   )  
 	 	 	 s t r L o c a t i o n   + =   " & p o p u p = 1 " ;  
 	 	 e l s e  
 	 	 	 s t r L o c a t i o n   + =   " ? p o p u p = 1 " ;  
 	 }  
 	 v a r   p o p u p W i n d o w   =   w i n d o w . o p e n ( s t r L o c a t i o n ,   s t r N a m e ,   ' t o o l b a r = n o ,   l o c a t i o n = n o ,   h e i g h t = ' + h e i g h t + ' ,   w i d t h = ' + w i d t h + ' ,   ' +  
 	 	 ' s t a t u s = n o ,   m e n u b a r = n o ,   s c r o l l b a r s = y e s ,   r e s i z a b l e = y e s ,   t o p = '   +  
 	 	 ( w i n d o w . s c r e e n . h e i g h t / 2   -   h e i g h t / 2 )   +   ' ,   l e f t = '   +   ( w i n d o w . s c r e e n . w i d t h / 2   -   w i d t h / 2 ) ) ;  
 	 / / s e t T i m e o u t ( " p o p u p W i n d o w . f o c u s ( ) " ,   1 0 0 0 ) ;  
 	 p o p u p W i n d o w . f o c u s ( ) ;  
 	 r e t u r n   p o p u p W i n d o w ;  
 }  
  
 / /  
 / /   O t w i e r a   n o w e   o k n o   p o p u p .   U z y w a n e   p r z e z   m o d u l   l i n k m a n .  
 / /  
 f u n c t i o n   l i n k m a n O p e n P o p u p ( w i n d o w N a m e ,   l o c a t i o n ,   o p t i o n s )  
 {  
 	 i f   (   l o c a t i o n . i n d e x O f ( " p o p u p = 1 " ) < 0   )  
 	 {  
 	 	 / /   d o d a j   p o p u p = 1   d o   U R L ' a  
 	 	 i f   (   l o c a t i o n . i n d e x O f ( ' ? ' )   > = 0   )  
 	 	 	 l o c a t i o n   + =   " & p o p u p = 1 " ;  
 	 	 e l s e  
 	 	 	 l o c a t i o n   + =   " ? p o p u p = 1 " ;  
 	 }  
 	 v a r   p o p u p W i n d o w   =   w i n d o w . o p e n ( l o c a t i o n ,   w i n d o w N a m e ,   o p t i o n s ) ;  
 	 / / s e t T i m e o u t ( " p o p u p W i n d o w . f o c u s ( ) " ,   1 0 0 0 ) ;  
 	 p o p u p W i n d o w . f o c u s ( ) ;  
 	 r e t u r n   p o p u p W i n d o w ;  
 }  
  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
  
 / /  
 / /   F u n k c j e   z w i z a n e   z   p a r s o w a n i e m   i   f o r m a t o w a n i e m   d a t y .  
 / /  
  
 / /  
 / /   D o d a j e   d n i   d o   d a t y .  
 / /  
 f u n c t i o n   a d d D a y s T o D a t e ( d a t e ,   n u m O f D a y s )  
 {  
 	 r e t u r n   n e w   D a t e ( d a t e . g e t F u l l Y e a r ( ) ,   d a t e . g e t M o n t h ( ) ,   d a t e . g e t D a t e ( ) + n u m O f D a y s ) ;  
 }  
  
 / /  
 / /   Z a m i e n i a   s t r i n g   w   f o r m a c i e   Y Y Y Y - M M - D D   n a   o b i e k t   t y p u   D a t e .  
 / /  
 f u n c t i o n   p a r s e D a t e ( d a t e S t r i n g )  
 {  
 	 v a r   s t r   =   n e w   S t r i n g ( d a t e S t r i n g ) ;  
 	 v a r   a r r a y   =   s t r . s p l i t ( ' - ' ) ;  
 	 i f   ( a r r a y . l e n g t h ! = 3 )  
 	 	 r e t u r n   n u l l ;  
 	 v a r   y e a r   =   a r r a y [ 0 ] ;  
 	 v a r   m o n t h   =   a r r a y [ 1 ] . c h a r A t ( 0 ) = = ' 0 '   ?   p a r s e I n t ( a r r a y [ 1 ] . s u b s t r ( 1 ,   1 ) )   :   p a r s e I n t ( a r r a y [ 1 ] ) ;  
 	 v a r   d a y   =   a r r a y [ 2 ] . c h a r A t ( 0 ) = = ' 0 '   ?   p a r s e I n t ( a r r a y [ 2 ] . s u b s t r ( 1 ,   1 ) )   :   p a r s e I n t ( a r r a y [ 2 ] ) ;  
 	 v a r   d a t e   =   n e w   D a t e ( y e a r ,   m o n t h - 1 ,   d a y ) ;  
 	 i f   ( i s N a N ( d a t e ) )  
 	 	 r e t u r n   n u l l ;  
 	 d a t e . s e t H o u r s ( 0 ) ;  
 	 d a t e . s e t M i n u t e s ( 0 ) ;  
 	 d a t e . s e t S e c o n d s ( 0 ) ;  
 	 d a t e . s e t M i l l i s e c o n d s ( 0 ) ;  
 	 r e t u r n   d a t e ;  
 }  
  
 / /  
 / /   Z a m i e n i a   o b i e k t   D a t e   n a   s t r i n g   w   f o r m a c i e   Y Y Y Y - M M - D D .  
 / /  
 f u n c t i o n   f o r m a t D a t e ( d a t e )  
 {  
 	 r e t u r n   d a t e . g e t F u l l Y e a r ( )   +   " - "   +   f o r m a t D a t e P a r t ( d a t e . g e t M o n t h ( ) + 1 )   +  
 	 	 " - "   +   f o r m a t D a t e P a r t ( d a t e . g e t D a t e ( ) ) ;  
 }  
  
 / /  
 / /   F u n k c j a   p o m o c n i c z a   d l a   f u n c k c j i   f o r m a t D a t e ( ) .   D o d a j e   z n a k   ' 0 '   d o   c z e s c i   d a t y .  
 / /  
 f u n c t i o n   f o r m a t D a t e P a r t ( v a l u e )  
 {  
 	 v a r   v   =   S t r i n g ( v a l u e ) ;  
 	 r e t u r n   v . l e n g t h = = 1   ?   " 0 " + v   :   v ;  
 }  
  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
  
 / *  
  
 f u n c t i o n   l i b _ b w c h e c k ( ) {   / / B r o w s e r c h e c k   ( n e e d e d )  
  
 	 t h i s . v e r = n a v i g a t o r . a p p V e r s i o n  
  
 	 t h i s . a g e n t = n a v i g a t o r . u s e r A g e n t  
  
 	 t h i s . d o m = d o c u m e n t . g e t E l e m e n t B y I d ? 1 : 0  
  
 	 t h i s . o p e r a 5 = t h i s . a g e n t . i n d e x O f ( " O p e r a   5 " ) > - 1  
  
 	 t h i s . o p e r a 6 = t h i s . a g e n t . i n d e x O f ( " O p e r a   6 " ) > - 1      
  
 	 t h i s . i e 5 = ( t h i s . v e r . i n d e x O f ( " M S I E   5 " ) > - 1   & &   t h i s . d o m   & &   ! t h i s . o p e r a 5   & &   ! t h i s . o p e r a 6 ) ? 1 : 0 ;    
  
 	 t h i s . i e 6 = ( t h i s . v e r . i n d e x O f ( " M S I E   6 " ) > - 1   & &   t h i s . d o m   & &   ! t h i s . o p e r a 5   & &   ! t h i s . o p e r a 6 ) ? 1 : 0 ;  
  
 	 t h i s . i e 4 = ( d o c u m e n t . a l l   & &   ! t h i s . d o m   & &   ! t h i s . o p e r a 5 ) ? 1 : 0 ;  
  
 	 t h i s . i e = t h i s . i e 4 | | t h i s . i e 5 | | t h i s . i e 6  
  
 	 t h i s . m a c = t h i s . a g e n t . i n d e x O f ( " M a c " ) > - 1  
  
 	 t h i s . n s 6 = ( t h i s . d o m   & &   p a r s e I n t ( t h i s . v e r )   > =   5 )   ? 1 : 0 ;    
  
 	 t h i s . n s 4 = ( d o c u m e n t . l a y e r s   & &   ! t h i s . d o m ) ? 1 : 0 ;  
  
 	 t h i s . b w = ( t h i s . i e 6   | |   t h i s . i e 5   | |   t h i s . i e 4   | |   t h i s . n s 4   | |   t h i s . n s 6   | |   t h i s . o p e r a 5   | |   t h i s . o p e r a 6 ) ;  
  
 	 r e t u r n   t h i s  
  
 }  
  
 v a r   b w = n e w   l i b _ b w c h e c k ( ) ;  
  
 * /  
  
  
 
