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