ÿþv a r   h t t p   =   f a l s e ;  
  
 i f ( n a v i g a t o r . a p p N a m 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 " )   {  
     h t t p   =   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;  
 }   e l s e   {  
     h t t p   =   n e w   X M L H t t p R e q u e s t ( ) ;  
 }  
  
 f u n c t i o n   c o n f i r m _ r e m o v e _ i t e m ( u r l ) 	 {  
 	 v a r   a n s w e r   =   c o n f i r m ( "   B e n t   u   z e k e r   d a t   u   d i t   i t e m   w e n s t   t e   v e r w i j d e r e n ? " ) ;  
 / / a l e r t ( u r l + ' &   r e f e r e r = ' + e s c a p e ( w i n d o w . l o c a t i o n ) ) ;  
 	 i f   ( a n s w e r ) {  
 	 	 w i n d o w . l o c a t i o n   =   u r l + ' & r e f e r e r = ' + e s c a p e ( w i n d o w . l o c a t i o n ) ;  
 	 }  
 }  
  
 f u n c t i o n   t o g g l e D i v ( d i v i d ) {  
         i f ( 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 i d ) . s t y l e . d i s p l a y   = =   ' n o n 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 i d ) . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
         } 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 i d ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
         }  
     }  
  
  
 f u n c t i o n   g e t L a n g ( )   {  
 	 v a r   m y m e t a t a g s   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " m e t a " ) ;  
 	 v a r   r e t u r n _ s t r   =   ' ' ;  
 	 f o r   ( v a r   i = 0 ;   i < m y m e t a t a g s . l e n g t h ;   i + + )   {  
 	 	 i f   ( m y m e t a t a g s [ i ] . g e t A t t r i b u t e ( " n a m e " )   = =   " l a n g u a g e " )   {  
 	 	 	 r e t u r n _ s t r   =   m y m e t a t a g s [ i ] . g e t A t t r i b u t e ( " c o n t e n t " ) ;  
 	 	 }  
 	 }  
 	 i f   ( r e t u r n _ s t r   = =   ' N L ' )   {  
 	 	 r e t u r n _ s t r   =   ' ' ;  
 	 }  
 	 r e t u r n   r e t u r n _ s t r ;  
 }  
  
  
 f u n c t i o n   a d d 2 c a r t ( i d ,   n o c a c h e )   {  
 	 n e x t _ i d   =   i d * 1 + 1 ;  
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' q t ' + n e x t _ i d ) )   {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' q t ' + n e x t _ i d ) . s e l e c t ( ) ;  
 	 }  
 	 v a r   v a l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' q t ' + i d ) . v a l u e ;  
 	 v a r   l a n g   =   g e t L a n g ( ) ;  
 	 i f   ( v a l > = 1 )   {  
 	 	 h t t p . a b o r t ( ) ;  
 	 	 h t t p . o p e n ( " G E T " ,   w i n d o w . l o c a t i o n + " & a d d 2 c a r t = " + i d + " & q t = " + v a l + " & o r d e r _ i d = " + n o c a c h e ,   t r u e ) ;  
 	 	 h t t p . s e n d ( n u l l ) ;  
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( " t r _ " + ( i d * 1 + 1 ) ) . c l a s s N a m e = ' a d d e d ' ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " c a r t _ d i v _ " + ( i d * 1 ) ) . i n n e r H T M L   =   " < a   h r e f = \ " g e n . p h p ? p a g e = o r d e r \ " > " + v a l + " < / a > " ;  
 	 }   e l s e   {  
 	 	 a l e r t _ m e s s   =   A r r a y ( ) ;  
 	 	 a l e r t _ m e s s [ ' ' ]   =   " ' " + v a l + " '   i s   g e e n   g e l d i g e   h o e v e e l h e i d . . . " ;  
 	 	 a l e r t _ m e s s [ ' F R ' ]   =   " ' " + v a l + " '   n ' e s t   p a s   u n   q u a n t i t é   v a l a b l e " ;  
 	 	 a l e r t _ m e s s [ ' E N ' ]   =   " ' " + v a l + " '   i s   n o t   a   v a l i d   q u a n t i t y . . . " ;  
 	 	 a l e r t _ m e s s [ ' D E ' ]   =   " ' " + v a l + " '   i s   n o t   a   v a l i d   q u a n t i t y . . . " ;  
 	 	 a l e r t ( a l e r t _ m e s s [ l a n g ] ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' q t ' + i d ) . f o c u s ( ) ;  
 	 }  
 }  
  
 f u n c t i o n   r e m o v e f r o m c a r t ( i d )   {  
 	 v a r   l a n g   =   g e t L a n g ( ) ;  
 	 c o n f i r m _ m e s s   =   A r r a y ( ) ;  
 	 c o n f i r m _ m e s s [ ' ' ]   =   " W e e t   u   z e k e r   d a t   u   d i t   i t e m   w i l t   v e r w i j d e r e n ? " ;  
 	 c o n f i r m _ m e s s [ ' F R ' ]   =   " V o u s   ê t e s   s u r ? " ;  
 	 c o n f i r m _ m e s s [ ' E N ' ]   =   " A r e   y o u   s u r e   y o u   w i s h   t o   r e m o v e   t h i s   i t e m ? " ;  
 	 c o n f i r m _ m e s s [ ' D E ' ]   =   " S i c h e r ? " ;  
 	 x   =   c o n f i r m ( c o n f i r m _ m e s s [ l a n g ] ) ;  
 	 i f   ( x )   {  
 	 	 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 + " & a m p ; r e m o v e f r o m c a r t = " + i d ;  
 	 }  
 }  
  
 f u n c t i o n   p l a y V i d e o ( v i d e o )   {  
         t h i s M o v i e ( " e x t e r n a l I n t e r f a c e E x a m p l e " ) . p l a y V i d e o ( v i d e o ) ;  
 }  
  
 f u n c t i o n   t h i s M o v i e ( m o v i e N a m e )   {  
         i f   ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " M i c r o s o f t " )   ! =   - 1 )   {  
                 r e t u r n   w i n d o w [ m o v i e N a m e ]  
         }  
         e l s e   {  
                 r e t u r n   d o c u m e n t [ m o v i e N a m e ]  
         }  
 }  
  
 f u n c t i o n   i s N u m e r i c ( v a l ) { r e t u r n ( p a r s e F l o a t ( v a l , 1 0 ) = = ( v a l * 1 ) ) ; }  
  
  
 f u n c t i o n   r e m o v e O r d e r ( i d , t y p e )   {  
 	 v a r   l a n g   =   g e t L a n g ( ) ;  
 	 c o n f i r m _ m e s s   =   A r r a y ( ) ;  
 	 c o n f i r m _ m e s s [ ' ' ]   =   " W e e t   u   z e k e r   d a t   u   d i t   i t e m   w i l t   v e r w i j d e r e n ? " ;  
 	 c o n f i r m _ m e s s [ ' F R ' ]   =   " V o u s   ê t e s   s u r ? " ;  
 	 c o n f i r m _ m e s s [ ' E N ' ]   =   " A r e   y o u   s u r e   y o u   w i s h   t o   r e m o v e   t h i s   i t e m ? " ;  
 	 c o n f i r m _ m e s s [ ' D E ' ]   =   " S i c h e r ? " ;  
 	 x   =   c o n f i r m ( c o n f i r m _ m e s s [ l a n g ] ) ;  
 	 i f   ( x )   {  
 	 	 i f ( t y p 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 + " & a m p ; r e m o v e _ o r d e r = " + i d ;  
 	 	 }  
 	 	 e l s 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 + " & a m p ; s e n t = t r u e & a m p ; r e m o v e _ o r d e r = " + i d ;  
 	 	 }  
 	 	  
 	 }  
 }  
 
