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