ÿþf u n c t i o n   s h o w r e c e n t c o m m e n t s ( j s o n )   {  
 	 d o c u m e n t . w r i t e ( ' < u l > ' ) ;  
     f o r   ( v a r   i   =   0 ;   i   <   n u m c o m m e n t s ;   i + + )   {  
         v a r   e n t r y   =   j s o n . f e e d . e n t r y [ i ] ;  
         v a r   a l t u r l ;  
  
         i f   ( i   = =   j s o n . f e e d . e n t r y . l e n g t h )   b r e a k ;  
         f o r   ( v a r   k   =   0 ;   k   <   e n t r y . l i n k . l e n g t h ;   k + + )   {  
             i f   ( e n t r y . l i n k [ k ] . r e l   = =   ' a l t e r n a t e ' )   {  
                 a l t u r l   =   e n t r y . l i n k [ k ] . h r e f ;  
                 b r e a k ;  
             }  
         }  
       a l t u r l   =   a l t u r l . r e p l a c e ( " # " ,   " # " ) ;  
       v a r   p o s t l i n k   =   a l t u r l . s p l i t ( " # " ) ;  
       p o s t l i n k   =   p o s t l i n k [ 0 ] ;  
       v a r   l i n k t e x t   =   p o s t l i n k . s p l i t ( " / " ) ;  
       l i n k t e x t   =   l i n k t e x t [ 5 ] ;  
       l i n k t e x t   =   l i n k t e x t . s p l i t ( " . h t m l " ) ;  
       l i n k t e x t   =   l i n k t e x t [ 0 ] ;  
       v a r   p o s t t i t l e   =   l i n k t e x t . r e p l a c e ( / - / g , "   " ) ;  
       v a r   c o m m e n t d a t e   =   e n t r y . p u b l i s h e d . $ t ;  
       v a r   c d y e a r   =   c o m m e n t d a t e . s u b s t r i n g ( 0 , 4 ) ;  
       v a r   c d m o n t h   =   c o m m e n t d a t e . s u b s t r i n g ( 5 , 7 ) ;  
       v a r   c d d a y   =   c o m m e n t d a t e . s u b s t r i n g ( 8 , 1 0 ) ;  
       v a r   m o n t h n a m e s   =   n e w   A r r a y ( ) ;  
       m o n t h n a m e s [ 1 ]   =   " E n e r o " ;  
       m o n t h n a m e s [ 2 ]   =   " F e b r e r o " ;  
       m o n t h n a m e s [ 3 ]   =   " M a r z o " ;  
       m o n t h n a m e s [ 4 ]   =   " A b r i l " ;  
       m o n t h n a m e s [ 5 ]   =   " M a y o " ;  
       m o n t h n a m e s [ 6 ]   =   " J u n i o " ;  
       m o n t h n a m e s [ 7 ]   =   " J u l i o " ;  
       m o n t h n a m e s [ 8 ]   =   " A g o s t o " ;  
       m o n t h n a m e s [ 9 ]   =   " S e p t i e m b r e " ;  
       m o n t h n a m e s [ 1 0 ]   =   " O c t u b r e " ;  
       m o n t h n a m e s [ 1 1 ]   =   " N o v i e m b r e " ;  
       m o n t h n a m e s [ 1 2 ]   =   " D i c i e m b r e " ;  
       i f   ( " c o n t e n t "   i n   e n t r y )   {  
           v a r   c o m m e n t   =   e n t r y . c o n t e n t . $ t ; }  
       e l s e  
       i f   ( " s u m m a r y "   i n   e n t r y )   {  
           v a r   c o m m e n t   =   e n t r y . s u m m a r y . $ t ; }  
       e l s e   v a r   c o m m e n t   =   " " ;  
       v a r   r e   =   / < \ S [ ^ > ] * > / g ;    
       c o m m e n t   =   c o m m e n t . r e p l a c e ( r e ,   " " ) ;  
  
       d o c u m e n t . w r i t e ( ' < l i > ' ) ;  
       d o c u m e n t . w r i t e ( ' < b > '   +   e n t r y . a u t h o r [ 0 ] . n a m e . $ t   +   ' < / b > ' ) ;  
  
       i f   ( s h o w p o s t t i t l e   = =   t r u e )  
       d o c u m e n t . w r i t e ( '   e n :   < a   h r e f = " '   +   a l t u r l   +   ' " > '   +   p o s t t i t l e   +   ' < / a > ' ) ;  
  
       i f   ( s h o w c o m m e n t d a t e   = =   t r u e )  
       d o c u m e n t . w r i t e ( '      < s p a n   c l a s s = " s m a l l e s t " > e s c r i b i ó   e l   d í a   '   +   c d d a y   +   '   d e   '     +   m o n t h n a m e s [ p a r s e I n t ( c d m o n t h , 1 0 ) ]   +   ' < / s p a n > ' ) ;  
  
       d o c u m e n t . w r i t e ( ' < / l i > ' ) ;  
  
 i f   ( s h o w p o s t s u m m a r y   = =   t r u e ) {  
       i f   ( c o m m e n t . l e n g t h   <   n u m c h a r s ) {  
                   d o c u m e n t . w r i t e ( c o m m e n t ) ; }  
       e l s e  
                 {    
                   c o m m e n t   =   c o m m e n t . s u b s t r i n g ( 0 ,   n u m c h a r s ) ;  
                   v a r   q u o t e E n d   =   c o m m e n t . l a s t I n d e x O f ( "   " ) ;  
                   c o m m e n t   =   c o m m e n t . s u b s t r i n g ( 0 ,   q u o t e E n d ) ;  
                   d o c u m e n t . w r i t e ( c o m m e n t   +   ' < a   h r e f = " '   +   a l t u r l   +   ' " > . . . < / a > ' ) ; }  
                 }  
       }  
 	 d o c u m e n t . w r i t e ( ' < / u l > ' ) ;  
 } 
