ÿþ/ /   J S c r i p t   F i l e  
  
 v a r   s I d E n g i n e C o n t a i n e r   =   " d i v E n g i n e C o n t a i n e r " ;  
 v a r   d e f a u l t D a y D i f f   =     4 ;  
  
 f u n c t i o n   D r a w E n g i n e s L i n k s ( s H i g h l i g h t L i n k ,   s I d C o n t a i n e r )  
 {  
         v a r   r e t u r n V a l   =   " " ;          
         v a r   o b j E n g i n e C o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( s I d E n g i n e C o n t a i n e r ) ;  
          
         i f   ( o b j E n g i n e C o n t a i n e r   = =   n u l l )  
                 r e t u r n ;  
          
         s w i t c h ( s H i g h l i g h t L i n k )  
         {  
                 c a s e   " A V I Ã O " :  
                         r e t u r n V a l   =   ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   c l a s s = " t a b l e _ m o t o r m e n u " > ' ;  
 	                 r e t u r n V a l   + =   ' < t r > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r i d " > A V I Ã O < / t d > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r m e n u " > ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O   +   H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O   +   H O T E L < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > H O T E L < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' R E N T - A - C A R \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > R E N T - A - C A R < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' F É R I A S \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > F É R I A S < / a > < / t d > ' ;  
 	                 r e t u r n V a l   + =   ' < / t r > ' ;  
                         r e t u r n V a l   + =   ' < / t a b l e > ' ;  
                         o b j E n g i n e C o n t a i n e r . i n n e r H T M L   =   ' < t a b l e   w i d t h = " 3 2 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   h e i g h t = " 1 9 4 "   v a l i g n = " m i d d l e "   a l i g n = " c e n t e r "   c l a s s = " c e l l _ m o t o r m e n u " > A g u a r d e   p o r   f a v o r . . . < / t d > < / t r > < / t a b l e > ' ;  
                         _ _ g e t D a t a ( " $ _ E n g i n e s _ A i r E n g i n e " ,   s I d E n g i n e C o n t a i n e r ) ;  
                         b r e a k ;  
                 c a s e   " A V I Ã O   +   H O T E L " :  
                         r e t u r n V a l   =   ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   c l a s s = " t a b l e _ m o t o r m e n u " > ' ;  
 	                 r e t u r n V a l   + =   ' < t r > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r i d " > A V I Ã O   +   H O T E L < / t d > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r m e n u " > ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > H O T E L < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' R E N T - A - C A R \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > R E N T - A - C A R < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' F É R I A S \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > F É R I A S < / a > < / t d > ' ;  
 	                 r e t u r n V a l   + =   ' < / t r > ' ;  
                         r e t u r n V a l   + =   ' < / t a b l e > ' ;  
                         o b j E n g i n e C o n t a i n e r . i n n e r H T M L   =   ' < t a b l e   w i d t h = " 3 2 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   h e i g h t = " 1 9 4 "   v a l i g n = " m i d d l e "   a l i g n = " c e n t e r "   c l a s s = " c e l l _ m o t o r m e n u " > A g u a r d e   p o r   f a v o r . . . < / t d > < / t r > < / t a b l e > ' ;  
                         _ _ g e t D a t a ( " $ _ E n g i n e s _ A i r H o t e l E n g i n e " ,   s I d E n g i n e C o n t a i n e r ) ;  
                         b r e a k ;  
                 c a s e   " H O T E L " :  
                         r e t u r n V a l   =   ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   c l a s s = " t a b l e _ m o t o r m e n u " > ' ;  
 	                 r e t u r n V a l   + =   ' < t r > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r i d " > H O T E L < / t d > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r m e n u " > ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O   +   H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O   +   H O T E L < / a > & n b s p ; | & n b s p ; ' ; 	 	          
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' R E N T - A - C A R \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > R E N T - A - C A R < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' F É R I A S \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > F É R I A S < / a > < / t d > ' ;  
 	                 r e t u r n V a l   + =   ' < / t r > ' ;  
                         r e t u r n V a l   + =   ' < / t a b l e > ' ;  
                         o b j E n g i n e C o n t a i n e r . i n n e r H T M L   =   ' < t a b l e   w i d t h = " 3 2 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   h e i g h t = " 1 9 4 "   v a l i g n = " m i d d l e "   a l i g n = " c e n t e r "   c l a s s = " c e l l _ m o t o r m e n u " > A g u a r d e   p o r   f a v o r . . . < / t d > < / t r > < / t a b l e > ' ;  
                         _ _ g e t D a t a ( " $ _ E n g i n e s _ H o t e l E n g i n e " ,   s I d E n g i n e C o n t a i n e r ) ;  
                         b r e a k ;  
                 c a s e   " R E N T - A - C A R " :  
                         r e t u r n V a l   =   ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   c l a s s = " t a b l e _ m o t o r m e n u " > ' ;  
 	                 r e t u r n V a l   + =   ' < t r > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r i d " > R E N T - A - C A R < / t d > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r m e n u " > ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O   +   H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O   +   H O T E L < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > H O T E L < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' F É R I A S \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > F É R I A S < / a > < / t d > ' ; 	 	          
 	                 r e t u r n V a l   + =   ' < / t r > ' ;  
                         r e t u r n V a l   + =   ' < / t a b l e > ' ;  
                         o b j E n g i n e C o n t a i n e r . i n n e r H T M L   =   ' < t a b l e   w i d t h = " 3 2 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   h e i g h t = " 1 9 4 "   v a l i g n = " m i d d l e "   a l i g n = " c e n t e r "   c l a s s = " c e l l _ m o t o r m e n u " > A g u a r d e   p o r   f a v o r . . . < / t d > < / t r > < / t a b l e > ' ;  
                         _ _ g e t D a t a ( " $ _ E n g i n e s _ C a r E n g i n e " ,   s I d E n g i n e C o n t a i n e r ) ;  
                         b r e a k ;  
                 c a s e   " F É R I A S " :  
                         r e t u r n V a l   =   ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 "   c l a s s = " t a b l e _ m o t o r m e n u " > ' ;  
 	                 r e t u r n V a l   + =   ' < t r > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r i d " > F É R I A S < / t d > ' ;  
 	 	         r e t u r n V a l   + =   ' < t d   c l a s s = " c e l l _ m o t o r m e n u " > ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' A V I Ã O   +   H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > A V I Ã O   +   H O T E L < / a > & n b s p ; | & n b s p ; ' ;  
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' H O T E L \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > H O T E L < / a > & n b s p ; | & n b s p ; ' ; 	 	          
 	 	         r e t u r n V a l   + =   ' < a   h r e f = " j a v a s c r i p t : v o i d ( 0 ) ; "   o n c l i c k = " D r a w E n g i n e s L i n k s ( \ ' R E N T - A - C A R \ ' , \ ' '   +   s I d C o n t a i n e r   +   ' \ ' ) ; "   c l a s s = " l i n k _ m o t o r " > R E N T - A - C A R < / a > < / t d > ' ;  
 	                 r e t u r n V a l   + =   ' < / t r > ' ;  
                         r e t u r n V a l   + =   ' < / t a b l e > ' ;  
                         o b j E n g i n e C o n t a i n e r . i n n e r H T M L   =   ' < t a b l e   w i d t h = " 3 2 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   h e i g h t = " 1 9 4 "   v a l i g n = " m i d d l e "   a l i g n = " c e n t e r "   c l a s s = " c e l l _ m o t o r m e n u " > A g u a r d e   p o r   f a v o r . . . < / t d > < / t r > < / t a b l e > ' ;  
                         _ _ g e t D a t a ( " $ _ E n g i n e s _ V a c a t i o n s E n g i n e " ,   s I d E n g i n e C o n t a i n e r ) ;  
                         b r e a k ;  
                 d e f a u l t :  
                         b r e a k ;  
         }        
          
         v a r   o b j C o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( s I d C o n t a i n e r ) ;  
          
         i f   ( o b j C o n t a i n e r   ! =   n u l l )  
                 o b j C o n t a i n e r . i n n e r H T M L   =   r e t u r n V a l ;  
 }  
  
 f u n c t i o n   S h o w D i v F r e q u e n t D e s t i n a t i o n s ( d i v I d ,   d i v I d c l o s e ,   f l d I n p u t ,   n o D i s p l a y E l e m e n t s ,   r e f I D ,   x ,   y )  
 {  
         v a r   s E l e m e n t ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i v I d ) . s t y l e . d i s p l a y   =   " b l o c k " ;  
 	  
 	 i f   ( d i v I d c l o s e   ! =   " " )  
 	         d o c u m e n t . g e t E l e m e n t B y I d ( d i v I d c l o s e ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " f l d T e x t D e s t i n a t i o n _ "   +   d i v I d ) . v a l u e   =   f l d I n p u t ;  
 	  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i v I d ) . s t y l e . d i s p l a y   =   " b l o c k " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i v I d ) . s t y l e . t o p   =   S t r i n g ( G e t P a g e C o o r d s B y I d ( r e f I D ) . y   -   y )   +   " p x " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i v I d ) . s t y l e . l e f t   =   S t r i n g ( G e t P a g e C o o r d s B y I d ( r e f I D ) . x   +   x )   +   " p x " ;  
 	  
 	 	 	  
 	 i f   ( n o D i s p l a y E l e m e n t s   ! =   n u l l   & &   n o D i s p l a y E l e m e n t s   ! =   " " )  
 	 {  
 	 	 n o D i s p l a y E l e m e n t s   =   S t r i n g ( n o D i s p l a y E l e m e n t s ) ;  
 	 	 n o D i s p l a y E l e m e n t s   =   n o D i s p l a y E l e m e n t s . s p l i t ( " , " ) ;  
 	  
 	 	 i f   ( n o D i s p l a y E l e m e n t s [ 0 ]   ! =   n u l l   & &   n o D i s p l a y E l e m e n t s [ 0 ]   ! =   " "   & &   n o D i s p l a y E l e m e n t s [ 0 ]   ! =   " u n d e f i n e d " )  
 	 	 {  
 	 	 	 f o r ( v a r   i   =   0 ;   i <   n o D i s p l a y E l e m e n t s . l e n g t h ;   i + + )  
 	 	 	 {  
                                 s E l e m e n t   =   n o D i s p l a y E l e m e n t s [ i ] ;  
                                 s E l e m e n t   =   s E l e m e n t . r e p l a c e ( / ^ \ s + | \ s + $ / g ,   ' ' ) ; 	 	 	  
 	 	 	  
 	 	 	 	 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 E l e m e n t )   ! =   n u l l )  
 	 	 	 	 {  
                                         d o c u m e n t . g e t E l e m e n t B y I d ( s E l e m e n t ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 	 	 	 	 	 	 	 	 	  
                                 }  
 	 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 	 t r y  
 	 	 	 	 	 {  
 	 	 	 	 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( s E l e m e n t ) [ 0 ] . s t y l e . v i s i b i l i t y   =   " h i d d e n " ; 	 	 	 	 	 	 	 	 	  
 	 	 	 	 	 }  
 	 	 	 	 	 c a t c h ( e )  
 	 	 	 	 	 { }  
 	 	 	 	 }  
 	 	 	 }  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   C l o s e D i v F r e q u e n t D e s t i n a t i o n s ( d i v I d ,   d i s p l a y E l e m e n t s )  
 {  
         v a r   s E l e m e n t ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i v I d ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	  
 	 i f   ( d i s p l a y E l e m e n t s   ! =   n u l l   & &   d i s p l a y E l e m e n t s   ! =   " " )  
 	 {  
 	 	 d i s p l a y E l e m e n t s   =   S t r i n g ( d i s p l a y E l e m e n t s ) ;  
 	 	 d i s p l a y E l e m e n t s   =   d i s p l a y E l e m e n t s . s p l i t ( " , " ) ;  
 	  
 	 	 i f   ( d i s p l a y E l e m e n t s [ 0 ]   ! =   n u l l   & &   d i s p l a y E l e m e n t s [ 0 ]   ! =   " "   & &   d i s p l a y E l e m e n t s [ 0 ]   ! =   " u n d e f i n e d " )  
 	 	 {  
 	 	 	 f o r ( v a r   i   =   0 ;   i <   d i s p l a y E l e m e n t s . l e n g t h ;   i + + )  
 	 	 	 {  
                                 s E l e m e n t   =   d i s p l a y E l e m e n t s [ i ] ;  
                                 s E l e m e n t   =   s E l e m e n t . r e p l a c e ( / ^ \ s + | \ s + $ / g ,   ' ' ) ;  
                                  
 	 	 	 	 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 E l e m e n t )   ! =   n u l l )  
 	 	 	 	 {  
 	 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( s E l e m e n t ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ; 	 	 	 	 	  
 	 	 	 	 }  
 	 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 	 t r y  
 	 	 	 	 	 {  
 	 	 	 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( s E l e m e n t ) [ 0 ] . s t y l e . d i s p l a y   =   " v i s i b l e " ; 	 	 	 	 	 	 	 	 	  
 	 	 	 	 	 }  
 	 	 	 	 	 c a t c h ( e )  
 	 	 	 	 	 { } 	 	 	 	 	  
 	 	 	 	 }  
 	 	 	 }  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   C h o o s e F r e q u e n t D e s t i n a t i o n ( f l d I n p u t ,   v a l u e )  
 {  
         v a r   s I n p u t F i e l d ;  
         v a r   a r r I n p u t F i e l d s   =   d o c u m e n t . g e t E l e m e n t B y I d ( f l d I n p u t ) . v a l u e . s p l i t ( " , " ) ;  
 	  
         f o r ( v a r   i   =   0 ;   i   <   a r r I n p u t F i e l d s . l e n g t h ;   i + + )  
         {  
                 s I n p u t F i e l d   =   a r r I n p u t F i e l d s [ i ] ;  
                 s I n p u t F i e l d   =   s I n p u t F i e l d . r e p l a c e ( / ^ \ s + | \ s + $ / g ,   ' ' ) ;  
                                  
                 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 I n p u t F i e l d )   ! =   n u l l )  
                 {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( s I n p u t F i e l d ) . v a l u e   =   v a l u e ;  
                 }  
         }  
 }  
  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
         F u n c t i o n s   -     A l l   E n g i n e s    
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 f u n c t i o n   G e t N e w D a t e ( d a y ,   m o n t h ,   y e a r )  
 { 	 	 	  
 	 m o n t h - - ;  
 	 r e t u r n   n e w   D a t e ( y e a r ,   m o n t h ,   d a y ) ;  
 }  
  
 f u n c t i o n   R e g u l a r R e s e r v a t i o n D a t e ( d a y ,   m o n t h ,   y e a r )  
 {  
 	 v a r   d a y T i m e   =   N u m b e r ( 8 6 4 0 0 0 0 0 ) ;  
 	 v a r   c u r r e n t D a t e   =   n e w   D a t e ( ) ;  
 	 c u r r e n t D a t e . s e t H o u r s ( 0 ) ;  
 	 c u r r e n t D a t e . s e t M i n u t e s ( 0 ) ;  
 	 c u r r e n t D a t e . s e t S e c o n d s ( 0 ) ;  
 	 c u r r e n t D a t e . s e t M i l l i s e c o n d s ( 0 ) ;  
  
 	 v a r   i n D a t e   =   n e w   D a t e ( y e a r ,   N u m b e r ( m o n t h )   -   1 ,   d a y ) ;  
 	 v a r   d i f f D a y s   =   N u m b e r ( ( i n D a t e . v a l u e O f ( )   -   c u r r e n t D a t e . v a l u e O f ( ) )   /   d a y T i m e ) ;  
  
 	 r e t u r n   ( M a t h . c e i l ( d i f f D a y s )   > =   d e f a u l t D a y D i f f ) ;  
 }  
  
 f u n c t i o n   C h e c k D a t e ( d a y ,   m o n t h ,   y e a r )  
 {  
 	 / /   C h e c k D a t e A u x   -   F u n c t i o n   i n c l u d e d   i n   / C l i e n t / J s / V a l i d a t i o n U t i l s . j s  
 	 i f   ( ! C h e c k D a t e A u x ( d a y ,   m o n t h ,   y e a r )   | |   ! R e g u l a r R e s e r v a t i o n D a t e ( d a y ,   m o n t h ,   y e a r ) )  
 	 	 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   G e t T e s t N i g h t s ( d a t e O u t ,   d a t e I n )  
 {  
 	 v a r   d a y T i m e   =   8 6 4 0 0 0 0 0 ;   / / N u m e r o   d e   m i l i s e g u n d o s   n u m   d i a  
 	 v a r   n i g h t s   =   G e t N i g h t s V a l u e ( d a t e O u t ,   d a t e I n ) ;  
 	  
 	 i f   ( n i g h t s   > =   0 )  
 	 	 r e t u r n   t r u e ;  
 	 	  
 	 r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   G e t N i g h t s V a l u e ( d a t e O u t ,   d a t e I n )  
 {  
 	 v a r   d a y T i m e   =   8 6 4 0 0 0 0 0 ;   / / N u m e r o   d e   m i l i s e g u n d o s   n u m   d i a  
 	 r e t u r n   ( ( d a t e O u t . v a l u e O f ( )   -   d a t e I n . v a l u e O f ( ) )   /   d a y T i m e ) ;  
 }  
  
 f u n c t i o n   C h e c k D a t e A u x ( d a y ,   m o n t h ,   y e a r )    
 {  
 	 i f   ( y e a r   <   1 0 0 0 )  
 	 	 r e t u r n   f a l s e ;  
 	  
 	 i f   ( m o n t h   <   1   | |   m o n t h   >   1 2 )  
 	 	 r e t u r n   f a l s e ;  
 	  
 	 i f   ( d a y   <   1   | |   d a y   >   3 1 )  
 	 	 r e t u r n   f a l s e ;  
 	  
 	 r e t u r n   ( d a y   < =   G e t D a y s I n M o n t h ( m o n t h ,   y e a r ) ) ;  
 }  
  
 f u n c t i o n   G e t D a y s I n M o n t h ( m o n t h ,   y e a r )  
 {  
 	 v a r   m i n D a y s I n M o n t h   =   3 0 ;  
 	 v a r   m a x D a y s I n M o n t h   =   3 1 ;  
 	 	 	 	 	 	 	 	 	 	  
 	 i f   ( m o n t h   <   8 )  
 	 {  
 	 	 i f   ( m o n t h   = =   2 )    
 	 	 	 r e t u r n   ( T e s t I f R e g u l a r Y e a r ( y e a r )   ?   2 8   :   2 9 ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n   ( m i n D a y s I n M o n t h   +   ( m o n t h   %   2 ) ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 r e t u r n   ( m a x D a y s I n M o n t h   -   ( m o n t h   %   2 ) ) ;  
 	 }  
 }  
  
 f u n c t i o n   T e s t I f R e g u l a r Y e a r ( y e a r )  
 { 	  
 	 r e t u r n   ! ( ( ( y e a r   %   4 )   = =   0   & &   ( y e a r   %   1 0 0 )   ! =   0 )   | |   ( y e a r   %   4 0 0 )   = =   0 ) ;  
 }  
  
 f u n c t i o n   G e t N i g h t s ( )  
 {  
 	 v a r   d a y 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g D a y ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g D a y ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
 	 v a r   m o n t h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g M o n t h ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g M o n t h ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
 	 v a r   y e a 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 e g Y e a r ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g Y e a r ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
  
 	 v a r   d a y 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d D a y ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d D a y ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
 	 v a r   m o n t h 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d M o n t h ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d M o n t h ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
 	 v a r   y e a r 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d Y e a r ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d Y e a r ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
  
 	 v a r   d a t e 1   =   n e w   D a t e ( ) ;  
 	 v a r   d a t e 2   =   n e w   D a t e ( ) ;  
  
 	 v a r   o n e _ d a y   =   1 0 0 0 * 6 0 * 6 0 * 2 4 ;  
 	  
 	 d a t e 1 . s e t F u l l Y e a r ( y e a r 1 , m o n t h 1   -   1 , d a y 1 ) ;  
 	 d a t e 2 . s e t F u l l Y e a r ( y e a r 2 , m o n t h 2   -   1 , d a y 2 ) ;  
  
 	 v a r   d a y s   =   M a t h . c e i l ( ( d a t e 2 . g e t T i m e ( ) - d a t e 1 . g e t T i m e ( ) ) / ( o n e _ d a y ) ) ;              
  
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' N i g h t s ' ) . o p t i o n s . l e n g t h   > =   d a y s )  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' N i g h t s ' ) . o p t i o n s . s e l e c t e d I n d e x   =   d a y s ;  
 	 e l s e   / /   M a x i m o   p o r   d e f e i t o   é   4 5   n o i t e s   s ó   p o s s í v e l   a u m e n t a r   p o r   c a l e n d á r i o .  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' N i g h t s ' ) . o p t i o n s . s e l e c t e d I n d e x   =   4 5 ;  
 }  
  
  
 f u n c t i o n   R e t u r n D a t e B y N i g h t s ( n i g h t s )  
 {  
 	 v a r   d a y 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g D a y ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g D a y ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
 	 v a r   m o n t h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g M o n t h ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g M o n t h ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
 	 v a r   y e a 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 e g Y e a r ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' B e g Y e a r ' ) . o p t i o n s . s e l e c t e d I n d e x ] . v a l u e ;  
  
 	 v a r   d a t e 1   =   n e w   D a t e ( ) ;                
 	 d a t e 1 . s e t F u l l Y e a r ( y e a r 1 , m o n t h 1 , d a y 1 ) ;            
 	 d a t e 1 . s e t M o n t h ( d a t e 1 . g e t M o n t h ( ) - 1 ) ;    
 	 v a r   m i l l i s e g   =   d a t e 1 . g e t T i m e ( )   +   ( 1 0 0 0   *   6 0   *   6 0   *   2 4   *   n i g h t s ) ;          
 	 d a t e 1 . s e t T i m e ( m i l l i s e g ) ;  
  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d D a y ' ) . o p t i o n s . s e l e c t e d I n d e x   =   d a t e 1 . g e t D a t e ( )   -   1 ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d M o n t h ' ) . o p t i o n s . s e l e c t e d I n d e x   =   d a t e 1 . g e t M o n t h ( ) ;  
 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d Y e a r ' ) . o p t i o n s . s e l e c t e d I n d e x   =   d a t e 1 . g e t Y e a r ( )   -   d a t e T o d a y . g e t Y e a r ( ) ;  
 	 / / a l 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 ( ' E n d M o n t h A n o ' ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d M o n t h A n o ' ) . o p t i o n s . s e l e c t e d 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 ( ' Y a n o M e s 2 ' ) . o p t i o n s . s e l e c t e d I n d e x   =   d a t e 1 . g e t M o n t h ( )   +   1 ;        
  
 	 / / C h a n g e C a l e n d a r ( 0 ) ;  
 	 S e t D a t e F i e l d s C a l e n d a r ( c a l e n d a r D e p a r t D I V _ H o t e l ,   c a l e n d a r R e t u r n D I V _ H o t e l ,   1 ) ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' E n d D a y ' ) . o p t i o n s . s e l e c t e d I n d e x   =   d a t e 1 . g e t D a t e ( )   -   1 ;  
 	 S e t D a t e F i e l d s C a l e n d a r ( c a l e n d a r D e p a r t D I V _ H o t e l ,   c a l e n d a r R e t u r n D I V _ H o t e l ,   1 ) ;                            
 }  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
         F u n c t i o n s   -     A i r   E n g i n e    
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 f u n c t i o n   C h a n g e A i r E n g i n e T r i p T y p 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 ( " e n g i n e _ a i r _ t r i p _ t y p e " ) . c h e c k e d )  
 	 {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t d _ e n g i n e _ a i r _ a r r i v a l _ d a t 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 ( " t d _ e n g i n e _ a i r _ a r r i v a l _ h o u r s " ) . 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 ( " e n g i n e _ a i r _ a r r i v a l _ h o u r s " ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ;  
 	 }  
 	 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 ( " t d _ e n g i n e _ a i r _ a r r i v a l _ d a t 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 ( " t d _ e n g i n e _ a i r _ a r r i v a l _ h o u r s " ) . 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 ( " e n g i n e _ a i r _ a r r i v a l _ h o u r s " ) . 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   V a l i d a t e A i r E n g i n e ( )  
 {  
 	 v a r   d a t e I n   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	 v a r   d a t e O u t   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o 2 ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o 2 ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	  
 	 / / i d a  
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r _ t r i p _ t y p e " ) . c h e c k e d )  
 	 {  
 	         i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o ' ) . i t e m ( 0 ) . v a l u e ) )  
 	         {  
 	 	         a l e r t ( " A   d a t a   d e   p a r t i d a   n ã o   é   v á l i d a " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ m e s _ A v i a o _ Y a n o ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	         r e t u r n   f a l s e ;  
 	         }  
         	  
 	         / * i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o 2 ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o 2 ' ) . i t e m ( 0 ) . v a l u e ) )  
 	         {  
 	 	         a l e r t ( " A   d a t a   d e   r e g r e s s o   n ã o   é   v á l i d a " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 _ m e s _ A v i a o 2 _ Y a n o 2 ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	         r e t u r n   f a l s e ;  
 	         } * / 	  
  
                 / * i f   ( ! G e t T e s t N i g h t s ( d a t e O u t ,   d a t e I n ) )  
                 {  
         	         a l e r t ( " A   d a t a   d e   p a r t i d a   é   p o s t e r i o r   à   d a t a   d e   r e g r e s s o " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ m e s _ A v i a o _ Y a n o ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	         r e t u r n   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 s B y N a m e ( ' e n g i n e _ a i r _ d e p a r t u r e _ c i t y ' ) [ 0 ] . v a l u e   ! =   " " )  
 	         {  
 	 	         i f   ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r _ a r r i v a l _ c i t y ' ) [ 0 ] . v a l u e   = =   " " )  
 	 	         { 	  
 	 	 	         a l e r t ( " I n t r o d u z a   a   c i d a d e   d e   d e s t i n o " ) ;  
 	 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r _ a r r i v a l _ c i t y ' ) [ 0 ] . f o c u s ( ) ;  
 	 	 	         r e t u r n   f a l s e ;  
 	 	         }  
 	         }  
 	         e l s e    
 	         {  
 	 	         a l e r t ( " I n t r o d u z a   a   c i d a d e   d e   p a r t i d a " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r _ d e p a r t u r e _ c i t y ' ) [ 0 ] . 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 ;    
 	 }  
 	  
 	 / / i d a   e   v o l t a  
 	 e l s e  
 	        
 	 {  
 	       i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o ' ) . i t e m ( 0 ) . v a l u e ) )  
 	         {  
 	 	         a l e r t ( " A   d a t a   d e   p a r t i d a   n ã o   é   v á l i d a " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ m e s _ A v i a o _ Y a n o ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	         r e t u r n   f a l s e ;  
 	         }  
         	  
 	         i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o 2 ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o 2 ' ) . i t e m ( 0 ) . v a l u e ) )  
 	         {  
 	 	         a l e r t ( " A   d a t a   d e   r e g r e s s o   n ã o   é   v á l i d a " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 _ m e s _ A v i a o 2 _ Y a n o 2 ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	         r e t u r n   f a l s e ;  
 	         } 	  
  
                 i f   ( ! G e t T e s t N i g h t s ( d a t e O u t ,   d a t e I n ) )  
                 {  
         	         a l e r t ( " A   d a t a   d e   p a r t i d a   é   p o s t e r i o r   à   d a t a   d e   r e g r e s s o " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ m e s _ A v i a o _ Y a n o ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	         r e t u r n   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 s B y N a m e ( ' e n g i n e _ a i r _ d e p a r t u r e _ c i t y ' ) [ 0 ] . v a l u e   ! =   " " )  
 	         {  
 	 	         i f   ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r _ a r r i v a l _ c i t y ' ) [ 0 ] . v a l u e   = =   " " )  
 	 	         { 	  
 	 	 	         a l e r t ( " I n t r o d u z a   a   c i d a d e   d e   d e s t i n o " ) ;  
 	 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r _ a r r i v a l _ c i t y ' ) [ 0 ] . f o c u s ( ) ;  
 	 	 	         r e t u r n   f a l s e ;  
 	 	         }  
 	         }  
 	         e l s e    
 	         { 	  
 	 	         a l e r t ( " I n t r o d u z a   a   c i d a d e   d e   p a r t i d a " ) ;  
 	 	         d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r _ d e p a r t u r e _ c i t y ' ) [ 0 ] . 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 s   -     A i r H o t e l   E n g i n e    
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 f u n c t i o n   C h e c k I n d e p e n d e n t D a t e ( d a y ,   m o n t h ,   y e a r )  
 {  
 	 v a r   d t   =   n e w   D a t e ( y e a r + " / " + m o n t h + " / " + d a y ) ;  
 	  
 	 i f   ( ! C h e c k D a t e A u x ( d a y ,   m o n t h ,   y e a r ) )  
 	 { 	 	 	  
 	 	 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   V a l i d a t e A i r H o t e l E n g i n e ( )  
 {  
 	 v a r   d a t e I n   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o _ A H ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	 v a r   d a t e O u t   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o 2 _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o 2 _ A H ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	  
 	 i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o _ A H ' ) . i t e m ( 0 ) . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   p a r t i d a   n ã o   é   v á l i d a " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ A H _ m e s _ A v i a o _ A H _ Y a n o _ A H ' ) [ 0 ] . f o c u s ( ) ; 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	 i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s _ A v i a o 2 _ A H ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' Y a n o 2 _ A H ' ) . i t e m ( 0 ) . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   r e g r e s s o   n ã o   é   v á l i d a " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o 2 _ A H _ m e s _ A v i a o 2 _ A H _ Y a n o 2 _ A H ' ) [ 0 ] . f o c u s ( ) ; 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
  
         i f   ( ! G e t T e s t N i g h t s ( d a t e O u t ,   d a t e I n ) )  
         {  
         	 a l e r t ( " A   d a t a   d e   p a r t i d a   é   p o s t e r i o r   à   d a t a   d e   r e g r e s s o " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ A H _ m e s _ A v i a o _ A H _ Y a n o _ A H ' ) [ 0 ] . f o c u s ( ) ; 	 	  
 	 	 r e t u r n   f a l s e ;                  
         }  
          
 	 i f   ( d a t e O u t   -   d a t e I n   < =   0 )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   r e g r e s s o   t e m   q u e   s e r   p o s t e r i o r   à   d a t a   d e   p a r t i d a " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ A v i a o _ A H _ m e s _ A v i a o _ A H _ Y a n o _ A H ' ) [ 0 ] . f o c u s ( ) ;  
 	 	 r e t u r n   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 s B y N a m e ( ' e n g i n e _ a i r h o t e l _ d e p a r t u r e _ c i t y ' ) [ 0 ] . v a l u e   ! =   " " )  
 	 {  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r h o t e l _ a r r i v a l _ c i t y ' ) [ 0 ] . v a l u e   = =   " " )  
 	 	 { 	  
 	 	 	 a l e r t ( " I n t r o d u z a   a   c i d a d e   d e   d e s t i n o " ) ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r h o t e l _ a r r i v a l _ c i t y ' ) [ 0 ] . f o c u s ( ) ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 }  
 	 e l s e    
 	 { 	  
 	 	 a l e r t ( " I n t r o d u z a   a   c i d a d e   d e   p a r t i d a " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ a i r h o t e l _ d e p a r t u r e _ c i t y ' ) [ 0 ] . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
  
 	 v a r   s i n g l e s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r h o t e l _ s i n g l e s " ) . v a l u e ;  
 	 v a r   d o u b l e s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r h o t e l _ d o u b l e s " ) . v a l u e ;  
 	 v a r   t r i p l e s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r h o t e l _ t r i p l e s " ) . v a l u e ;  
 	 v a r   a d u l t s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r h o t e l _ a d u l t s " ) . v a l u e ;  
 	 v a r   c h i l d r e n   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r h o t e l _ c h i l d r e n " ) . v a l u e ;  
 	 v a r   i n f a n t s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ a i r h o t e l _ i n f a n t s " ) . v a l u e ;  
 	  
         i f   ( N u m b e r ( s i n g l e s )   +   N u m b e r ( d o u b l e s ) * 2   +   N u m b e r ( t r i p l e s ) * 3   ! =   N u m b e r ( a d u l t s )   +   N u m b e r ( c h i l d r e n )   +   N u m b e r ( i n f a n t s ) )  
 	 {  
 	 	 a l e r t ( " P e s q u i s a   i m p o s s i v e l .   V e r i f i q u e   a   c o e r ê n c i a   e n t r e   o   t i p o   d e   a l o j a m e n t o   e   o   n ú m e r o   d e   p e s s o a 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 s   -     H o t e l   E n g i n e    
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 f u n c t i o n   C h e c k E n g i n e H o t e l L o c a t i o n ( )  
 {  
         i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( " E n g i n e H o t e l L o c a t i o n " )   ! =   n u l l )  
         {  
                 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( " E n g i n e H o t e l L o c 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 ( " d i v E n g i n e H o t e l B l o c k 2 " ) . i n n e r H T M L   =   d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l C h e c k i n C h e c k o u t " ) . i n n e r H T M L ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l C h e c k i n C h e c k o u t " ) . i n n e r H T M L   =   " " ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l N a m e " ) . i n n e r H T M L   =   " " ;  
                 }  
                 e l s e  
                 {  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l B l o c k 1 " ) . i n n e r H T M L   =   d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l C h e c k i n C h e c k o u t " ) . i n n e r H T M L ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l C h e c k i n C h e c k o u t " ) . i n n e r H T M L   =   " " ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l B l o c k 2 " ) . i n n e r H T M L   =   d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l N a m e " ) . i n n e r H T M L ;  
                         d o c u m e n t . g e t E l e m e n t B y I d ( " d i v E n g i n e H o t e l N a m e " ) . i n n e r H T M L   =   " " ;  
                 }  
         }  
 }  
  
 f u n c t i o n   D i s p l a y R o o m s ( v a l )  
 { 	  
 	 f o r ( v a r   i = 1 ;   i < = 3 ;   i + + )  
 	 {  
 	 	 o b j   =   d o c u m e n t . g e t E l e m e n t B y I d ( " d i v _ e n g i n e _ h o t e l _ r o o m "   +   i ) ;  
 	 	  
 	 	 i f   ( o b j   ! =   n u l l )  
 	 	 {  
 	 	 	 i f   ( i   < =   v a l )  
 	 	 	 	 o b j . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
 	 	 	 e l s e  
 	 	 	 	 o b j . s t y l e . v i s i b i l i t y   =   " h i d d e n " ;  
 	 	 }  
 	 }  
 }  
 	 	 	 	  
 f u n c t i o n   V a l i d a t e H o t e l E n g i n e ( )  
 {  
 	 v a r   d a t e I n   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g D a y ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g M o n t h ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g Y e a r ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	 v a r   d a t e O u t   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d D a y ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d M o n t h ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d Y e a r ' ) . i t e m ( 0 ) . v a l u e ) ;  
  
 	 i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g D a y ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g M o n t h ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g Y e a r ' ) . i t e m ( 0 ) . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   C h e c k - I n   n ã o   é   v á l i d a . " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g D a y _ B e g M o n t h _ B e g Y e a r ' ) . i t e m ( 0 ) . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	 i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d D a y ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d M o n t h ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d Y e a r ' ) . i t e m ( 0 ) . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   C h e c k - O u t   n ã o   é   v á l i d a . " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' E n d D a y _ E n d M o n t h _ E n d Y e a r ' ) . i t e m ( 0 ) . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	 i f   ( d a t e O u t   -   d a t e I n   < =   0 )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   C h e c k - O u t   t e m   q u e   s e r   p o s t e r i o r   à   d a t a   d e   C h e c k - I n . " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' B e g D a y _ B e g M o n t h _ B e g Y e a r ' ) . i t e m ( 0 ) . f o c u s ( ) ;  
 	 	 r e t u r n   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 s B y N a m e ( ' C i t y ' ) [ 0 ] . v a l u e   = =   " " )  
 	 {  
 	 	 a l e r t ( " T e m   d e   p r e e n c h e r   o   d e s t i n o . " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' C i t y ' ) [ 0 ] . 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 s   -     C a r   E n g i n e    
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 f u n c t i o n   U p d a t e A r r i v a l P l a c e ( )  
 {        
         d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ c a r _ a r r i v a l _ c i t y " ) . 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 ( " e n g i n e _ c a r _ d e p a r t u r e _ c i t y " ) . v a l u e ;  
 }  
  
 f u n c t i o n   U p d a t e D e p a r t u r e P l a c e ( )  
 {        
         d o c u m e n t . g e t E l e m e n t B y I d ( " e n g i n e _ c a r _ d e p a r t u r e _ c i t y " ) . 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 ( " e n g i n e _ c a r _ a r r i v a l _ c i t y " ) . v a l u e ;  
 }  
  
 f u n c t i o n   V a l i d a t e C a r E n g i n e ( )  
 {  
 	 v a r   d a t e I n   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l D a y s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l M o n t h s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l Y e a r s _ C a r ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	 v a r   d a t e O u t   =   G e t N e w D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 D a y s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 M o n t h s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 Y e a r s _ C a r ' ) . i t e m ( 0 ) . v a l u e ) ;  
 	  
 	 i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l D a y s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l M o n t h s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l Y e a r s _ C a r ' ) . i t e m ( 0 ) . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   L e v a n t a m e n t o   n ã o   é   v á l i d a " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l D a y s _ C a r _ s e l C a l M o n t h s _ C a r _ s e l C a l Y e a r s _ C a r ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	 i f   ( ! C h e c k D a t e ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 D a y s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 M o n t h s _ C a r ' ) . i t e m ( 0 ) . v a l u e ,   d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 Y e a r s _ C a r ' ) . i t e m ( 0 ) . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " A   d a t a   d e   d e v o l u ç ã o   n ã o   é   v á l i d a " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' s e l C a l 2 D a y s _ C a r _ s e l C a l 2 M o n t h s _ C a r _ s e l C a l 2 Y e a r s _ C a r ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
  
         i f   ( ! G e t T e s t N i g h t s ( d a t e O u t ,   d a t e I n ) )  
         {  
         	 a l e r t ( " A   d a t a   d e   l e v a n t a m e n t o   é   p o s t e r i o r   à   d a t a   d e   d e v o l u ç ã o " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' d i a s _ C a r r o _ m e s _ C a r r o _ Y a n o ' ) . i t e m ( 0 ) . f o c u s ( ) ; 	 	  
 	 	 r e t u r n   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 s B y N a m e ( ' e n g i n e _ c a r _ d e p a r t u r e _ c i t y ' ) [ 0 ] . v a l u e   ! =   " " )  
 	 {  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ c a r _ a r r i v a l _ c i t y ' ) [ 0 ] . v a l u e   = =   " " )  
 	 	 { 	  
 	 	 	 a l e r t ( " I n t r o d u z a   o   l o c a l   d e   d e v o l u ç ã o " ) ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ c a r _ a r r i v a l _ c i t y ' ) [ 0 ] . f o c u s ( ) ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 }  
 	 e l s e    
 	 { 	  
 	 	 a l e r t ( " I n t r o d u z a   o   l o c a l   d e   l e v a n t a m e n t o " ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' e n g i n e _ c a r _ d e p a r t u r e _ c i t y ' ) [ 0 ] . 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 s   -     V a c a t i o n s   E n g i n e    
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 f u n c t i o n   B i n d V a c a t i o n s E n g i n e ( s I d E n g i n e F o r m )  
 {  
         v a r   o b j E n g i n e F o r m   =   d o c u m e n t . g e t E l e m e n t B y I d ( s I d E n g i n e F o r m ) ;  
         v a r   o b j E n g i n e C o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( s I d E n g i n e C o n t a i n e r ) ;  
          
         o b j E n g i n e F o r m . a c t i o n   =   " / A j a x P a g e / s e a r c h b o x . a s p x ? m t r = v a c a t i o n s " ;  
         o b j E n g i n e F o r m . t a r g e t   =   " i f r M o t o r " ;  
         o b j E n g i n e F o r m . s u b m i t ( ) ;  
          
         o b j E n g i n e C o n t a i n e r . i n n e r H T M L   =   ' < t a b l e   w i d t h = " 3 2 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   b o r d e r = " 0 " > < t r > < t d   h e i g h t = " 1 9 4 p x "   v a l i g n = " m i d d l e "   a l i g n = " c e n t e r " > A g u a r d e   p o r   f a v o r . . . < / t d > < / t r > < / t a b l e > ' ;  
 }  
  
 
