ÿþ/ *  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 h t m l   + =   " " ;  
 d o c u m e n t . w r i t e   (   h t m l   ) ;  
 * /  
  
 v a r   h t m l ;  
 v a r   e i n f o ;  
 v a r   l i n f o ;  
 v a r   e i d x   =   0 ;  
  
 f u n c t i o n   d i s p l a y d a t e ( ) {  
 	 v a r   c u r d a t e   =   n e w   D a t e ( ) ;  
 	 v a r   t e s t d a t e   =   c u r d a t e + " " ;  
 	 v a r   a   =   t e s t d a t e . s u b s t r i n g ( 0 , 3 ) ;  
 	 v a r   b   =   t e s t d a t e . s u b s t r i n g ( 4 , 7 ) ;  
 	 v a r   c   =   t e s t d a t e . s u b s t r i n g ( 8 , 1 0 ) ;  
 	 v a r   d   =   t e s t d a t e . s u b s t r i n g ( t e s t d a t e . l e n g t h   -   4 ,   t e s t d a t e . l e n g t h ) ;  
  
 	 i f   ( a   = =   " M o n " )   { a   =   " M o n d a y ,   " ; }  
 	 i f   ( a   = =   " T u e " )   { a   =   " T u e s d a y ,   " ; }  
 	 i f   ( a   = =   " W e d " )   { a   =   " W e d n e s d a y ,   " ; }  
 	 i f   ( a   = =   " T h u " )   { a   =   " T h u r s d a y ,   " ; }  
 	 i f   ( a   = =   " F r i " )   { a   =   " F r i d a y ,   " ; }  
 	 i f   ( a   = =   " S a t " )   { a   =   " S a t u r d a y ,   " ; }  
 	 i f   ( a   = =   " S u n " )   { a   =   " S u n d a y ,   " ; }  
  
 	 i f   ( b   = =   " J a n " )   { b   =   "   J a n u a r y   " ; }  
 	 i f   ( b   = =   " F e b " )   { b   =   "   F e b r u a r y   " ; }  
 	 i f   ( b   = =   " M a r " )   { b   =   "   M a r c h   " ; }  
 	 i f   ( b   = =   " A p r " )   { b   =   "   A p r i l   " ; }  
 	 i f   ( b   = =   " M a y " )   { b   =   "   M a y   " ; }  
 	 i f   ( b   = =   " J u n " )   { b   =   "   J u n e   " ; }  
 	 i f   ( b   = =   " J u l " )   { b   =   "   J u l y   " ; }  
 	 i f   ( b   = =   " A u g " )   { b   =   "   A u g u s t   " ; }  
 	 i f   ( b   = =   " S e p " )   { b   =   "   S e p t e m b e r   " ; }  
 	 i f   ( b   = =   " O c t " )   { b   =   "   O c t o b e r   " ; }  
 	 i f   ( b   = =   " N o v " )   { b   =   "   N o v e m b e r   " ; }  
 	 i f   ( b   = =   " D e c " )   { b   =   "   D e c e m b e r   " ; }  
  
 	 u s e r d a t e   =   a   +   c   +   b   +   d ;  
 	 r e t u r n   u s e r d a t e ;  
 }  
  
 f u n c t i o n   l a n g i n f o   ( l a n g ) {  
 	 t h i s . l a n g   =   l a n g ; 	 / /   s t o r e   l a n g u a g e   t y p e  
 	  
 	 / /   f i l l   i n   r e s t   o f   i n f o r m a t i o n  
 	 i f   ( l a n g   = =   " l e t t e r " )   {  
 	 	 t h i s . t o   =   " T o :   " ;  
 	 	 t h i s . f r o m   =   " F r o m :   " ;  
 	 	 t h i s . s u b j e c t   =   " S u b j e c t :   " ;  
 	 	 t h i s . d a t e   =   " D a t e :   " ;  
 	 	 t h i s . d e a r   =   " D e a r   " ;  
 	 	 t h i s . y o u r s   =   " Y o u r s   s i n c e r e l y , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i t i o n :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i s a t i o n :   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " s p a n i s h " )   {  
 	 	 t h i s . t o   =   " A :   " ;  
 	 	 t h i s . f r o m   =   " D e :   " ;  
 	 	 t h i s . s u b j e c t   =   " T e m a :   " ;  
 	 	 t h i s . d a t e   =   " F e c h a :   " ;  
 	 	 t h i s . d e a r   =   " M u y   s e n o r   m i o   " ;  
 	 	 t h i s . y o u r s   =   " L e   s a l u d a   a t e n t a m e n t e , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i c i ó n :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i z a c i ó n :   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " g e r m a n " )   {  
 	 	 t h i s . t o   =   " Z u :   " ;  
 	 	 t h i s . f r o m   =   " V o n :   " ;  
 	 	 t h i s . s u b j e c t   =   " T h e m a :   " ;  
 	 	 t h i s . d a t e   =   " D a t u m :   " ;  
 	 	 t h i s . d e a r   =   " S e h r   G e e h r t e r " ;  
 	 	 t h i s . y o u r s   =   " M i t   f r e u n d l i c h e n   G r ü s s e n , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i t i o n :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i s a t i o n :   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " i t a l i a n " )   {  
 	 	 t h i s . t o   =   " A :   " ;  
 	 	 t h i s . f r o m   =   " D a :   " ;  
 	 	 t h i s . s u b j e c t   =   " O g g e t t o :   " ;  
 	 	 t h i s . d a t e   =   " D a t a :   " ;  
 	 	 t h i s . d e a r   =   " C a r o   " ;  
 	 	 t h i s . y o u r s   =   " D i s t i n t i   s a l u t i , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i z i o n e :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i z z a z i o n e :   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " f r e n c h " )   {  
 	 	 t h i s . t o   =   " D e s t i n a t a i r e :   " ;  
 	 	 t h i s . f r o m   =   " E x p e d i t e u r :   " ;  
 	 	 t h i s . s u b j e c t   =   " O b j e t :   " ;  
 	 	 t h i s . d a t e   =   " D a t e :   " ;  
 	 	 t h i s . d e a r   =   " C h e r   " ;  
 	 	 t h i s . y o u r s   =   " M e i l l e u r e s   s a l u t a t i o n s , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i t i o n :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i s a t i o n :   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " p o r t u g u e s e " )   {  
 	 	 t h i s . t o   =   " A :   " ;  
 	 	 t h i s . f r o m   =   " D e :   " ;  
 	 	 t h i s . s u b j e c t   =   " A s s u n t o :   " ;  
 	 	 t h i s . d a t e   =   " D a t a :   " ;  
 	 	 t h i s . d e a r   =   " C a r o   " ;  
 	 	 t h i s . y o u r s   =   " S e u   s i n c e r e l y , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i ç ã o :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i z a ç ã o :   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " j a p a n e s e " )   {  
 	 	 t h i s . t o   =   " ×SÖSºN:   " ;  
 	 	 t h i s . f r o m   =   " î]úQºN:   " ;  
 	 	 t h i s . s u b j e c t   =   " ¿0¤0È0ë0:   " ;  
 	 	 t h i s . d a t e   =   " åeØN:   " ;  
 	 	 t h i s . d e a r   =   " Øi" ;  
 	 	 t h i s . y o u r s   =   " lewQ, " ;  
 	 	 t h i s . p o s i t i o n   =   " w€T:   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " Ëib:   " ;  
 	 }  
 	 e l s e   i f   ( l a n g   = =   " c h i n e s e " )   {  
 	 	 t h i s . t o   =   " 6eöNºNÓYT:   " ;  
 	 	 t h i s . f r o m   =   " ÑSöNºNÓYT:   " ;  
 	 	 t h i s . s u b j e c t   =   " y˜îv:   " ;  
 	 	 t h i s . d a t e   =   " åeg:   " ;  
 	 	 t h i s . d e a r   =   " ²N1r„v:   " ;  
 	 	 t h i s . y o u r s   =   " ¨`Ú‹ž[„v, " ;  
 	 	 t h i s . p o s i t i o n   =   " 6eöNºNL€¡R:   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " Ä~Ç~:   " ;  
 	 }  
 	 e l s e   {  
 	 	 t h i s . t o   =   " T o :   " ;  
 	 	 t h i s . f r o m   =   " F r o m :   " ;  
 	 	 t h i s . s u b j e c t   =   " S u b j e c t :   " ;  
 	 	 t h i s . d a t e   =   " D a t e :   " ;  
 	 	 t h i s . d e a r   =   " D e a r   " ;  
 	 	 t h i s . y o u r s   =   " Y o u r s   s i n c e r e l y , " ;  
 	 	 t h i s . p o s i t i o n   =   " P o s i t i o n :   " ;  
 	 	 t h i s . o r g a n i s a t i o n   =   " O r g a n i s a t i o n :   " ;  
 	 }  
 }  
  
 f u n c t i o n   i n f o   ( t o ,   p o s ,   a d d r 1 ,   d e s t ,   f r o m ,   a d d r 2 ,   e m a i l ,   f a x ,   s u b j e c t ,   m s g ,   o r g ) {  
 	 t h i s . t o   =   t o ;  
 	 t h i s . p o s   =   p o s ;  
 	 t h i s . a d d r 1   =   a d d r 1 ;  
 	 t h i s . d e s t   =   d e s t ;  
 	 t h i s . f r o m   =   f r o m ;  
 	 t h i s . a d d r 2   =   a d d r 2 ;  
 	 t h i s . e m a i l   =   e m a i l ;  
 	 t h i s . f a x   =   f a x ;  
               t h i s . s u b j e c t   =   s u b j e c t ;  
             t h i s . o r g   =   o r g ;  
 	 t h i s . m s g   =   f o r m a t L i n e s ( m s g ) ;  
 }  
  
 f u n c t i o n   a d d l a n g i n f o   ( l a n g )   {  
 	 l i n f o   =   n e w   l a n g i n f o ( l a n g ) ;  
 }  
  
 f u n c t i o n   a d d i n f o   ( t o ,   p o s ,   a d d r 1 ,   d e s t ,   f r o m ,   a d d r 2 ,   e m a i l ,   f a x ,   s u b j e c t ,   m s g ,   o r g ) {  
 	 e i n f o   =   n e w   i n f o ( t o ,   p o s ,   a d d r 1 ,   d e s t ,   f r o m ,   a d d r 2 ,   e m a i l ,   f a x ,   s u b j e c t ,   m s g ,   o r g ) ;  
 }  
  
 f u n c t i o n   s e n d f a x ( ) {  
 / /   F i r s t   n e e d   t o   p a r s e   t h e   f a x   i n t o   t h e   c o r r e c t   f o r m a t   t o   b e   s e n t  
 / /   c h a n g e   c o m m a s   t o   C R s   a n d   s p a c e s   t o   _   i n   t h e   a d d r e s s                
  
 e i n f o . f a x   =   " r e m o t e - p r i n t e r . "   +   e i n f o . t o . r e p l a c e ( / \ , / g i , " / " ) . r e p l a c e ( / \   / g i , " _ " )   +   " / "   +   e i n f o . p o s . r e p l a c e ( / \ , / g i , " / " ) . r e p l a c e ( / \   / g i , " _ " )   +   " @ "   +   e i n f o . f a x . r e p l a c e ( / \ D / g i , " " )   +   " . i d d d . t p c . i n t " ;  
 	  
 d o c u m e n t . f o r m 1 . r e c i p i e n t . v a l u e   =   " r e m o t e - p r i n t e r . "   +   e i n f o . t o . r e p l a c e ( / \ , / g i , " / " ) . r e p l a c e ( / \   / g i , " _ " )   +   " / "   +   e i n f o . p o s . r e p l a c e ( / \ , / g i , " / " ) . r e p l a c e ( / \   / g i , " _ " )   +   " @ "   +   e i n f o . f a x . r e p l a c e ( / \ D / g i , " " )   +   " . i d d d . t p c . i n t " ;  
 / / d o c u m e n t . f o r m 1 . r e c i p i e n t . v a l u e   =   " r e m o t e - p r i n t e r . "   +   e i n f o . t o . r e p l a c e ( / \ , / g i , " / " ) . r e p l a c e ( / \   / g i , " _ " )   +   " . "   +   e i n f o . p o s . r e p l a c e ( / \ , / g i , " / " ) . r e p l a c e ( / \   / g i , " _ " )   +   e i n f o . f a x . r e p l a c e ( / \ D / g i , " " )   +   " @ "   +   " m i n g . o r g . u k " ;  
 	 / /   n o w   s e n d   t h e   f a x   o f f   a s   a n   e m a i l  
  
 	 a d d r e s s   =   " h t t p : / / w w w . i n f o r m a c t i o n . o r g / c g i - b i n / F o r m M a i l . c g i ? t o = "   +   e i n f o . t o   +   " & p o s i t i o n = "   +   e i n f o . p o s   +   " & t o _ a d d r e s s = "   +   e i n f o . a d d r 1   +   " & r e c i p i e n t = "   +   e i n f o . f a x   +   " & f r o m = "   +   e i n f o . f r o m   +   " & f r o m _ a d d r e s s = "   +   e i n f o . a d d r 2   +   " & e m a i l = "   +   e i n f o . e m a i l   +   " & s u b j e c t = "   +   e i n f o . s u b j e c t   +   " & m e s s a g e = "   +   e i n f o . m s g ;  
  
 	 h t m l   =   " < h t m l > < h e a d > < t i t l e > *   Y o u r   F a x   H a s   B e e n   S e n t !   * < / t i t l e > < / h e a d > \ n " ;  
  
 	 h t m l   + =   " < b o d y > Y o u r   f a x   h a s   b e e n   s e n t ! < b r > Y o u   m a y   c l o s e   t h i s   w i n d o w   n o w . < / b o d y > < / h t m l > \ n " ;  
 	 / / h t m l   + =   " < b o d y > Y o u r   f a x   h a s   b e e n   s e n t ! < b r > Y o u   m a y   c l o s e   t h i s   w i n d o w   n o w . < p > "   +   a d d r e s s   +   " < / b o d y > < / h t m l > \ n " ;  
  
                 / / v a r   n e w i n d   =   w i n d o w . o p e n ( a d d r e s s ,   " n e w i n d " ) ;  
                 / /   w i t h   ( n e w i n d . d o c u m e n t ) {  
                                 / /   o p e n ( ) ;  
 	 	 / /   w r i t e ( h t m l ) ;  
                                 / /   c l o s e ( ) ;  
                 / /   }  
 }  
  
 f u n c t i o n   w r i t e m a i l ( ) {  
 	  
 	 f o r m a t L i n e s ( e i n f o . m s g ) ;  
 	 h t m l   =   " < h t m l > < b o d y > \ n " ;  
 	 h t m l   + =   " < p r e > "   +   l i n f o . s u b j e c t   +   e i n f o . s u b j e c t   +   " \ n " ;  
 	 h t m l   + =   l i n f o . d a t e   +   D a t e ( )   +   " \ n " ;  
 	 h t m l   + =   l i n f o . t o   +   e i n f o . d e s t   +   " \ n " ;  
 	 h t m l   + =   l i n f o . f r o m   +   e i n f o . e m a i l   +   " < / p r e > \ n " ;  
 	 h t m l   + =   " < p r e > " ;  
 	 h t m l   + =   l i n f o . t o   +   e i n f o . t o   +   " \ n " ;  
 	 h t m l   + =   l i n f o . p o s i t i o n   +   e i n f o . p o s   +   " \ n " ;  
 	 h t m l   + =   l i n f o . f r o m   +   e i n f o . f r o m   +   " \ n \ n " ;  
 	 h t m l   + =   " < p r e > " ;  
 	 h t m l   + =   e i n f o . m s g ;  
 	 h t m l   + =   " < / b o d y > < / h t m l > " ;  
 	  
 }  
  
 f u n c t i o n   p r e v i e w e m a i l   ( ) {  
 	 f o r m a t L i n e s ( e i n f o . m s g ) ;  
 	 h t m l   =   " < h t m l > < t i t l e > *   E - m a i l   P r e v i e w   * < / t i t l e > < b o d y > \ n " ;  
 	 h t m l   + =   " < p r e > "   +   l i n f o . s u b j e c t   +   e i n f o . s u b j e c t   +   " \ n " ;  
 	 h t m l   + =   l i n f o . d a t e   +   D a t e ( )   +   " \ n " ;  
 	 h t m l   + =   l i n f o . t o   +   e i n f o . d e s t   +   " \ n " ;  
 	 h t m l   + =   l i n f o . f r o m   +   e i n f o . e m a i l   +   " < / p r e > \ n " ;  
 	 h t m l   + =   " < p r e > " ;  
 	 h t m l   + =   l i n f o . t o   +   e i n f o . t o   +   " \ n " ;  
 	 h t m l   + =   l i n f o . p o s i t i o n   +   e i n f o . p o s   +   " \ n " ;  
 	 h t m l   + =   l i n f o . f r o m   +   e i n f o . f r o m   +   " \ n \ n " ;  
 	 h t m l   + =   " < p r e > " ;  
 	 h t m l   + =   e i n f o . m s g ;  
 	 h t m l   + =   " < / b o d y > < / h t m l > " ;  
 	 v a r   n e w i n d   =   w i n d o w . o p e n ( " a b o u t : b l a n k " , " n e w i n d " ) ;  
 	 w i t h   ( n e w i n d . d o c u m e n t ) { 	  
 	 	 o p e n ( ) ;  
 	 	 w r i t e ( h t m l ) ;  
 	 	 c l o s e ( ) ;  
 	 }  
 }  
  
 f u n c t i o n   p r e v i e w l e t t e r   ( ) {  
 	 h t m l   =   " < h t m l > < t i t l e > *   L e t t e r   P r e v i e w   * < / t i t l e > \ n " ;  
 	 h t m l   + =   ' < b o d y   w r a p > \ n ' ;  
 	 h t m l   + =   " < p r e > "   +   l i n f o . t o   +   e i n f o . t o ;  
 	 h t m l   + =   " \ n " ;  
 	 h t m l   + =   " \ n "   +   e i n f o . p o s ;  
 	 h t m l   + =   " \ n "   +   e i n f o . o r g ;  
 	 h t m l   + =   " \ n "   +   e i n f o . a d d r 1 . r e p l a c e ( / ,   * / g , " \ r \ n " )   +   " < / p r e > " ; / / r e p l a c e   " , "   o r   " ,   "   w i t h   n e w   l i n e    
 	 h t m l   + =   " < p r e > "   +   l i n f o . f r o m   +   e i n f o . f r o m ;  
 	 h t m l   + =   " \ n "   +   e i n f o . a d d r 2   +   " < / p r e > " ;  
 	 h t m l   + =   " < p r e > "   +   l i n f o . s u b j e c t   +   e i n f o . s u b j e c t   +   " \ n " ;  
 	 h t m l   + =   l i n f o . d a t e   +   d i s p l a y d a t e ( )   +   " < / p r e > < p > " ;  
  
 	 i f ( l i n f o . l a n g   = =   " j a p a n e s e " ) {  
 	 	 h t m l   + =   " < p r e > "   +   e i n f o . t o   +   "   "   +   l i n f o . d e a r   +   " , < / p r e > " ;  
 	 }  
 	 e l s e {  
 	 	 h t m l   + =   " < p r e > "   +   l i n f o . d e a r   +   e i n f o . t o   +   " , < / p r e > " ;  
 	 }  
 	 h t m l   + =   " < p r e > " ;  
 	 h t m l   + =   e i n f o . m s g ;  
 	 h t m l   + =   " < / p r e > " ;  
 	 h t m l   + =   " < p r e > "   +   l i n f o . y o u r s   +   " < / p r e > " ;  
 	 h t m l   + =   " < b r > < b r > < p r e > "   +   e i n f o . f r o m   +   " < / p r e > " ;  
 	 h t m l   + =   " < i m g   s r c = \ " / c g i - b i n / c o u n t l e t . c g i \ "   b o r d e r = 0   w i d t h = 1   h e i g h t = 1 > " ;  
 	 h t m l   + =   " < / b o d y > < / h t m l > " ;  
 	 v a r   n e w i n d   =   w i n d o w . o p e n ( " a b o u t : b l a n k " , " n e w i n d " ) ;  
 	 w i t h   ( n e w i n d . d o c u m e n t ) { 	  
 	 	 o p e n ( ) ;  
 	 	 w r i t e ( h t m l ) ;  
 	 	 c l o s e ( ) ;  
 	 }  
 }  
  
 f u n c t i o n   d r a w d o c   ( ) {  
 v a r   a d d i n   =   n e w   A r r a y ( ) ;  
 v a r   a d d i n s   =   n e w   A r r a y ( ) ;  
 v a r   e h t m l ;  
 v a r   l h t m l ;  
 a d d i n [ 0 ]   =   " f o r m 1 . " ;  
 a d d i n [ 1 ]   =   " . v a l u e ,   " ;  
 a d d i n [ 2 ]   =   " . v a l u e " ;  
 a d d i n s [ 0 ]   =   " t o " ;  
 a d d i n s [ 1 ]   =   " p o s i t i o n " ;  
 a d d i n s [ 2 ]   =   " t o _ a d d r e s s " ;  
 a d d i n s [ 3 ]   =   " r e c i p i e n t " ;  
 a d d i n s [ 4 ]   =   " f r o m " ;  
 a d d i n s [ 5 ]   =   " f r o m _ a d d r e s s " ;  
 a d d i n s [ 6 ]   =   " e m a i l " ;  
 a d d i n s [ 7 ]   =   " s u b j e c t " ;  
 a d d i n s [ 8 ]   =   " m e s s a g e " ;  
 e h t m l   =   ' < i n p u t   t y p e = b u t t o n   v a l u e = " P r e v i e w   E - m a i l "   o n C l i c k = " a d d i n f o ( ' ;  
 l h t m l   =   ' < i n p u t   t y p e = b u t t o n   v a l u e = " P r e v i e w   L e t t e r "   o n C l i c k = " a d d i n f o ( ' ;  
 f o r   ( i = 0 ; i < 8 ; i + + )   {  
 	 e h t m l   + =   a d d i n [ 0 ]   +   a d d i n s [ i ]   +   a d d i n [ 1 ] ;  
 	 l h t m l   + =   a d d i n [ 0 ]   +   a d d i n s [ i ]   +   a d d i n [ 1 ] ;  
 }  
 e h t m l   + =   a d d i n [ 0 ]   +   a d d i n s [ 8 ]   +   a d d i n [ 2 ] ;  
 l h t m l   + =   a d d i n [ 0 ]   +   a d d i n s [ 8 ]   +   a d d i n [ 2 ] ;  
 e h t m l   + =   ' ) ; p r e v i e w e m a i l ( ) ; " > & n b s p ; ' ;  
 l h t m l   + =   ' ) ; p r e v i e w l e t t e r ( ) ; " > ' ;  
 r e t u r n ( e h t m l   +   l h t m l ) ;  
 }  
  
 f u n c t i o n   f o r m a t L i n e s ( t h e S t r i n g ) {  
 	  
 	 / / D e c l a r e   a n d   i n i t   v a r i a b l e s  
 	 v a r   a S t r = t h e S t r i n g ;  
 	 v a r   i = 0 , j = 0 ;  
  
 	 / /   R e m o v e   t h e   e n d   o f   l i n e s  
 	 f o r ( i = 0 ; i < a S t r . l e n g t h ; i + + ) {  
 	 	 / /   i f   t w o   e n d   o f   l i n e s   s k i p  
 	 	 i f ( a S t r . s u b s t r i n g ( i , i + 1 ) = = " \ n "   & &   a S t r . s u b s t r i n g ( i + 1 , i + 2 ) = = " \ n " )  
 	 	 	 i + = 2 ;  
 	 	 i f ( a S t r . s u b s t r i n g ( i , i + 1 ) = = " \ n " )  
 	 	 	 a S t r = a S t r . s u b s t r i n g ( 0 , i ) + " \ n " + a S t r . s u b s t r i n g ( i + 1 , a S t r . l e n g t h ) ;  
 	 } 	  
 	 / /   F o r m a t   f o r   t h e   r e q u i r e d   l e n g t h   o f   e a c h   l i n e  
 	 f o r   ( i = 0 ; i < a S t r . l e n g t h ; i + + ) {  
 	 	 / /   I f   t h e r e   i s   a   p a r a g r a p h   e n d   m a k e   j   e q u a l   t o   t h i s   p o i n t  
 	 	 i f ( a S t r . s u b s t r i n g ( i , i + 1 ) = = " \ n " )  
 	 	 	 j = i ;  
 	 	 i f ( ( i - j ) = = 6 4   & &   i ! = 0 ) {  
 	 	 	 / /   T h i s   w h i l e   w i l l   g o   b a c k w a r d s   t o   f i n d   a   b l a n k   s p a c e  
 	 	 	 j = i ;  
 	 	 	 w h i l e ( a S t r . s u b s t r i n g ( j , j + 1 ) ! = "   "   & &   a S t r . s u b s t r i n g ( j , j + 1 ) ! = " "   & &   j - -   >   0 ) ;  
 	 	 	 a S t r = a S t r . s u b s t r i n g ( 0 , j ) + " \ n " + a S t r . s u b s t r i n g ( j + 1 , a S t r . l e n g t h ) ;    
  
 	 	 }  
 	 } 	  
 	 r e t u r n   a S t r ;  
 }  
  
 
