ÿþ/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   T e x t b o x   c h i   n h a p   s o    
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 f u n c t i o n   I n p u t N u m b e r ( I D T e x t b o x ,   P o s i t i o n M e s s )   {  
         v a r   V a l u e B e f o r e T y p e ;  
         $ ( P o s i t i o n M e s s ) . c s s ( " c o l o r " ,   " r e d " ) ;  
  
         $ ( I D T e x t b o x ) . k e y d o w n ( f u n c t i o n   ( )   {  
                 i f   ( i s N a N ( $ ( I D T e x t b o x ) . v a l ( ) )   = =   f a l s e )   {  
                         V a l u e B e f o r e T y p e   =   $ ( I D T e x t b o x ) . v a l ( ) ;  
                 }  
         } ) ;  
  
         $ ( I D T e x t b o x ) . k e y u p ( f u n c t i o n   ( )   {  
                 V a l u e A f t e r T y p e   =   $ ( I D T e x t b o x ) . v a l ( ) ;  
  
                 i f   ( i s N a N ( V a l u e A f t e r T y p e )   = =   t r u e )   {  
  
                         $ ( P o s i t i o n M e s s ) . h t m l ( " C h É  n h ­p   s Ñ" ) . s h o w ( ) . f a d e O u t ( " s l o w " ) ;   ;  
                         $ ( I D T e x t b o x ) . v a l ( V a l u e B e f o r e T y p e ) ;  
                 }  
  
         } ) ;  
  
 } ;  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   C o n t r o l   k   °ãc   b Ï  t r Ñn g  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 f u n c t i o n   C h e c k N u l l B e f o r e S u b m i t ( I D C o n t r o l ,   M e s s )   {  
  
         i f   ( $ ( I D C o n t r o l ) . v a l ( )   = =   " " )   {  
                 s h o w M e s s a g e B o x ( M e s s ) ;  
                 r e t u r n   t r u e ;  
         }  
         e l s e   {  
                 r e t u r n   f a l s e ;  
         }  
 } ;  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /    
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
  
 f u n c t i o n   c h a n g e T a b ( _ c u r r e n t T a b I d ,   _ c o u n t e r ,   _ t a b N a m e ,   _ u n s e l e c t S t y l e ,   _ s e l e c t S t y l e )   {  
         i f   ( t y p e o f   ( _ c u r r e n t T a b I d )   = =   " u n d e f i n e d " )   v a r   _ c u r r e n t T a b I d   =   " # t a b _ 1 _ 1 " ;  
         i f   ( t y p e o f   ( _ c o u n t e r )   = =   " u n d e f i n e d " )   v a r   _ c o u n t e r   =   5 ;  
         i f   ( t y p e o f   ( _ u n s e l e c t S t y l e )   = =   " u n d e f i n e d " )   v a r   _ u n s e l e c t S t y l e   =   " u n s e l e c t " ;  
         i f   ( t y p e o f   ( _ s e l e c t S t y l e )   = =   " u n d e f i n e d " )   v a r   _ s e l e c t S t y l e   =   " s e l e c t " ;  
         i f   ( t y p e o f   ( _ t a b N a m e )   = =   " u n d e f i n e d " )   v a r   _ t a b N a m e   =   ' # t a b _ 1 _ ' ;  
  
         f o r   ( v a r   _ i n d e x   =   1 ;   _ i n d e x   < =   _ c o u n t e r ;   _ i n d e x + + )   {  
                 $ ( _ t a b N a m e   +   _ i n d e x ) . r e m o v e C l a s s ( _ s e l e c t S t y l e ) ;  
                 $ ( _ t a b N a m e   +   _ i n d e x ) . a d d C l a s s ( _ u n s e l e c t S t y l e ) ;  
         }  
  
         $ ( _ c u r r e n t T a b I d ) . r e m o v e C l a s s ( _ u n s e l e c t S t y l e ) ;  
         $ ( _ c u r r e n t T a b I d ) . a d d C l a s s ( _ s e l e c t S t y l e ) ;  
 }  
  
 f u n c t i o n   G e t C l i e n t P a r a m e t e r ( _ p o s i t i o n )   {  
         i f   ( t y p e o f   ( _ p o s i t i o n )   = =   " u n d e f i n e d " )  
                 v a r   _ p o s i t i o n   =   0 ;  
         v a r   _ u r l   =   l o c a t i o n . h r e f ;  
         v a r   _ p a r a m e t e r   =   ' ' ;  
         i f   ( _ u r l . i n d e x O f ( ' # ' )   > =   0 )   {  
                 _ p a r a m e t e r   =   _ u r l . s u b s t r i n g ( _ u r l . i n d e x O f ( ' # ' )   +   1 ,   _ u r l . l e n g t h ) ;  
                 s w i t c h   ( _ p o s i t i o n )   {  
                         c a s e   0 :  
                                 i f   ( _ p a r a m e t e r . i n d e x O f ( ' ? ' )   >   0 )  
                                         _ p a r a m e t e r   =   _ p a r a m e t e r . s u b s t r i n g ( 0 ,   _ p a r a m e t e r . i n d e x O f ( ' ? ' ) ) ;  
                                 i f   ( _ p a r a m e t e r . i n d e x O f ( ' & ' )   >   0 )  
                                         _ p a r a m e t e r   =   _ p a r a m e t e r . s u b s t r i n g ( 0 ,   _ p a r a m e t e r . i n d e x O f ( ' & ' ) ) ;  
                                 b r e a k ;  
                         c a s e   1 :  
                                 i f   ( _ p a r a m e t e r . i n d e x O f ( ' ? ' )   > =   0 )  
                                         _ p a r a m e t e r   =   ' & '   +   _ p a r a m e t e r . s u b s t r i n g ( _ p a r a m e t e r . i n d e x O f ( ' ? ' )   +   1 ,   _ p a r a m e t e r . l e n g t h ) ;  
                                 e l s e   _ p a r a m e t e r   =   ' ' ;  
                                 b r e a k ;  
                 }  
         }  
         r e t u r n   _ p a r a m e t e r ;  
 }  
  
 f u n c t i o n   W r i t e C l i e n t P a r a m e t e r ( _ n a m e ,   _ v a l u e )   {  
         i f   ( t y p e o f   ( _ n a m e )   ! =   " u n d e f i n e d " )   {  
                 v a r   _ p a r a m e t e r   =   G e t C l i e n t P a r a m e t e r ( 0 ) ;  
                 i f   ( _ p a r a m e t e r . i n d e x O f ( _ n a m e )   <   0 )  
                         _ p a r a m e t e r   =   _ p a r a m e t e r . c o n c a t ( ' / ' ) . c o n c a t ( _ n a m e ) . c o n c a t ( ' 0 ' ) ;  
                 _ p a r a m e t e r   =   l o c a t i o n . h r e f . s u b s t r i n g ( 0 ,   l o c a t i o n . h r e f . i n d e x O f ( " # " ) ) . c o n c a t ( ' # ' ) . c o n c a t ( _ p a r a m e t e r . r e p l a c e ( _ n a m e   +   G e t C l i e n t P a r a m e t e r V a l u e ( _ n a m e ,   _ p a r a m e t e r ) ,   _ n a m e   +   _ v a l u e ) )  
                 d o c u m e n t . l o c a t i o n   =   _ p a r a m e t e r ;  
         }  
 }  
 f u n c t i o n   G e t C l i e n t P a r a m e t e r V a l u e ( _ n a m e ,   _ p a r a m e t e r )   {  
         v a r   _ v a l u e   =   ' 0 ' ;  
         i f   ( t y p e o f   ( _ n a m e )   ! =   " u n d e f i n e d " )   {  
                 i f   ( t y p e o f   ( _ p a r a m e t e r )   = =   " u n d e f i n e d " )  
                         v a r   _ p a r a m e t e r   =   G e t C l i e n t P a r a m e t e r ( 0 ) ;  
  
                 v a r   _ p a r a m e t e r A r r a y   =   _ p a r a m e t e r . s p l i t ( ' / ' ) ;  
                 f o r   ( v a r   _ i n d e x   =   0 ;   _ i n d e x   <   _ p a r a m e t e r A r r a y . l e n g t h ;   _ i n d e x + + )   {  
                         i f   ( _ p a r a m e t e r A r r a y [ _ i n d e x ] . i n d e x O f ( _ n a m e )   > =   0 )   {  
                                 _ v a l u e   =   _ p a r a m e t e r A r r a y [ _ i n d e x ] . r e p l a c e ( _ n a m e ,   ' ' ) ;  
                                 b r e a k ;  
                         }  
                 }  
         }  
         r e t u r n   _ v a l u e ;  
 }  
 f u n c t i o n   R e s i z e A l b u m T h u m b n a i l ( m e ,   i ,   _ c a t e g o r y I d )   {  
         v a r   _ m a x W i d t h   =   1 5 0 ;  
         v a r   _ m a x H e i g h t   =   1 2 5 ;  
         v a r   _ i c o n H e i g h t   =   8 ;  
         v a r   _ i c o n M a r g i n L e f t   =   - 2 ;  
         v a r   _ t o t a l I m a g e M a r g i n   =   1 0 ;  
         v a r   _ m a r g i n L e f t   =   0 ;  
         B r o w s e r D e t e c t . i n i t ( ) ;  
         i f   ( $ ( m e ) . w i d t h ( )   > =   $ ( m e ) . h e i g h t ( ) )   {  
                 $ ( m e ) . w i d t h ( _ m a x H e i g h t ) ;  
                 $ ( m e ) . p a r e n t ( ) . p a r e n t ( ) . p a r e n t ( ) . c s s ( {   " m a r g i n - t o p " :   M a t h . r o u n d ( M a t h . a b s ( _ m a x H e i g h t   -   $ ( m e ) . h e i g h t ( ) )   /   2 )   } ) ;  
                 _ m a r g i n L e f t   =   M a t h . r o u n d ( M a t h . a b s ( _ m a x W i d t h   -   $ ( m e ) . w i d t h ( )   -   _ t o t a l I m a g e M a r g i n )   /   2 ) ;  
                 i f   ( B r o w s e r D e t e c t . b r o w s e r   = =   ' E x p l o r e r '   & &   B r o w s e r D e t e c t . v e r s i o n   < =   7 )  
                         $ ( m e ) . p a r e n t ( ) . p a r e n t ( ) . c s s ( {   " m a r g i n - l e f t " :   M a t h . r o u n d ( _ m a r g i n L e f t   /   2 ) ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " n e a r e s t - n e i g h b o r "   } ) ;  
                 e l s e  
                         $ ( m e ) . p a r e n t ( ) . p a r e n t ( ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " b i c u b i c "   } ) ;  
         }  
         e l s e   {  
                 $ ( m e ) . h e i g h t ( _ m a x H e i g h t ) ;  
                 _ m a r g i n L e f t   =   M a t h . r o u n d ( M a t h . a b s ( _ m a x W i d t h   -   $ ( m e ) . w i d t h ( )   -   _ t o t a l I m a g e M a r g i n )   /   2 ) ;  
                 i f   ( B r o w s e r D e t e c t . b r o w s e r   = =   ' E x p l o r e r '   & &   B r o w s e r D e t e c t . v e r s i o n   < =   7 )  
                         $ ( m e ) . p a r e n t ( ) . p a r e n t ( ) . c s s ( {   " m a r g i n - l e f t " :   M a t h . r o u n d ( _ m a r g i n L e f t   /   2 )   +   1 ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " n e a r e s t - n e i g h b o r "   } ) ;  
                 e l s e  
                         $ ( m e ) . p a r e n t ( ) . p a r e n t ( ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " b i c u b i c "   } ) ;  
         }  
  
         i f   ( B r o w s e r D e t e c t . b r o w s e r   = =   ' E x p l o r e r '   & &   B r o w s e r D e t e c t . v e r s i o n   < =   7 )  
                 $ ( m e ) . c s s ( {   " - m s - i n t e r p o l a t i o n - m o d e " :   " n e a r e s t - n e i g h b o r "   } ) ;  
         e l s e  
                 $ ( m e ) . c s s ( {   " - m s - i n t e r p o l a t i o n - m o d e " :   " b i c u b i c "   } ) ;  
  
         i f   ( B r o w s e r D e t e c t . b r o w s e r   = =   ' E x p l o r e r '   & &   B r o w s e r D e t e c t . v e r s i o n   < =   7 )  
                 $ ( " # s y m b o l _ "   +   i ) . p a r e n t ( ) . p a r e n t ( ) . w i d t h ( $ ( " # s y m b o l _ "   +   i ) . p a r e n t ( ) . p a r e n t ( ) . w i d t h ( )   -   3 ) ;  
         $ ( " # s y m b o l _ "   +   i ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t   +   _ i c o n M a r g i n L e f t   } ) ;  
         $ ( " # s y m b o l _ "   +   i ) . w i d t h ( $ ( " # s y m b o l _ "   +   i ) . w i d t h ( )   -   ( _ m a r g i n L e f t   +   _ i c o n M a r g i n L e f t ) ) ;  
         $ ( " # s y m b o l _ "   +   i ) . h e i g h t ( M a t h . r o u n d ( $ ( m e ) . h e i g h t ( )   /   _ i c o n H e i g h t )   *   _ i c o n H e i g h t ) ;  
  
         i f   ( _ c a t e g o r y I d   = =   6 7 )   {  
                 $ ( m e ) . c s s ( {   " b o r d e r " :   " s o l i d   1 p x   # d d 0 0 6 7 "   } ) ;  
                 $ ( " # s y m b o l _ "   +   i ) . c s s ( {   " b a c k g r o u n d " :   " u r l ( ' h t t p : / / p h o t o s . g o o n l i n e . v n / S k i n s / D e f a u l t / I m a g e s / b g _ a l b u m _ m i s s t e e n . p n g ' )   r e p e a t - y "   } ) ;  
         }  
         e l s e   {  
                 $ ( m e ) . c s s ( {   " b o r d e r " :   " s o l i d   1 p x   # b 9 b 9 b 9 "   } ) ;  
                 $ ( " # s y m b o l _ "   +   i ) . c s s ( {   " b a c k g r o u n d " :   " u r l ( ' h t t p : / / p h o t o s . g o o n l i n e . v n / S k i n s / D e f a u l t / I m a g e s / b g _ a l b u m . p n g ' )   r e p e a t - y "   } ) ;  
         }  
 }  
 f u n c t i o n   R e s i z e I m a g e T h u m b n a i l ( m e )   {  
         v a r   _ m a x W i d t h   =   1 4 0 ;  
         v a r   _ m a x H e i g h t   =   1 2 5 ;  
         v a r   _ m a r g i n L e f t   =   0 ;  
         B r o w s e r D e t e c t . i n i t ( ) ;  
         i f   ( $ ( m e ) . w i d t h ( )   > =   $ ( m e ) . h e i g h t ( ) )   {  
                 $ ( m e ) . w i d t h ( _ m a x H e i g h t ) ;  
                 _ m a r g i n L e f t   =   M a t h . r o u n d ( M a t h . a b s ( _ m a x W i d t h   -   _ m a x H e i g h t )   /   4 ) ;  
                 $ ( m e ) . c s s ( {   " m a r g i n - t o p " :   M a t h . r o u n d ( M a t h . a b s ( _ m a x H e i g h t   -   $ ( m e ) . h e i g h t ( ) )   /   2 )   } ) ;  
                 i f   ( B r o w s e r D e t e c t . b r o w s e r   = =   ' E x p l o r e r '   & &   B r o w s e r D e t e c t . v e r s i o n   < =   7 )  
                         $ ( m e ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " n e a r e s t - n e i g h b o r "   } ) ;  
                 e l s e  
                         $ ( m e ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " b i c u b i c "   } ) ;  
         }  
         e l s e   {  
                 $ ( m e ) . h e i g h t ( _ m a x H e i g h t ) ;  
                 i f   ( B r o w s e r D e t e c t . b r o w s e r   = =   ' E x p l o r e r '   & &   B r o w s e r D e t e c t . v e r s i o n   < =   7 )  
                         $ ( m e ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " n e a r e s t - n e i g h b o r "   } ) ;  
                 e l s e  
                         $ ( m e ) . c s s ( {   " m a r g i n - l e f t " :   _ m a r g i n L e f t ,   " - m s - i n t e r p o l a t i o n - m o d e " :   " b i c u b i c "   } ) ;  
         }  
 }  
  
 f u n c t i o n   F i l l t e r L a n g u a g e ( c o n t a i n e r ,   l a n g i d )   {  
         i f   ( t y p e o f   ( c o n t a i n e r )   = =   " u n d e f i n e d " )   v a r   _ c o n t a i n e r   =   " # s e l _ l a n g u a g e " ;  
         i f   ( t y p e o f   ( l a n g i d )   = =   " u n d e f i n e d " )   v a r   l a n g i d   =   0 ;  
         j Q u e r y . a j a x ( {  
         u r l :   ' / A c t i o n / A d m i n A c t i o n . a s h x ? A c t i o n O b j e c t = l a n g a c t i o n & a c t i o n = l a n g u a g e _ l i s t a l l ' ,  
                 t y p e :   " P O S T " ,  
                 d a t a T y p e :   " j s o n " ,  
                 d a t a :   " " ,  
                 s u c c e s s :   f u n c t i o n ( d a t a ,   d a t a S t a t u s )   {  
                         $ ( c o n t a i n e r ) . a p p e n d ( ' < o p t i o n   v a l u e = " 0 " > [ - - - -   C h Ín   n g ô n   n g ï  - - - - ] < / o p t i o n > ' ) ;  
                         $ ( d a t a . L a n g u a g e ) . e a c h ( f u n c t i o n ( i ,   i t e m )   {  
                         i f   ( i t e m . L a n g u a g e I D   = =   l a n g i d )   {  
                                 $ ( c o n t a i n e r ) . a p p e n d ( ' < o p t i o n   s e l e c t e d = " s e l e c t e d "   v a l u e = " '   +   d a t a . L a n g u a g e [ i ] . L a n g u a g e I D   +   ' " > '   +   d a t a . L a n g u a g e [ i ] . L a n g u a g e N a m e   +   ' < / o p t i o n > ' ) ;  
                                 }  
                                 e l s e   {  
                                         $ ( c o n t a i n e r ) . a p p e n d ( ' < o p t i o n     v a l u e = " '   +   d a t a . L a n g u a g e [ i ] . L a n g u a g e I D   +   ' " > '   +   d a t a . L a n g u a g e [ i ] . L a n g u a g e N a m e   +   ' < / o p t i o n > ' ) ;  
                                 }  
                         } ) ;  
                 } ,  
                 t i m e o u t :   3 0 0 0 0 ,  
                 e r r o r :   f u n c t i o n ( r e q u e s t ,   e r r o r )   {   }  
         } ) ;  
 }  
  
 f u n c t i o n   P u b l i c P o p u p I m a g e s ( c o n t a i n e r )   {  
         v a r   t i t l e   =   " " ;  
         v a r   w i d t h   =   8 1 0 ;  
         v a r   h e i g h t   =   5 0 0 ;  
         i f   ( $ ( c o n t a i n e r ) . l e n g t h   < =   0 )   {  
                 $ ( " b o d y " ) . a p p e n d ( ' < d i v   i d = " '   +   c o n t a i n e r . r e p l a c e ( ' # ' ,   ' ' )   +   ' "   s t y l e = " d i s p l a y : n o n e ;   o v e r f l o w - x : h i d d e n ;   o v e r f l o w - y : s c r o l l ; "   t i t l e = " '   +   t i t l e   +   ' " > < / d i v > ' ) ;  
         }  
         $ ( c o n t a i n e r ) . s e t T e m p l a t e U R L ( ' / J t e m p / A d m i n / I m a g e s / M a i n _ P o p u p . h t m ' ) ;  
         $ ( c o n t a i n e r ) . p r o c e s s T e m p l a t e ( ) ;  
         P u b l i c I m a g e s L i s t A l l ( ) ;  
         P u b l i c F i l l t e r C a t I m g ( ' # s l e _ c a t i m a g e s ' ) ;  
         $ ( c o n t a i n e r ) . d i a l o g ( ' o p e n ' ) ;  
         $ ( c o n t a i n e r ) . d i a l o g ( {  
                 m o d a l :   t r u e ,  
                 w i d t h :   w i d t h ,  
                 h e i g h t :   h e i g h t ,  
                 r e s i z a b l e :   f a l s e ,  
                 b u t t o n s :   {  
                         ' ó n g ' :   f u n c t i o n   ( )   {  
                                 $ ( c o n t a i n e r ) . d i a l o g ( ' c l o s e ' ) ;  
                                 $ ( c o n t a i n e r ) . d i a l o g ( " d e s t r o y " ) ;  
                         }  
                 } ,  
                 c l o s e :   f u n c t i o n   ( )   {  
                         $ ( c o n t a i n e r ) . d i a l o g ( " d e s t r o y " ) ;  
                 }  
         } ) ;  
 }  
  
 f u n c t i o n   P u b l i c F i l l t e r C a t I m g ( c o n t a i n e r )   {  
         i f   ( t y p e o f   ( c o n t a i n e r )   = =   " u n d e f i n e d " )   v a r   _ c o n t a i n e r   =   " # s l e _ c a t i m a g e s " ;  
         S e n d R e q u e s t A j a x ( " / A c t i o n / A d m i n A c t i o n . a s h x ? A c t i o n O b j e c t = i m a g e a c t i o n & a c t i o n = c a t i m a g e _ l i s t a l l " ,  
         ' ' ,  
                 f u n c t i o n   ( d a t a ,   d a t a S t a t u s )   {  
                         $ ( c o n t a i n e r ) . a p p e n d ( ' < o p t i o n   v a l u e = " 0 " > [ - - - -   C h Ín   d a n h   m åc   - - - - ] < / o p t i o n > ' ) ;  
                         $ ( d a t a . C a t i m g ) . e a c h ( f u n c t i o n   ( i ,   i t e m )   {  
                                 $ ( c o n t a i n e r ) . a p p e n d ( ' < o p t i o n     v a l u e = " '   +   d a t a . C a t i m g [ i ] . C a t I D   +   ' " > '   +   d a t a . C a t i m g [ i ] . C a t N a m e   +   ' < / o p t i o n > ' ) ;  
                         } ) ;  
                 } ) ;  
 }  
  
  
 f u n c t i o n   P u b l i c I m a g e s L i s t A l l ( c a t i d )   {  
         i f   ( t y p e o f   ( c o n t a i n e r )   = =   " u n d e f i n e d " )   v a r   c o n t a i n e r   =   " # L o a d P o p u p " ;  
         $ ( c o n t a i n e r ) . h t m l ( ' ' ) ;  
         v a r   c u r e n t I n d e x   =   0 ;  
         v a r   t o p r e c o d   =   2 0 ;  
         v a r   _ c u r e n t p a g e   =   1 ;  
         _ c u r e n t p a g e   =   G e t C l i e n t P a r a m e t e r V a l u e ( " p a g e " ) ;  
         _ c u r e n t p a g e   =   _ c u r e n t p a g e   >   0   ?   _ c u r e n t p a g e   :   1 ;  
         v a r   u r l   =   " " ;  
         i f   ( t y p e o f   ( c a t i d )   = =   " u n d e f i n e d " )   v a r   c a t i d   =   0 ;  
         i f   ( c a t i d   = =   0 )   {  
                 u r l   =   " / A c t i o n / A d m i n A c t i o n . a s h x ? A c t i o n O b j e c t = i m a g e a c t i o n & a c t i o n = i m a g e l i s t a l l p a g e & p a g e I n d e x = " . c o n c a t ( _ c u r e n t p a g e ) . c o n c a t ( " & p a g e S i z e = " ) . c o n c a t ( t o p r e c o d ) ;  
         }  
         e l s e   {  
                 u r l   =   " / A c t i o n / A d m i n A c t i o n . a s h x ? A c t i o n O b j e c t = i m a g e a c t i o n & a c t i o n = i m a g e l i s t p a g e b y c a t i d & p a g e I n d e x = " . c o n c a t ( _ c u r e n t p a g e ) . c o n c a t ( " & p a g e S i z e = " ) . c o n c a t ( t o p r e c o d ) . c o n c a t ( " & c a t I d = " ) . c o n c a t ( c a t i d ) ;  
         }  
         v a r   _ s F u n c   =   ' P u b l i c I m a g e s L i s t A l l ( '   +   c a t i d   +   ' ) ' ;  
         S e n d R e q u e s t A j a x ( u r l ,   ' ' ,  
                 f u n c t i o n   ( d a t a ,   d a t a S t a t u s )   {  
                         $ ( c o n t a i n e r ) . s e t T e m p l a t e U R L ( ' / J t e m p / A d m i n / I m a g e s / P o p u p . h t m ' ) ;  
                         $ ( c o n t a i n e r ) . p r o c e s s T e m p l a t e ( d a t a ) ;  
                         W r a p S e g P a g i n g ( d a t a . t o t a l R o w ,   t o p r e c o d ,   5 ,   _ c u r e n t p a g e ,   ' # P a g e N a v i B u t t o n ' ,   _ s F u n c ,   '   D a n h   s á c h   £n h ' ,   t r u e ) ;  
                 } ) ;  
 }  
 
