ÿþf u n c t i o n   p o p u p ( l i n k )  
 {  
         w i n d o w . o p e n ( l i n k , ' ' ) ;  
 }  
  
 f u n c t i o n   p o p u p 1 ( s L i n k )  
 {  
         v a r   i n d e x = n u l l ;  
         f o r   ( v a r   i = 0 ;   i < d o c u m e n t . f o r m 1 . l u a c h o n . l e n g t h ;   i + + )  
         {  
 	 	 i f   ( d o c u m e n t . f o r m 1 . l u a c h o n [ i ] . c h e c k e d = = t r u e )  
 	 	 {  
 	 	 	 i n d e x = d o c u m e n t . f o r m 1 . l u a c h o n [ i ] . v a l u e ;  
 	 	 	 b r e a k ;  
 	 	 }  
 	 }  
 	 i f   ( i n d e x ! = n u l l )  
 	 {  
 	 	 D H B K . W U C V o t e . A d d B i e u q u y e t ( i n d e x , s L i n k , A d d V o t e _ C a l l B a c k ) ;  
 	 }  
 	  
 }  
  
         f u n c t i o n   A d d V o t e _ C a l l B a c k ( r e s p o n s e )  
         {  
                 i f   ( r e s p o n s e . e r r o r   ! =   n u l l )    
                 {  
                         a l e r t ( r e s p o n s e . e r r o r . M e s s a g e ) ;  
                         r e t u r n ;  
                 }  
                 e l s e  
                 {        
                 i f   ( r e s p o n s e . v a l u e   ! =   n u l l   & &   r e s p o n s e . v a l u e   ! =   ' ' )  
 	 	         i f   ( r e s p o n s e . v a l u e   = =   ' s p a m ' )  
 	 	         {  
 	 	                 a l e r t ( ' B ¡n   c h É  °ãc   b i Ãu   q u y ¿t   1   l §n ' ) ;  
 	 	         }  
 	 	         e l s e  
 	 	                 w i n d o w . o p e n ( r e s p o n s e . v a l u e , ' ' ) ;  
                 }  
         }  
 
