ÿþf u n c t i o n   c h a n g e S t y l e ( e )   {  
 	 v a r   o b j e c t ;  
 	 i f ( w i n d o w . e v e n t )  
 	 	 o b j e c t   =   e v e n t . s r c E l e m e n t ;  
 	 e l s e  
 	 	 o b j e c t   =   e . t a r g e t ;  
 	 	  
 	 	  
 	 i f   ( o b j e c t . c l a s s N a m e   = =   ' s u b O f f ' )  
 	 	 o b j e c t . c l a s s N a m e   =   ' s u b O v e r ' ;  
 	 e l s e   i f   ( o b j e c t . c l a s s N a m e   ! =   ' s u b O n ' )  
 	 	 o b j e c t . c l a s s N a m e   =   ' s u b O f f ' ;  
 }  
  
 f u n c t i o n   l o a d ( u r l )   {  
 	 i f ( g e t C o o k i e ( ' W E B S E S S I O N ' ,   ' I D ' ) )  
 	 	 d o c u m e n t . l o c a t i o n . h r e f   =   u r l ;  
 	 e l s e  
 	 	 i f ( u r l . i n d e x O f ( ' ? ' )   >   0 )  
 	 	 	 d o c u m e n t . l o c a t i o n . h r e f   =   u r l   +   ' & w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 	 	 e l s e  
 	 	 	 d o c u m e n t . l o c a t i o n . h r e f   =   u r l   +   ' ? w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 }  
  
 f u n c t i o n   g e t C o o k i e ( n a m e ,   s u b n a m e )   {  
 	 v a r   c o o k i e   =   d o c u m e n t . c o o k i e ;    
 	 v a r   i n d e x   =   c o o k i e . i n d e x O f ( n a m e   +   " = " ) ;  
 	  
 	 i f   ( i n d e x   = =   - 1 )   r e t u r n   n u l l ;  
 	 i n d e x   =   c o o k i e . i n d e x O f ( " = " ,   i n d e x )   +   1 ;    
 	 v a r   e n d s t r   =   c o o k i e . i n d e x O f ( " ; " ,   i n d e x ) ;  
 	 i f   ( e n d s t r   = =   - 1 )   e n d s t r   =   c o o k i e . l e n g t h ;  
 	 c o o k i e   =   c o o k i e . s u b s t r i n g ( i n d e x ,   e n d s t r ) ;  
 	 i f   ( s u b n a m e )   {  
 	 	 i n d e x   =   c o o k i e . i n d e x O f ( s u b n a m e   +   " = " ) ;  
 	 	 i f   ( i n d e x   = =   - 1 )   r e t u r n   n u l l ;  
 	 	 i n d e x   =   c o o k i e . i n d e x O f ( " = " ,   i n d e x )   +   1 ;    
 	 	 e n d s t r   =   c o o k i e . i n d e x O f ( " & " ,   i n d e x ) ;  
 	 	 i f   ( e n d s t r   = =   - 1 )   e n d s t r   =   c o o k i e . l e n g t h ;  
 	 	 c o o k i e   =   c o o k i e . s u b s t r i n g ( i n d e x ,   e n d s t r ) ;  
 	 }  
 	  
 	 r e t u r n   u n e s c a p e ( c o o k i e ) ;  
 }  
  
 f u n c t i o n   w r i t e C o o k i e ( n a m e ,   v a l u e )   {  
 	 v a r   c C o o k i e ;  
 	 v a r   d a t e   =   n e w   D a t e ( ) ;  
 	 v a r   n e w D a t e   =   n e w   D a t e ( ( d a t e . g e t F u l l Y e a r ( ) + 1 ) , d a t e . g e t M o n t h ( ) , d a t e . g e t D a t e ( ) ) ;  
 	 c C o o k i e   =   n a m e   +   ' = '   +   v a l u e   +   ' ;   p a t h = / ' ;  
 	 d o c u m e n t . c o o k i e   =   c C o o k i e ;  
 }  
  
 f u n c t i o n   r e m o v e F r o m C o o k i e ( n a m e , s t r i n g )   {  
 	 v a r   c o o k i e   =   g e t C o o k i e ( ' C N P V o t e s ' ) ;  
 	 w r i t e C o o k i e ( n a m e , c o o k i e . r e p l a c e ( s t r i n g , ' ' ) ) ;  
 }  
  
 f u n c t i o n   i n i t P a g e ( )   {  
 	 / / C h e c k   i f   w e   s u p p o r t   c o o k i e s   o t h e r w i s e   t r y   t o   a d d   i t   t o   h r e f  
 	 i f   ( n u l l   = =   g e t C o o k i e ( ' W E B S E S S I O N ' ,   ' I D ' ) )  
 	 	 f o r ( i = 0 ;   i < d o c u m e n t . l i n k s . l e n g t h ;   i + + )   {  
 	 	 	 i f ( d o c u m e n t . l i n k s [ i ] . h r e f . s u b s t r i n g ( 0 , 4 ) = = ' h t t p ' )  
 	 	 	 	 i f ( d o c u m e n t . l i n k s [ i ] . h r e f . i n d e x O f ( ' ? ' )   >   0 )  
 	 	 	 	 	 d o c u m e n t . l i n k s [ i ] . h r e f   + =   ' & w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 	 	 	 	 e l s e  
 	 	 	 	 	 d o c u m e n t . l i n k s [ i ] . h r e f   + =   ' ? w e b s e s s i o n i d = '   +   w e b s e s s i o n i d ;  
 	 	 }  
 }  
  
 f u n c t i o n   p o p u p ( u r l ,   w i d t h ,   h e i g h t ,   s c r o l l b a r s ,   e x t r a s )   {  
 	 i f ( e x t r a s ! = n u l l )  
 	 	 e x t r a s   =   ' , '   +   e x t r a s ;  
 	 e l s e  
 	 	 e x t r a s   =   ' , '   +   ' l o c a t i o n b a r = 0 , m e n u b a r = 0 , s t a t u s b a r = 0 , t o o l b a r = 0 , s t a t u s = 0 , l o c a t i o n = 0 , r e s i z a b l e = n o ' ;  
 	 n e w w i n   =   w i n d o w . o p e n ( u r l ,   ' ' , ' w i d t h = '   +   w i d t h   + ' , h e i g h t = '   +   h e i g h t   +   ' ,   s c r o l l b a r s = '   +   s c r o l l b a r s   +   e x t r a s ) ;  
 	 n e w w i n . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   s e t F o r m V a l u e ( f o r m ,   i t e m ,   v a l u e )   {  
 	 d o c u m e n t . f o r m s [ f o r m ] . e l e m e n t s [ i t e m ] . v a l u e   =   v a l u e ;  
 }  
  
 f u n c t i o n   s e t F o r m F o c u s ( f o r m ,   i t e m )   {  
 	 d o c u m e n t . f o r m s [ f o r m ] . e l e m e n t s [ i t e m ] . f o c u s ( ) ;  
 }  
  
 f u n c t i o n   u n i D e c o d e ( s t r )   {  
 	 / / C o n v e r t   2 - b y t e   c h a r s   t o   o n e   b y t e   ( n e e d e d   b e c a u s e   M i c r o s o f t   I n t e r n e t   E x p l o r e r   c a n n o t   h a n d l e   U n i c o d e   s t r i n g s   i n   J a v a S c r i p t )  
 	 v a r   r e ;  
 	 r e = / Ã œ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ü " ) ;  
 	 r e = / Ã ¼ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ü " ) ;  
 	 r e = / Ã ‰ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " É " ) ;  
 	 r e = / Ã © / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " é " ) ;  
 	 r e = / Ã ¥ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " å " ) ;  
 	 r e = / Ã – / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ö " ) ;  
 	 r e = / Ã „ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ä " ) ;  
 	 r e = / Ã ¶ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ö " ) ;  
 	 r e = / Ã … / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Å " ) ;  
 	 r e = / Ã ¤ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ä " ) ;  
 	 r e = / Ã ˜ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Ø " ) ;  
 	 r e = / Ã ¸ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " ø " ) ;  
 	 r e = / Ã † / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " Æ " ) ;  
 	 r e = / Ã ¦ / g ;  
 	 s t r = s t r . r e p l a c e ( r e ,   " æ " ) ;  
 	  
 	 r e t u r n   s t r ;  
 }  
  
 
