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