ÿþ$ ( f u n c t i o n ( ) {  
 	 / /   r o l l o v e r  
 	 j Q u e r y ( ' . i m g o v e r ' ) . e a c h ( f u n c t i o n ( ) {  
 	 	 t h i s . o s r c   =   j Q u e r y ( t h i s ) . a t t r ( ' s r c ' ) ;  
 	 	 t h i s . r o l l o v e r   =   n e w   I m a g e ( ) ;  
 	 	 t h i s . r o l l o v e r . s r c   =   t h i s . o s r c . r e p l a c e ( / ( \ . g i f | \ . j p g | \ . p n g ) / ,   " _ o $ 1 " ) ;  
 	 } ) . h o v e r ( f u n c t i o n ( ) {  
 	 	 j Q u e r y ( t h i s ) . a t t r ( ' s r c ' , t h i s . r o l l o v e r . s r c ) ;  
 	 } , f u n c t i o n ( ) {  
 	 	 j Q u e r y ( t h i s ) . a t t r ( ' s r c ' , t h i s . o s r c ) ;  
 	 } ) ;  
 	 / /   s c r o l l  
 	 j Q u e r y ( ' a [ @ h r e f ^ = # ] ' ) . c l i c k ( f u n c t i o n ( )   {  
 	 	 v a r   $ t   =   j Q u e r y ( t h i s . h a s h ) ;  
 	 	 i f   ( t h i s . h a s h . l e n g t h   >   1   & &   j Q u e r y t . s i z e ( ) )   {  
 	 	 	 j Q u e r y . s c r o l l T o ( $ t ,   4 0 0 ) ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 } ) ;  
 	  
 	 j Q u e r y ( " . f a d e O v e r " ) . h o v e r ( f u n c t i o n ( ) { $ ( t h i s ) . f a d e T o ( " f a s t " ,   0 . 6 ) ; } , f u n c t i o n ( ) { $ ( t h i s ) . f a d e T o ( " f a s t " ,   1 ) ; } ) ; 	  
 } ) ;  
  
 f u n c t i o n   c f M o v e C a r ( )  
 {  
         r e t u r n   c o n f i r m ( " B ¡n   c ó   c h ¯c   c h ¯n   m u Ñn   c h u y Ãn   c á c   x e   n à y   k h ô n g ? " ) ;  
 }  
 f u n c t i o n   c f M o v e E m p l o y e e ( )  
 {  
         r e t u r n   c o n f i r m ( " B ¡n   c ó   c h ¯c   c h ¯n   m u Ñn   c h u y Ãn   c á c   n h â n   v i ê n   n à y   k h ô n g ? " ) ;  
 }  
 f u n c t i o n   R a d i o C h e c k e d ( p a r a m )  
 {  
          
         v a r   f r m   =   d o c u m e n t . f o r m s [ 0 ] ;  
         / /   T a k e   a l l   e l e m e n t s   o f   t h e   f o r m  
  
         f o r   ( i = 0 ;   i   <   f r m . l e n g t h ;   i + + )  
         {  
             / /   i t i n e r a t e   t h e   e l e m e n t s   s e a r c h i n g   " R a d i o B u t t o n s "  
  
             i f   ( f r m . e l e m e n t s [ i ] . t y p e   = =   " r a d i o " )  
             {  
                 / /   U n c h e c k e d   i f   t h e   R a d i o B u t t o n   i s   ! =   p a r a m  
  
                 i f   ( p a r a m   ! =   f r m . e l e m e n t s [ i ] . i d   )  
                 {  
                     f r m . e l e m e n t s [ i ] . c h e c k e d   =   f a l s e ;  
                 }  
             }  
         }  
    
 }  
  
 f u n c t i o n   S e l e c t A l l C h e c k b o x e s ( s p a n C h k ,   r p t )  
 {  
         / /   A d d e d   a s   A S P X   u s e s   S P A N   f o r   c h e c k b o x  
         v a r   o I t e m   =   s p a n C h k . c h i l d r e n ;  
         v a r   t h e B o x =   ( s p a n C h k . t y p e = = " c h e c k b o x " )   ?   s p a n C h k   :   s p a n C h k . c h i l d r e n . i t e m [ 0 ] ;  
         x S t a t e = t h e B o x . c h e c k e d ;  
         e l m = t h e B o x . f o r m . e l e m e n t s ;  
  
         f o r ( i = 0 ; i < e l m . l e n g t h ; i + + )  
             i f ( ( e l m [ i ] . t y p e = = " c h e c k b o x " )   & &   ( e l m [ i ] . n a m e . i n d e x O f ( r p t ) >   - 1 )   & &   e l m [ i ] . i d ! = t h e B o x . i d )  
             {  
                 i f ( e l m [ i ] . c h e c k e d ! = x S t a t e )  
                     e l m [ i ] . c l i c k ( ) ;  
             }  
 }  
 f u n c t i o n   c f A d d ( )  
 {  
         r e t u r n   c o n f i r m ( ' B ¡n   c ó   c h ¯c   c h ¯n   l à   m u Ñn   t h ê m   v à o   k h ô n g ? ' ) ;  
 }  
 f u n c t i o n   c f S a v e ( )  
 {  
         r e t u r n   c o n f i r m ( ' B ¡n   c ó   c h ¯c   c h ¯n   l à   m u Ñn   l °u   t h a y   Õi   k h ô n g ? ' ) ;  
 }  
 f u n c t i o n   c f D e l e t e ( )  
 {  
         r e t u r n   c o n f i r m ( ' B ¡n   c ó   c h ¯c   c h ¯n   l à   m u Ñn   x ó a   k h ô n g ? ' ) ;  
 }  
 f u n c t i o n   c f D e l e t e A l l ( )  
 {  
         r e t u r n   c o n f i r m ( ' B ¡n   c ó   c h ¯c   c h ¯n   l à   m u Ñn   x ó a   t ¥t   c £  k h ô n g ? ' ) ;  
 }  
 f u n c t i o n   c f C o n t i n u e ( )  
 {  
         r e t u r n   c o n f i r m ( ' D ï  l i Çu   ã   c ó   t r o n g   h Ç  t h Ñn g .   B ¡n   c ó   m u Ñn   t i ¿p   t åc   k h ô n g ? ' ) ;  
 }  
 f u n c t i o n   H i d e C o n t e n t ( d )   {  
 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 }  
 f u n c t i o n   S h o w C o n t e n t ( d )   {  
 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   =   " " ;  
 }  
 f u n c t i o n   R e v e r s e D i s p l a y 1 ( c h e c k b o x , d )    
 {  
         v a r   o b j c h e c k b o x = d o c u m e n t . g e t E l e m e n t B y I d ( c h e c k b o x ) ;  
         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 f ( o b j c h e c k b o x . c h e c k e d )  
                 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . 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 ( d ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 }  
 f u n c t i o n   R e v e r s e D i s p l a y ( d )   {  
 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   = =   " n o n e " )   {   d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . 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 ( d ) . s t y l e . d i s p l a y   =   " n o n e " ;   }  
 }  
  
 f u n c t i o n   R e v e r s e C o l o r ( d )   {  
 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . c o l o r   = =   " # 3 3 3 3 3 3 " )   {   d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . c o l o r   =   " # 0 0 0 0 0 0 " ;   }  
 e l s e   {   d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . c o l o r   =   " # 3 3 3 3 3 3 " ;   }  
 }  
 f u n c t i o n   b t n B a c k ( )  
 {  
         r e t u r n   w i n d o w . h i s t o r y . g o ( - 1 ) ;  
 }  
 / / 2 0 0 9 - 0 8 - 0 9  
 / / M i n h   r e f e r e n c e   o n   h t t p : / / w w w . c o d e d i g e s t . c o m / A r t i c l e s / A S P N E T / 1 3 2 _ G r i d V i e w _ w i t h _ C h e c k B o x _ % E 2 % 8 0 % 9 3 _ S e l e c t _ A l l _ a n d _ H i g h l i g h t _ S e l e c t e d _ R o w . a s p x  
 f u n c t i o n   H i g h l i g h t R o w ( c h k B )  
 {  
         v a r   I s C h e c k e d   =   c h k B . c h e c k e d ;                        
  
         i f ( I s C h e c k e d )  
             {  
                         c h k B . p a r e n t N o d e . p a r e n t N o d e . s t y l e . b a c k g r o u n d C o l o r = ' b l a c k ' ;    
  
                         c h k B . p a r e n t N o d e . p a r e n t N o d e . s t y l e . c o l o r = ' w h i t e ' ;  
  
             } e l s e  
             {  
                         c h k B . p a r e n t N o d e . p a r e n t N o d e . s t y l e . b a c k g r o u n d C o l o r = ' w h i t e ' ;  
  
                         c h k B . p a r e n t N o d e . p a r e n t N o d e . s t y l e . c o l o r = ' b l a c k ' ;  
  
             }  
  
 }  
 
