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