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