ÿþ/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
   *                                                                                                                                   *  
   *   F u n ç õ e s   J a v a S c r i p t   p a r a   m a n i p u l a ç ã o   d a s   p á g i n a s   d e   c a d a s t r o   d o     *  
   *   s i t e   d o   l a b o r a t ó r i o   p a n i z z a 	 	 	 	 	 	 	 	 	       *  
   *                                                                                                                                   *  
   *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
  
 / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *  
   |   c o n s i s t e C l i e n t e     C o n s i s t e   d a d o s   d a   p á g i n a   d e   c a d a s t r a m e n t o   d e       |  
   |                                     d e   c l i e n t e s                                                                         |  
   * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * /    
 f u n c t i o n   c o n s i s t e C l i e n t e ( )   {  
  
         	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C l i e n t e . t x t N o m e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   n o m e   p a r a   c o n t a t o ' ) ;  
 	 	 d o c u m e n t . f r m C l i e n t e . t x t N o m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C l i e n t e . t x t E m a i l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e - m a i l ' ) ;  
 	 	 d o c u m e n t . f r m C l i e n t e . t x t E m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C l i e n t e . t x t E n d e r e c o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e n d e r e ç o . ' ) ;  
 	 	 d o c u m e n t . f r m C l i e n t e . t x t E n d e r e c o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C l i e n t e . t x t C i d a d e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   c i d a d e ' ) ;  
 	 	 d o c u m e n t . f r m C l i e n t e . t x t C i d a d e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C l i e n t e . c b o E s t a d o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   s e u   e s t a d o ' ) ;  
 	 	 d o c u m e n t . f r m C l i e n t e . c b o E s t a d o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C l i e n t e . t x t T e l e f o n e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   t e l e f o n e ' ) ;  
 	 	 d o c u m e n t . f r m C l i e n t e . t x t T e l e f o n e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
         d o c u m e n t . f r m C l i e n t e . a c t i o n = ' F o r m C a d a s t r o C l i e n t e . a s p x ? o p e r a = e x e c ' ; 	  
 	 d o c u m e n t . f r m C l i e n t e . s u b m i t ( ) ; 	  
 	  
 } 	 	  
  
  
 / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *  
   |   c o n s i s t e E m p r e s a     C o n s i s t e   d a d o s   d a   p á g i n a   d e   c a d a s t r a m e n t o   d e       |  
   |                                       d e   c l i e n t e s   p e s s o a   j u r í d i c a   ( e m p r e s a s )                 |  
   * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * /    
 f u n c t i o n   c o n s i s t e E m p r e s a ( )   {  
  
         	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t R e s p o n s a v e l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   n o m e   d o   r e s p o n s á v e l   p a r a   c o n t a t o ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t R e s p o n s a v e l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t C a r g o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   c a r g o ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t C a r g o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t E m a i l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e - m a i l ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t E m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t R a z a o S o c i a l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   r a z ã o   s o c i a l   d a   e m p r e s a . ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t R a z a o S o c i a l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t C N P J . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   C N P J . ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t C N P J . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t E n d e r e c o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e n d e r e ç o . ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t E n d e r e c o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m E m p r e s a . t x t T e l e f o n e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   t e l e f o n e ' ) ;  
 	 	 d o c u m e n t . f r m E m p r e s a . t x t T e l e f o n e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
         d o c u m e n t . f r m E m p r e s a . a c t i o n = ' F o r m C a d a s t r o E m p r e s a . a s p x ? o p e r a = e x e c ' ; 	  
 	 d o c u m e n t . f r m E m p r e s a . s u b m i t ( ) ; 	  
 	  
 } 	 	  
  
 / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *  
   |   c o n s i s t e S A C       C o n s i s t e   d a d o s   d a   p á g i n a   d e   c a d a s t r a m e n t o   d e             |  
   |                               S e r v i ç o   e   A t e n d i m e n t o   a o   C o n s u m i d o r                               |  
   * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * /    
 f u n c t i o n   c o n s i s t e S A C ( )   {  
  
         	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m S A C . t x t N o m e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   s e u   n o m e . ' ) ;  
 	 	 d o c u m e n t . f r m S A C . t x t N o m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m S A C . t x t E m a i l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e - m a i l . ' ) ;  
 	 	 d o c u m e n t . f r m S A C . t x t E m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	  
 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m S A C . t x t T e l e f o n e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   t e l e f o n e . ' ) ;  
 	 	 d o c u m e n t . f r m S A C . t x t T e l e f o n e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m S A C . c b o E s t a d o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   s e u   e s t a d o . ' ) ;  
 	 	 d o c u m e n t . f r m S A C . c b o E s t a d o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m S A C . t x a M e n s a g e m . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   s u a   d ú v i d a . ' ) ;  
 	 	 d o c u m e n t . f r m S A C . t x a M e n s a g e m . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f     ( ! v a l i d a T a m a n h o A r e a ( d o c u m e n t . f r m S A C . t x a M e n s a g e m , 2 5 0 ) )  
 	 	   r e t u r n   f a l s e ;       	 	  
 	 	  
 	  
         d o c u m e n t . f r m S A C . a c t i o n = ' F o r m S A C . a s p x ? o p e r a = e x e c ' ; 	  
 	 d o c u m e n t . f r m S A C . s u b m i t ( ) ; 	  
 	  
 } 	 	  
  
  
  
 / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *  
   |   c o n s i s t e C u r r i c u l u m       C o n s i s t e   d a d o s   d a   p á g i n a   d e   c a d a s t r a m e n t o         |  
   |                                             d e   c u r r i c u l u m   d o   s i t e   d o   L a b o r a t ó r i o   P a n i z z a   |  
   * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * /    
 f u n c t i o n   c o n s i s t e C u r r i c u l u m ( )   {  
  
         	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t N o m e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   s e u   n o m e . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t N o m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t I d a d e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   s u a   i d a d e . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t I d a d e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t T e l e f o n e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   t e l e f o n e . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t T e l e f o n e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t E n d e r e c o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e n d e r e ç o . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t E n d e r e c o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . c b o E s t a d o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   s e u   e s t a d o . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . c b o E s t a d o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t E m a i l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e - m a i l . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t E m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t C u r s o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   c u r s o . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t C u r s o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x t C a r g o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   c a r g o   p r e t e n d i d o . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x t C a r g o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	  
 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r r i c u l u m . t x a D e s c r i c a o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   d e s c r i ç ã o   d a s   s u a s   p r i n c i p a i s   a t i v i d a d e s . ' ) ;  
 	 	 d o c u m e n t . f r m C u r r i c u l u m . t x a D e s c r i c a o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f     ( ! v a l i d a T a m a n h o A r e a ( d o c u m e n t . f r m C u r r i c u l u m . t x a D e s c r i c a o , 5 0 0 ) )  
 	 	   r e t u r n   f a l s e ;       	 	  
 	 	  
 	  
         d o c u m e n t . f r m C u r r i c u l u m . a c t i o n = ' F o r m C u r r i c u l o . a s p x ? o p e r a = e x e c ' ; 	  
 	 d o c u m e n t . f r m C u r r i c u l u m . s u b m i t ( ) ; 	  
 	  
 } 	 	  
  
 / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *  
   |   c o n s i s t e C u r s o     C o n s i s t e   d a d o s   d a   p á g i n a   d e   c a d a s t r a m e n t o   d e           |  
   |                                 d e   c u r s o s                                                                                 |  
   * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * /    
 f u n c t i o n   c o n s i s t e C u r s o ( )   {  
  
         	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t N o m e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   n o m e ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t N o m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t E m a i l . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e - m a i l ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t E m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t E n d e r e c o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   e n d e r e ç o . ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t E n d e r e c o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t B a i r r o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   b a i r r o ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t B a i r r o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t C i d a d e . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   c i d a d e ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t C i d a d e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . c b o E s t a d o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   s e u   e s t a d o ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . c b o E s t a d o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t T e l e f o n e R . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   o   t e l e f o n e   r e s i d e n c i a l ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t T e l e f o n e R . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	  
 	 i f   ( T r i m ( d o c u m e n t . f r m C u r s o . t x t P r o f i s s a o . v a l u e ) = = ' ' )   {  
 	 	 a l e r t ( ' P o r   f a v o r ,   i n f o r m e   a   s u a   p r o f i s s ã o ' ) ;  
 	 	 d o c u m e n t . f r m C u r s o . t x t P r o f i s s a o . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 	  
 	  
         d o c u m e n t . f r m C u r s o . a c t i o n = ' F o r m C u r s o s . a s p x ? o p e r a = e x e c ' ; 	  
 	 d o c u m e n t . f r m C u r s o . s u b m i t ( ) ; 	  
 	  
 } 	 	  
 
