ÿþf u n c t i o n   u p d a t e T o p B a s k e t ( )  
 	 {  
 	 	 v a r   s W r i t e   =   " " ;  
 	 	 m y C o o k i e   =   G e t C o o k i e ( " b s C a r t " ) ;  
  
 	 	  
 	 	 i f   ( m y C o o k i e )  
 	 	 {  
 	 	 	 v a r   q u a n t i t y   =   0 ;  
 	 	 	 v a r   t e m p   =   m y C o o k i e . s p l i t ( " : : " ) ;  
 	 	 	 v a r   l e n   =   t e m p . l e n g t h ;  
 	 	 	 i f   ( l e n   >   1 )  
 	 	 	 {  
 	 	 	 	 / /   l o o p i n g   t h r o u g h   e a c h   c o m b i n a t i o n   o f   i n f o r m a t i o n   i n   t h e   a r r a y .  
 	 	 	 	 f o r   ( i   =   0 ;   i   <   l e n ;   i   + + )  
 	 	 	 	 {  
 	 	 	 	 	 / /   e x t r a c t i n g   i n f o r m a t i o n   i n t o   a n o t h e r   a r r a y   b y   s p l i t t i n g   t h e   c o m b i n a t i o n   o n   ' : '   s e p e r a t o r .  
 	 	 	 	 	 t e m p 1   =   t e m p [ i ] . s p l i t ( " : " ) ;  
 	 	 	 	 	 i f   ( t e m p 1 . l e n g t h   >   1 )  
 	 	 	 	 	 {  
 	 	 	 	 	 	 / /   m u l t i p l y i n g   t h e   p r i c e   a n d   q u a n t i t y .  
 	 	 	 	 	 	 q u a n t i t y   + =   p a r s e I n t ( t e m p 1 [ 2 ] ) ;  
 	 	 	 	 	 }  
 	 	 	 	 }  
 	 	 	 }  
 	 	 }  
 	 	 i f   ( q u a n t i t y )  
 	 	 {  
 	 	           s W r i t e   =   ( ' < a   h r e f = " d e f a u l t . a s p ? i d = 2 1 & m n u = 2 1 "   t i t l e = " G å   t i l   k u r v " > < i m g   s r c = " / i m a g e s / b a s k e t i c o n . p n g "   b o r d e r = " 0 "   a l t = " D e r   e r   v a r e r   i   k u r v e n "   / > < / a > ' ) ;  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 s W r i t e   =   ( '   ' ) ;  
 	 	 }  
  
 	 	 i f   ( w i n d o w . p a r 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 ( " d i v S m l B a s k e t " ) . i n n e r H T M L   ! =   n u l l )  
 	 	 {  
 	 	 	 w i n d o w . p a r 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 ( " d i v S m l B a s k e t " ) . i n n e r H T M L   =   s W r i t e ;  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d i v S m l B a s k e t " ) . i n n e r H T M L   =   s W r i t e ;  
 	 	 }      
 	 }  
 	  
 	 	 u p d a t e T o p B a s k e t ( ) ;  
 	 	  
 	 	  
 	  
 
