ÿþ  f u n c t i o n   g e t S t r i n g U r l ( ) {  
                 w i n d o w . l o c a t i o n . h r e f   =   ' / t a b i d / 1 2 4 / D e f a u l t . a s p x ? S e a r c h = '   +   d o c u m e n t . g e t E l e m e n t B y I d ( ' t x t S e a r c h ' ) . v a l u e ;  
 }  
            
   f u n c t i o n   g e t Q u e r y S t r i n g ( s t r Q u e r y S t r i n g ) {  
     v a r   s t r L o c a t i o n   =   w i n d o w . l o c a t i o n . s e a r c h . s u b s t r i n g ( 1 ) ;  
     v a r   q u e r y   =   s t r L o c a t i o n . s p l i t ( " & " ) ;  
     v a r   q u e r y V a l u e ;  
     f o r   ( i = 0 ; i < q u e r y . l e n g t h ; i + + )    
     {  
         f t   =   q u e r y [ i ] . s p l i t ( " = " ) ;  
         i f   ( f t [ 0 ]   = =   s t r Q u e r y S t r i n g )    
         {  
             r e t u r n   f t [ 1 ] ;  
         }  
     }  
 }        
 f u n c t i o n   d e c o d e ( s t r )   {  
         r e t u r n   u n e s c a p e ( s t r . r e p l a c e ( / \ + / g ,   "   " ) ) ;  
 }  
 f u n c t i o n   B i n d D a t a U r l ( ) {                    
         v a r   s t r I n p u t V a l u e   =   ' t x t S e a r c h ' ;                
         v a r   s t r V a l u e   =   d e c o d e U r l ( g e t Q u e r y S t r i n g U r l ( " S e a r c h " ) ) ;  
         i f   ( s t r V a l u e   ! =   n u l l   & &   s t r V a l u e   ! = " " ) {  
                 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( s t r I n p u t V a l u e )   ! =   n u l l )  
                         d o c u m e n t . g e t E l e m e n t B y I d ( s t r I n p u t V a l u e ) . v a l u e   =   s t r V a l u e ;  
         }          
 }    
  
 f u n c t i o n   S e a r c h A r t i c l e K e y D o w n ( e ) {  
         v a r   _ e v t = ( e ) ? e : ( w i n d o w . e v e n t ) ? w i n d o w . e v e n t : n u l l ;  
         i f ( _ e v t ) {  
             _ k e y = ( _ e v t . c h a r C o d e ) ? _ e v t . c h a r C o d e :   ( ( _ e v t . k e y C o d e ) ? _ e v t . k e y C o d e : ( ( _ e v t . w h i c h ) ? _ e v t . w h i c h : 0 ) )  
                 i f ( _ k e y = = " 1 3 " ) {                      
                         g e t S t r i n g U r l ( ) ;  
                 }  
         }  
 }         
