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