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