ÿþ  < x s l : t e x t   d i s a b l e - o u t p u t - e s c a p i n g = " y e s " > < ! [ C D A T A [  
 	     < s c r i p t >  
 	 	   f u n c t i o n   I n i t S e a r c h ( e ) {  
 	 	 	 v a r   _ e v t = ( e ) ? e : ( w i n d o w . e v e n t ) ? w i n d o w . e v e n t : n u l l ;  
 	 	 	 i f ( _ e v t )  
 	 	 	 {  
 	 	 	     _ k e y = ( _ e v t . c h a r C o d e ) ? _ e v t . c h a r C o d e :   ( ( _ e v t . k e y C o d e ) ? _ e v t . k e y C o d e : ( ( _ e v t . w h i c h ) ? _ e v t . w h i c h : 0 ) )  
 	 	 	     i f ( _ k e y = = " 1 3 " )  
 	 	 	     {                      
 	 	 	 	   o n S e a r c h ( ) ;  
 	 	 	     }  
 	 	 	 }          
 	 	     }  
 	 	     f u n c t i o n   o n S e a r c h ( )  
 	 	 	 {  
 	 	  
 	 	 	 	 v a r   s t r L i n k   =   " ] ] > < / x s l : t e x t > < x s l : v a l u e - o f   s e l e c t = " x s l t B a s i c : g e t L i n k B y T a b ( 9 3 ) " / > < x s l : t e x t   d i s a b l e - o u t p u t - e s c a p i n g = " y e s " > < ! [ C D A T A [ ? " ;  
 	 	 	 	 v a r   m o d u l e I d   =   ] ] > < / x s l : t e x t > < x s l : v a l u e - o f   s e l e c t = " x s l t B a s i c : g e t M o d u l e I d ( ) " / > < x s l : t e x t   d i s a b l e - o u t p u t - e s c a p i n g = " y e s " > < ! [ C D A T A [ ;  
 	 	 	 	  
 	 	 	 	 v a r   s t r C a t O p t i o n I d ;  
 	 	 	 	 v a r   o p t i o n   =   $ ( " # L o a i S P " ) . a t t r ( " v a l u e " ) ;  
 	 	 	 	 i f ( o p t i o n   = =   1 )  
 	 	 	 	 {  
 	 	 	 	 	 s t r C a t O p t i o n I d   =   " # S e l C a t _ M o i "   +   m o d u l e I d ;  
 	 	 	 	 }  
 	 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 	 s t r C a t O p t i o n I d   =   " # S e l C a t _ C u "   +   m o d u l e I d ;  
 	 	 	 	 }  
 	 	 	 	          
 	 	 	 	 v a r   c a t S e l e c t e d   =   $ ( s t r C a t O p t i o n I d ) . a t t r ( " v a l u e " ) ;  
 	 	 	 	 v a r   s t r I n p u t V a l u e   =   " # I n p u t V a l u e _ "   +   m o d u l e I d ;  
 	 	 	 	 v a r   s t r T e x t   =   t r i m ( $ ( s t r I n p u t V a l u e ) . a t t r ( " v a l u e " ) ,   "   " ) ;  
 	 	 	 	  
 	 	 	 	 v a r   Y e a r O p t i o n I d   =   " # N a m S X _ "   +   m o d u l e I d ;  
 	 	 	 	 v a r   Y e a r S e l e c t e d   =   $ ( Y e a r O p t i o n I d ) . a t t r ( " v a l u e " ) ;  
 	 	 	 	  
 	 	 	 	 v a r   G i a T u O p t i o n I d   =   " # G i a T u _ "   +   m o d u l e I d ;  
 	 	 	 	 v a r   G i a T u S e l e c t e d   =   $ ( G i a T u O p t i o n I d ) . a t t r ( " v a l u e " ) ;  
 	 	 	 	  
 	 	 	 	 v a r   G i a D e n O p t i o n I d   =   " # G i a D e n _ "   +   m o d u l e I d ;  
 	 	 	 	 v a r   G i a D e n S e l e c t e d   =   $ ( G i a D e n O p t i o n I d ) . a t t r ( " v a l u e " ) ; 	 	 	 	  
 	 	 	 	  
 	 	 	 	 v a r   t e m p P a t h   =   " " ;  
 	 	 	 	 v a r   t e m p I d ;  
 	 	 	 	 v a r   i ;  
 	 	 	 	 v a r   c a , c b , c c , c d ;  
 	 	 	 	 c a = " " ; c b = " " ; c c = " " ; c d = " " ;  
 	 	 	 	  
 	 	 	 	 i f ( c a t S e l e c t e d   ! =   - 1 ) { c a   =   " S t r C a t s = | "   +   c a t S e l e c t e d   +   " | " ; }  
 	 	 	 	 i f ( s t r T e x t   ! =   " "   & &   s t r T e x t   ! =   n u l l   & &   t r i m ( s t r T e x t )   ! =   " C h Ín   t ê n   s £n   p h ©m " ) { c b   =   " S e a r c h = "   +   s t r T e x t ; }  
 	 	 	 	 i f ( Y e a r S e l e c t e d   ! =   - 1 ) { c c   =   " S t r D y n a m i c = | 1 = "   +   Y e a r S e l e c t e d   +   " | " ;   }  
 	 	 	 	 i f ( G i a T u S e l e c t e d   ! =   - 1   & &   G i a D e n S e l e c t e d   ! =   - 1 ) {  
 	 	 	 	 	 i f ( G i a T u S e l e c t e d   <   G i a D e n S e l e c t e d ) { c d   =   " M i n P r i c e = "   +   G i a T u S e l e c t e d   +   " & M a x P r i c e = "   +   G i a D e n S e l e c t e d ; }  
 	 	 	 	 	 e l s e { a l e r t ( " G i á   t ë  p h £i   l Ûn   h ¡n   g i á   ¿n . " ) ;   r e t u r n   f a l s e ; } }  
 	 	 	 	 	  
 	 	 	 	 i f ( c a   = =   " "   & &   c b   = =   " "   & &   c c   = =   " "   & &   c d   = =   " " ) { a l e r t ( " B ¡n   c h °a   n h ­p   t ë  k h ó a   t ì m   k i ¿m   h o ·c   c h °a   l ña   c h Ín   n Ùi   d u n g   t ì m   k i ¿m . " ) ;   r e t u r n   f a l s e ; }  
 	 	 	          
 	 	 	 	 i f ( c a   ! =   " " )   { s t r L i n k   =   s t r L i n k   +   c a   +   " & " ; }  
 	 	 	 	 i f ( c b   ! =   " " )   { s t r L i n k   =   s t r L i n k   +   c b   +   " & " ; }  
 	 	 	 	 i f ( c c   ! =   " " )   { s t r L i n k   =   s t r L i n k   +   c c   +   " & " ; }  
 	 	 	 	 i f ( c d   ! =   " " )   { s t r L i n k   =   s t r L i n k   +   c d   +   " & " ; }  
 	 	 	 	  
 	 	 	 	 s t r L i n k   =   s t r L i n k . s u b s t r i n g ( 0 , s t r L i n k . l e n g t h - 1 ) ;  
 	 	 	 	 w i n d o w . l o c a t i o n . h r e f   =   s t r L i n k ;  
 	 	 	 }    
 	 	 	         < ! - -   C a t   k y   t u   t h u a   - - >  
 	 	 	 	 	 f u n c t i o n   t r i m ( s t r ,   c h a r s )   {  
 	 	 	 	 	 	 r e t u r n   l t r i m ( r t r i m ( s t r ,   c h a r s ) ,   c h a r s ) ;  
 	 	 	 	 	 }  
 	 	 	 	 	    
 	 	 	 	 	 f u n c t i o n   l t r i m ( s t r ,   c h a r s )   {  
 	 	 	 	 	 	 c h a r s   =   c h a r s   | |   " \ \ s " ;  
 	 	 	 	 	 	 r e t u r n   s t r . r e p l a c e ( n e w   R e g E x p ( " ^ [ "   +   c h a r s   +   " ] + " ,   " g " ) ,   " " ) ;  
 	 	 	 	 	 }  
 	 	 	 	 	    
 	 	 	 	 	 f u n c t i o n   r t r i m ( s t r ,   c h a r s )   {  
 	 	 	 	 	 	 c h a r s   =   c h a r s   | |   " \ \ s " ;  
 	 	 	 	 	 	 r e t u r n   s t r . r e p l a c e ( n e w   R e g E x p ( " [ "   +   c h a r s   +   " ] + $ " ,   " g " ) ,   " " ) ;  
 	 	 	 	 	 }  
 	     < / s c r i p t >  
 	     ] ] > < / x s l : t e x t > 
