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