ÿþf u n c t i o n   c h a n g e ( f o r m )    
 {    
 i f   ( f o r m . u r l . s e l e c t e d I n d e x   ! = 0 )    
 p a r e n t . l o c a t i o n   =   f o r m . u r l . o p t i o n s [ f o r m . u r l . s e l e c t e d I n d e x ] . v a l u e    
 }    
 f u n c t i o n   s e t C o o k i e (   n a m e ,   v a l u e ,   e x p i r e d a y s   )    
 {    
                 v a r   t o d a y D a t e   =   n e w   D a t e ( ) ;    
                 t o d a y D a t e . s e t D a t e (   t o d a y D a t e . g e t D a t e ( )   +   e x p i r e d a y s   ) ;    
                 d o c u m e n t . c o o k i e   =   n a m e   +   " = "   +   e s c a p e (   v a l u e   )   +   " ;   p a t h = / ;   e x p i r e s = "   +   t o d a y D a t e . t o G M T S t r i n g ( )   +   " ; "    
 }    
 f u n c t i o n   g e t C o o k i e (   n a m e   )    
 {    
                 v a r   n a m e O f C o o k i e   =   n a m e   +   " = " ;    
                 v a r   x   =   0 ;    
                 w h i l e   (   x   < =   d o c u m e n t . c o o k i e . l e n g t h   )    
                 {    
                                 v a r   y   =   ( x + n a m e O f C o o k i e . l e n g t h ) ;    
                                 i f   (   d o c u m e n t . c o o k i e . s u b s t r i n g (   x ,   y   )   = =   n a m e O f C o o k i e   )   {    
                                                 i f   (   ( e n d O f C o o k i e = d o c u m e n t . c o o k i e . i n d e x O f (   " ; " ,   y   ) )   = =   - 1   )    
                                                                 e n d O f C o o k i e   =   d o c u m e n t . c o o k i e . l e n g t h ;    
                                                 r e t u r n   u n e s c a p e (   d o c u m e n t . c o o k i e . s u b s t r i n g (   y ,   e n d O f C o o k i e   )   ) ;    
                                 }    
                                 x   =   d o c u m e n t . c o o k i e . i n d e x O f (   "   " ,   x   )   +   1 ;    
                                 i f   (   x   = =   0   )    
                                                 b r e a k ;    
                 }    
                 r e t u r n   " " ;    
 }    
  
 
