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