ÿþ 
 	 f u n c t i o n   a b r e J a n e l a ( l o c a l , a l v o , l a r g u r a , a l t u r a ) 	 {  
 	 	 w i n d o w . o p e n   ( l o c a l , a l v o , ' t o o l b a r = n o , l o c a t i o n = n o , d i r e c t o r i e s = n o , s t a t u s = y e s , 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 , c o p y h i s t o r y = n o , w i d t h = '   +   l a r g u r a   +   ' , h e i g h t = '   +   a l t u r a   +   ' , t o p = 0 , l e f t = 0 ' ) ;  
 	 }  
 	  
  
 	 f u n c t i o n   v e R e s u l t a d o s V o t a c a o ( c a t I D ,   a n o S e l ,   v r t S e l ) 	 {  
 	 	 a b r e J a n e l a   ( ' a c e s _ r e s u l t a d o s . a s p ? y = '   +   a n o S e l   +   ' & v = '   +   v r t S e l   +   ' # c '   +   c a t I D , ' a c e s ' , 4 5 0 , 3 0 0 )  
 	 }  
  
 	 f u n c t i o n   m o s t r a T o r n e i o ( i d ) 	 {  
 	 	 i f   ( o p e n e r ) 	 {  
 	 	 	 	 o p e n e r . t o p . l o c a t i o n =   ' e v e n t o s _ t o r n e i o s . a s p ? i d = '   +   i d ;    
 	 	 	 } 	 e l s e 	 {  
 	 	 	 	 t o p . l o c a t i o n   =   ' e v e n t o s _ t o r n e i o s . a s p ? i d = '   +   i d ;  
 	 	 }  
 	 }  
  
 	 f u n c t i o n   m o s t r a V i d e o   ( m e d i a ) 	 {  
 	 	 a b r e J a n e l a   ( ' m o s t r a M e d i a . a s p ? v = '   +   m e d i a , 4 0 0 , 3 0 0 )  
 	 }  
  
 	 f u n c t i o n   m o s t r a F o t o   ( m e d i a ) 	 {  
 	 	 a b r e J a n e l a   ( ' m o s t r a M e d i a . a s p ? f = '   +   m e d i a , 8 0 0 , 6 0 0 )  
 	 }  
  
 	 f u n c t i o n   m e s e s ( m e s I n t ) 	 {  
 	 	 i f   ( m e s I n t = = 1 )   r e t u r n   ' J a n e i r o ' ;  
 	 	 i f   ( m e s I n t = = 2 )   r e t u r n   ' F e v e r e i r o ' ;  
 	 	 i f   ( m e s I n t = = 3 )   r e t u r n   ' M a r ç o ' ;  
 	 	 i f   ( m e s I n t = = 4 )   r e t u r n   ' A b r i l ' ;  
 	 	 i f   ( m e s I n t = = 5 )   r e t u r n   ' M a i o ' ;  
 	 	 i f   ( m e s I n t = = 6 )   r e t u r n   ' J u n h o ' ;  
 	 	 i f   ( m e s I n t = = 7 )   r e t u r n   ' J u l h o ' ;  
 	 	 i f   ( m e s I n t = = 8 )   r e t u r n   ' A g o s t o ' ;  
 	 	 i f   ( m e s I n t = = 9 )   r e t u r n   ' S e t e m b r o ' ;  
 	 	 i f   ( m e s I n t = = 1 0 )   r e t u r n   ' O u t u b r o ' ;  
 	 	 i f   ( m e s I n t = = 1 1 )   r e t u r n   ' N o v e m b r o ' ;  
 	 	 i f   ( m e s I n t = = 1 2 )   r e t u r n   ' D e z e m b r o ' ;  
 	 }  
  
 	 f u n c t i o n   f a d e O u t ( )   {  
 	 	 i f   ( f o t o P r i n c i p a l ) 	 {  
 	 	 	 f o t o P r i n c i p a l . s t y l e . f i l t e r = " b l e n d T r a n s ( d u r a t i o n = 2 ) " ;  
 	 	 	 / /   M a k e   s u r e   t h e   f i l t e r   i s   n o t   p l a y i n g .  
 	 	 	 i f   ( f o t o P r i n c i p a l . f i l t e r s . b l e n d T r a n s . s t a t u s   ! =   2 )   {  
 	 	 	 	 f o t o P r i n c i p a l . f i l t e r s . b l e n d T r a n s . a p p l y ( ) ;  
 	 	 	 	 f o t o P r i n c i p a l . s t y l e . v i s i b i l i t y = " h i d d e n " ;  
 	 	 	 	 f o t o P r i n c i p a l . f i l t e r s . b l e n d T r a n s . p l a y ( ) ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 f u n c t i o n   f a d e I n ( )   {  
 	 	 i f   ( f o t o P r i n c i p a l ) 	 {  
 	 	 	 f o t o P r i n c i p a l . s t y l e . f i l t e r = " b l e n d T r a n s ( d u r a t i o n = 2 ) " ;  
 	 	 	 / /   M a k e   s u r e   t h e   f i l t e r   i s   n o t   p l a y i n g .  
 	 	 	 i f   ( f o t o P r i n c i p a l . f i l t e r s . b l e n d T r a n s . s t a t u s   ! =   2 )   {  
 	 	 	 	 f o t o P r i n c i p a l . f i l t e r s . b l e n d T r a n s . a p p l y ( ) ;  
 	 	 	 	 f o t o P r i n c i p a l . s t y l e . v i s i b i l i t y = " v i s i b l e " ;  
 	 	 	 	 f o t o P r i n c i p a l . f i l t e r s . b l e n d T r a n s . p l a y ( ) ;  
 	 	 	 }  
 	 	 }  
 	 }  
  
 	 f u n c t i o n   e n v i a M a i l ( ) 	 {  
 	 	 i f   ( f o r m M s g . t e x t o . v a l u e . l e n g t h = = 0 ) 	 {  
 	 	 	 a l e r t ( " P r e e n c h a   o   t e x t o   a n t e s   d e   e n v i a r   a   m e n s a g e m . " ) ;  
 	 	 	 f o r m M s g . t e x t o . f o c u s ( ) ;  
 	 	 } 	 e l s e 	 {  
 	 	 	 f o r m M s g . s u b m i t ( ) ;  
 	 	 }  
 	 }  
 	 	  
         f u n c t i o n   h i g h l i g h t ( e l e m n t , m e n s a g e m )   {  
                 d o c u m e n t . g e t E l e m e n t B y I d ( e l e m n t ) . s e l e c t ( ) ;  
                 d o c u m e n t . g e t E l e m e n t B y I d ( e l e m n t ) . f o c u s ( ) ;  
                 i f   ( d o c u m e n t . a l l )   {  
                         t e x t R a n g e   =   d o c u m e n t . g e t E l e m e n t B y I d ( e l e m n t ) . c r e a t e T e x t R a n g e ( ) ;  
                         t e x t R a n g e . e x e c C o m m a n d ( " R e m o v e F o r m a t " ) ;  
                         t e x t R a n g e . e x e c C o m m a n d ( " C o p y " ) ;  
                         a l e r t ( m e n s a g e m ) ;  
                 }  
         }  
  
  
 	  
 	 f u n c t i o n   i n t 2 d a t e ( i n t e g e r S t r )     {  
 	         r e t u r n   S t r i n g ( i n t e g e r S t r ) . s u b s t r i n g ( 0 , 4 )   +   " - "   +   S t r i n g ( i n t e g e r S t r ) . s u b s t r i n g ( 4 , 6 )   +     " - "   +   S t r i n g ( i n t e g e r S t r ) . s u b s t r i n g ( 6 , 8 )    
 	 }  
  
 	 f u n c t i o n   e s t a d o E s c a d a ( s t r D i s p o n i b i l i d a d e )   {  
 	 	 v a r   m T m p E s t a d o   =   s t r D i s p o n i b i l i d a d e . s p l i t ( " | " )  
 	 	 t h i s . i n i c i o 	 	 	         = p a r s e I n t ( m T m p E s t a d o [ 0 ] ) ;  
 	 	 t h i s . f i m 	 	 	                 = p a r s e I n t ( m T m p E s t a d o [ 1 ] ) ;  
 	 	 t h i s . d e s c r i t i v o 	 	 = m T m p E s t a d o [ 2 ] ;  
 	 	 t h i s . a p p C o n s t a n t N a m e 	 	 = m T m p E s t a d o [ 3 ] ;  
 	 	 t h i s . j o g a d o r 	 	 = m T m p E s t a d o [ 4 ] ;  
 	 }  
  
 	 f u n c t i o n   d e s a f i o E s c a d a ( s t r D e s a f i o )   {  
 	         / /   E s c a d a   0 7 - 0 8   -   L x   H o m e n s # 0 3 - 0 2 - 2 0 0 8 # 1 5 : 0 0 : 0 0 # 3 6 # J o ã o   A L M E I D A # 8 # 4 5 # B r u n o   F .   S E I X A S # 3  
 	 	 v a r   m T m p D e s a f i o   =   s t r D e s a f i o . s p l i t ( " # " )  
 	 	 t h i s . p r o v a 	 	 = m T m p D e s a f i o [ 0 ] ;  
 	 	 t h i s . d a t a 	 	 = m T m p D e s a f i o [ 1 ] ;  
 	 	 t h i s . h o r a 	 	 = m T m p D e s a f i o [ 2 ] ;  
 	 	 t h i s . l o c a l 	 	 = m T m p D e s a f i o [ 3 ] ;  
 	 	  
 	 	 t h i s . i d A 	 	 = p a r s e I n t ( m T m p D e s a f i o [ 4 ] ) ;  
 	 	 t h i s . n o m e A 	 	 = m T m p D e s a f i o [ 5 ] ;  
 	 	 t h i s . p o s i c a o A 	 	 = p a r s e I n t ( m T m p D e s a f i o [ 6 ] ) ;  
 	 	  
 	 	 t h i s . i d B 	 	 = p a r s e I n t ( m T m p D e s a f i o [ 7 ] ) ;  
 	 	 t h i s . n o m e B 	 	 = m T m p D e s a f i o [ 8 ] ;  
 	 	 t h i s . p o s i c a o B 	 	 = p a r s e I n t ( m T m p D e s a f i o [ 9 ] ) ;  
 	 }  
 	  
 	 f u n c t i o n   b i g S c r e e n G a m e ( o b j G a m e )   {  
 	         v a r   t m p H T M L   =   " < t a b l e   c e l l p a d d i n g = 5   c l a s s = ' b i g S c r e e n '   s t y l e = ' w i d t h : 1 0 0 % ' > "  
 	         t m p H T M L   + =   "     < t r > " ;  
 	         t m p H T M L   + =   "             < t d   s t y l e = ' t e x t - a l i g n : r i g h t ;   w i d t h : 4 0 % ' > "   +   o b j G a m e . n o m e A   +   "   ( "   +   o b j G a m e . p o s i c a o A   +   " ) < / t d > < t d > < i m g   s r c = ' i m g s / p e o p l e / j o g a d o r "   +   o b j G a m e . i d A   +   " . j p g '   h e i g h t = ' 6 0 '   s t y l e = ' b o r d e r : 2 p x   s o l i d   w h i t e '   a l t = ' J o g a d o r   D e s a f i a n t e '   o n e r r o r = ' t h i s . o n e r r o r = n u l l ; t h i s . s r c = \ " i m g s / p e o p l e / s e m F o t o . j p g \ " ; ' > < / t d > "  
 	         t m p H T M L   + =   "             < t d   s t y l e = ' t e x t - a l i g n : c e n t e r ;   v e r t i c a l - a l i g n : m i d d l e ' > & n b s p ; < / t d > "  
 	         t m p H T M L   + =   "             < t d > < i m g   s r c = ' i m g s / p e o p l e / j o g a d o r "   +   o b j G a m e . i d B   +   " . j p g '   h e i g h t = ' 6 0 '   s t y l e = ' b o r d e r : 2 p x   s o l i d   w h i t e '   a l t = ' J o g a d o r   D e s a f i a d o '     o n e r r o r = ' t h i s . o n e r r o r = n u l l ; t h i s . s r c = \ " i m g s / p e o p l e / s e m F o t o . j p g \ " ; ' > < / t d > < t d   s t y l e = ' t e x t - a l i g n : l e f t ;   w i d t h : 4 0 % ' > "   +   o b j G a m e . n o m e B   +   "   ( "   +   o b j G a m e . p o s i c a o B   +   " ) < / t d > "  
 	         t m p H T M L   + =   "     < / t r > "  
 	         t m p H T M L   + =   "     < t r > " ;  
 	         t m p H T M L   + =   "             < t d   c o l s p a n = ' 5 '   s t y l e = ' t e x t - a l i g n : c e n t e r ' > "   +   o b j G a m e . d a t a   +   "   v   "   +   o b j G a m e . h o r a   +   " < b r / > [   "   +   o b j G a m e . l o c a l   +   "   ] < / t d > "  
 	         t m p H T M L   + =   "     < / t r > "  
 	         t m p H T M L   + =   " < / t a b l e > "  
 	         r e t u r n   t m p H T M L ;  
 	 }  
  
     f u n c t i o n   C o n v D a t a I n t e g e r ( a n o I n p u t , m e s I n p u t , d i a I n p u t )             {  
                 v a r   t m p D a t a I n t e g e r = " " ;  
                 t m p D a t a I n t e g e r + =   a n o I n p u t ;  
                
                 i f   ( m e s I n p u t . l e n g t h = = 1 )   {   t m p D a t a I n t e g e r + =   " 0 " } ;  
                 t m p D a t a I n t e g e r + =   m e s I n p u t ;  
                
                 i f   ( d i a I n p u t . l e n g t h = = 1 )   {   t m p D a t a I n t e g e r + =   " 0 " } ;  
                 t m p D a t a I n t e g e r + =   d i a I n p u t ;  
                  
               r e t u r n   p a r s e I n t ( t m p D a t a I n t e g e r ) ;  
     }  
  
 f u n c t i o n   I s N u m e r i c ( s T e x t )  
  
 {  
       v a r   V a l i d C h a r s   =   " 0 1 2 3 4 5 6 7 8 9 , . " ;  
       v a r   I s N u m b e r = t r u e ;  
       v a r   C h a r ;  
  
    
       f o r   ( i   =   0 ;   i   <   s T e x t . l e n g t h   & &   I s N u m b e r   = =   t r u e ;   i + + )    
             {    
             C h a r   =   s T e x t . c h a r A t ( i ) ;    
             i f   ( V a l i d C h a r s . i n d e x O f ( C h a r )   = =   - 1 )    
                   {  
                   I s N u m b e r   =   f a l s e ;  
                   }  
             }  
       r e t u r n   I s N u m b e r ;  
        
       }  
        
   f u n c t i o n   I s V a l i d D a t e ( D a y , M n , Y r ) {  
         v a r   D a t e V a l   =   Y r   +   " / "   +   M n   +   " / "   +   D a y ;  
         v a r   d t   =   n e w   D a t e ( D a t e V a l ) ;  
  
         i f ( d t . g e t D a t e ( ) ! = D a y ) {  
                 r e t u r n ( f a l s e ) ;  
                 }  
         e l s e   i f ( d t . g e t M o n t h ( ) ! = M n - 1 ) {  
                 r e t u r n ( f a l s e ) ;  
                 }  
         e l s e   i f ( d t . g e t F u l l Y e a r ( ) ! = Y r ) {  
                 r e t u r n ( f a l s e ) ;  
                 }  
         r e t u r n ( t r u e ) ;  
   }  
 
