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