ÿþ/ /   C a l l   t h e   f u n c t i o n   b e l o w   t o   c h a n g e   " R e t u r n U r l "   p a r a m e t e r   t o   " S o u r c e "  
 i f ( w i n d o w . l o c a t i o n . s e a r c h . s u b s t r i n g ( 1 ) . i n d e x O f ( " R e t u r n U r l " )   ! =   - 1 )   {  
 	 v a r   q S t r   =   q u e r y S t ( " R e t u r n U r l " ) ;  
 }  
  
 f u n c t i o n   q u e r y S t ( q S t r T o C h e c k )   {  
 	 d e s t U r l   =   w i n d o w . l o c a t i o n . s e a r c h . s u b s t r i n g ( 1 ) ;  
         n e w Q S t r   =   d e s t U r l . r e p l a c e ( / R e t u r n U r l / i , " S o u r c e " ) ;  
 	 w i n d o w . l o c a t i o n   =   w i n d o w . l o c a t i o n . p a t h n a m e   +   " ? "   +   n e w Q S t r ;  
 }  
  
 / /   C a l l   t h e   f u n c t i o n   b e l o w   t o   d o   t h e   C o o k i e   L a w   t h i n g  
 f u n c t i o n   d i s a b l e C o o k i e s ( )  
 {  
 	 a l e r t ( " V i   h a r   t a g i t   b o r t   d e   k a k o r   v i   k u n d e ,   v ä n l i g e n   s t ä n g   w e b b s i d a n . " ) ;  
 }  
 / /   A d d e d   p a t h = /   2 0 1 2 - 0 1 - 1 7 ,   J M  
 f u n c t i o n   e n a b l e C o o k i e s ( )  
 {  
 	 v a r   e x d a t e = n e w   D a t e ( ) ;  
 	 e x d a t e . s e t D a t e ( e x d a t e . g e t D a t e ( )   +   3 6 5 ) ;  
 	 v a r   c _ v a l u e = " 1 ; e x p i r e s = " + e x d a t e . t o U T C S t r i n g ( ) + " ; p a t h = / " ;  
 	 d o c u m e n t . c o o k i e = " E n a b l e U n i o n C o o k i e s = "   +   c _ v a l u e ;  
 	  
 	 $ ( " d i v . e n a b l e C o o k i e s " ) . s l i d e U p ( " s l o w " ) ;  
 	 v a r   e l e   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n a b l e C o o k i e s " ) ;  
 	 e l e . s t y l e . d i s p l a y   =   " n o n e " ;       	 	 	       	 	 	  
 }  
  
 f u n c t i o n   c h e c k C o o k i e ( )  
 {  
 	 i f ( w i n d o w . l o c a t i o n . h o s t . i n d e x O f ( " i n t e r n " )   = =   - 1 )   {  
 	 	 v a r   e n a b l e d = g e t C o o k i e ( " E n a b l e U n i o n C o o k i e s " ) ;  
 	 	  
 	 	 i f   ( e n a b l e d ! = n u l l   & &   e n a b l e d ! = " " )  
 	 	 {  
 	 	 	 v a r   e l e   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n a b l e C o o k i e s " ) ;  
 	 	 	 e l e . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 $ ( " d i v . e n a b l e C o o k i e s " ) . s l i d e D o w n ( " s l o w " ) ;  
 	 	 	 v a r   e l e   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n a b l e C o o k i e s " ) ;  
 	 	 	 / / e l e . s t y l e . d i s p l a y   =   " b l o c k " ;  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   g e t C o o k i e ( c _ n a m e )  
 {  
 	 v a r   i , x , y , A R R c o o k i e s = d o c u m e n t . c o o k i e . s p l i t ( " ; " ) ;  
 	 f o r   ( i = 0 ; i < A R R c o o k i e s . l e n g t h ; i + + )  
 	 {  
 	 	 x = A R R c o o k i e s [ i ] . s u b s t r ( 0 , A R R c o o k i e s [ i ] . i n d e x O f ( " = " ) ) ;  
 	 	 y = A R R c o o k i e s [ i ] . s u b s t r ( A R R c o o k i e s [ i ] . i n d e x O f ( " = " ) + 1 ) ;  
 	 	 x = x . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ;  
 	 	 i f   ( x = = c _ n a m e )  
 	 	 {  
 	 	 	 r e t u r n   u n e s c a p e ( y ) ;  
 	 	 }  
 	 }  
 }  
 
