ÿþ 
 v a r   S i m p l e = n e w   O b j e c t ( ) ;  
 S i m p l e . A j a x = f u n c t i o n ( t y p e , u r l , o n l o a d , p a r a m s , c o n t e n t T y p e ) {  
         t h i s . r e q = n u l l ;  
         t h i s . u r l = u r l ;  
         t h i s . p a r a m s = p a r a m s ;  
         i f ( t y p e ) {  
                 t h i s . t y p e = t y p e ;  
         } e l s e {  
                 t h i s . t y p e = " G E T " ;  
         }  
         i f ( ! c o n t e n t T y p e   & &   t y p e = = " P O S T " ) {  
                 t h i s . 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 = g b 2 3 1 2 " ;  
         } e l s e {  
                 t h i s . c o n t e n t T y p e = c o n t e n t T y p e ;  
         }  
         t h i s . o n l o a d = o n l o a d ;  
         t h i s . r e s p o n s e T e x t = n u l l ;  
         t h i s . G e t H t t p R e q u e s t ( ) ;  
 }  
  
 S i m p l e . A j a x . p r o t o t y p e . G e t H t t p R e q u e s t = f u n c t i o n ( ) {  
         i f ( w i n d o w . A c t i v e X O b j e c t ) {  
                 t h i s . r e q = 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 " ) ;  
         } e l s e   i f ( w i n d o w . X M L H t t p R e q u e s t ) {  
                 t h i s . r e q = n e w   X M L H t t p R e q u e s t ( ) ;  
         }  
 }  
  
 S i m p l e . A j a x . p r o t o t y p e . S e n d R e q u e s t = f u n c t i o n ( ) {  
         v a r   l o a d e r = t h i s ;  
         t h i s . r e q . 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 ( ) {  
                 l o a d e r . O n R e a d y S t a t e . c a l l ( l o a d e r ) ;  
         }  
         t h i s . r e q . o p e n ( t h i s . t y p e , t h i s . u r l , t r u e ) ;  
         i f ( t h i s . c o n t e n t T y p e ) {  
                 t h i s . r e q . 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 " , t h i s . c o n t e n t T y p e ) ;  
         }  
         t h i s . r e q . s e n d ( t h i s . p a r a m s ) ;  
 }  
  
 S i m p l e . A j a x . p r o t o t y p e . O n R e a d y S t a t e = f u n c t i o n ( ) {  
         v a r   r e a d y = t h i s . r e q . r e a d y S t a t e ;  
         v a r   d a t a ;  
         i f ( r e a d y = = 4 ) {  
                 i f ( t h i s . r e q . s t a t u s = = 2 0 0   | |   t h i s . r e q . s t a t u s = = 0 ) {  
                         t h i s . r e s p o n s e T e x t = t h i s . r e q . r e s p o n s e T e x t ;  
                 } e l s e {  
                         t h i s . r e s p o n s e T e x t = " f a l s e " ;  
                 }  
         } e l s e {  
                 t h i s . r e s p o n s e T e x t = " l o a d " ;  
         }  
         t h i s . o n l o a d . c a l l ( t h i s , t h i s ) ;  
 } 
