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