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