ÿþf u n c t i o n   t r i m T e x t ( t x ) {  
   i f ( t x   | |   t x = = 0 ) {  
     t x = t x . t o S t r i n g ( ) ;  
     w h i l e ( t x . c h a r C o d e A t ( 0 ) < 3 3 ) { t x = t x . s u b s t r i n g ( 1 ) ; }  
     w h i l e ( t x . c h a r C o d e A t ( t x . l e n g t h - 1 ) < 3 3 ) { t x = t x . s u b s t r i n g ( 0 , t x . l e n g t h - 1 ) ; }  
   } e l s e { t x = " " ; }  
   r e t u r n ( t x ) ;  
 }  
 f u n c t i o n   e n v i a r ( f o , u r , s b , e l ) {  
   v a r   i , c h k = ' ' ;   i f ( u r = = n u l l ) { u r = ' ' ; }  
   i f ( f o   & &   u r . l e n g t h ) {  
     i f ( s b = = n u l l ) { s b = ' ' ; }   i f ( e l = = n u l l   | |   e l = = ' ' ) { e l = [ ] ; } e l s e { e l = e l . s p l i t ( " , " ) ; }  
     i f ( u r . i n d e x O f ( " ? " ) = = - 1 ) { u r + = ' ? ' ; }  
     u r = ' m a i l t o : ' + u r + ' S u b j e c t = ' + e s c a p e ( s b ) + ' & B o d y = ' ;  
     w h i l e ( e l . l e n g t h < f o . e l e m e n t s . l e n g t h ) { e l [ e l . l e n g t h ] = ' ' ; }  
     f o r ( i = 0 ; i < f o . e l e m e n t s . l e n g t h ; i + + ) {  
       i f ( e l [ i ] . l e n g t h ) {  
         i f ( e l [ i ] . i n d e x O f ( " * " ) = = 0 ) {  
           e l [ i ] = e l [ i ] . s u b s t r i n g ( 1 ) ;   i f ( ! e l [ i ] . l e n g t h   | |   e l [ i ] = = " # " ) { e l [ i ] = f o . e l e m e n t s [ i ] . n a m e ; }  
           i f ( ! t r i m T e x t ( f o . e l e m e n t s [ i ] . v a l u e ) . l e n g t h ) {  
             i f ( ! c h k . l e n g t h ) { c h k = ' F a l t a n   c a m p o s   p o r   r e l l e n a r :   ' + e l [ i ] ; } e l s e { c h k + = ' ,   ' + e l [ i ] ; }  
           }  
         }  
         i f ( e l [ i ] = = " # " ) { e l [ i ] = f o . e l e m e n t s [ i ] . n a m e ; }  
         u r + = e s c a p e ( e l [ i ] + ' : \ n ' + f o . e l e m e n t s [ i ] . v a l u e + ' \ n \ n ' ) ;  
       }  
     }  
     i f ( c h k . l e n g t h ) { a l e r t ( c h k ) ; } e l s e { l o c a t i o n . h r e f = u r ; }  
   }  
 }  
 
