ÿþ  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 ;  
 }  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 v a r   M Y M A I N D I V ;  
 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 = " s t y l e / i m a g e s / l o a d 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 )  
 {  
 M Y M A I N D I V = d i v i d ;  
 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 = " s t y l e / i m a g e s / l o a d 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  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
  
 / / - - - - - - - - - - - - - - - - - -  
 
