ÿþf u n c t i o n   a s k ( )   {  
 d o c u m e n t . g e t E l e m e n t B y I d ( " a s k " ) . s t y l e . d i s p l a y = " n o n e " ;  
 i f   ( n a v i g a t o r . a p p N a m e = = " M i c r o s o f t   I n t e r n e t   E x p l o r e r " )   { d o c u m e n t . g e t E l e m e n t B y I d ( " a s k t a b l e " ) . s t y l e . d i s p l a y   =   " i n l i n e " }   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 ( " a s k t a b l e " ) . s t y l e . d i s p l a y   =   " t a b l e " ;  
 }  
  
 f u n c t i o n   l o o k u p ( t e x t ,   s e l e c t _ i d ,   u r l ,   i d )   {  
 i f   ( i d = = " n a m e " )   { d o c u m e n t . g e t E l e m e n t B y I d ( " t a b l e _ t e x t " ) . v a l u e = t e x t ; }  
                 i f ( ! t h i s . h t t p ) {  
                         t h i s . h t t p   =   g e t _ h t t p ( ) ;  
                         t h i s . w o r k i n g   =   f a l s e ;  
                 }  
                 i f   ( ! t h i s . w o r k i n g   & &   t h i s . h t t p )   {  
                         v a r   h t t p   =   t h i s . h t t p ;  
                         i f   ( t e x t . l e n g t h   < 1   )   r e t u r n ;  
                         u r l   =   u r l   +   " ? i d = " + e n c o d e U R I C o m p o n e n t ( i d ) + " & t e x t = " + e n c o d e U R I C o m p o n e n t ( t e x t ) ;  
                         t h i s . h t t p . o p e n ( " G E T " ,   u r l ,   t r u e ) ;  
                         t h i s . h t t p . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n ( )   {  
                                 i f   ( h t t p . r e a d y S t a t e   = =   4 )   {  
                                         f i l l ( s e l e c t _ i d ,   h t t p . r e s p o n s e T e x t ) ;  
                                         t h i s . w o r k i n g   =   f a l s e ;  
                                         g e t c o s t ( ) ;  
                                     v a r   f r o m _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " f r o m " ) . v a l u e ;  
                                       v a r   n a m e _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " n a m e " ) . v a l u e ;  
                                       v a r   p h o n e _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " p h o n e " ) . v a l u e ;  
                                       v a r   m a i l _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " m a i l " ) . v a l u e ;  
                                       v a r   t r _ n u m b e r _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " t r _ n u m b e r " ) . v a l u e ;  
                                       v a r   v a g _ n u m b e r _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " v a g _ n u m b e r " ) . v a l u e ;  
                                       v a r   s e a t s _ v a 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 a t s " ) . v a l u e ;  
                                       v a r   t a b l e _ t e x t _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " t a b l e _ t e x t " ) . v a l u e ;  
                                           r e d y t o g o   ( n a m e _ v a l ,   p h o n e _ v a l ,   m a i l _ v a l ,   f r o m _ v a l ,   t r _ n u m b e r _ v a l ,   v a g _ n u m b e r _ v a l ,   s e a t s _ v a l ,   t a b l e _ t e x t _ v a l ) ;  
                                       } e l s e {  
                                     }  
                         }  
                         t h i s . h t t p . s e n d ( n u l l ) ;  
                 }  
                 i f ( ! t h i s . h t t p ) {  
                             a l e r t ( ' Î ø è á ê à   ï ð è   ñ î ç ä à í è è   X M L H T T P   î á ú å ê ò à ! ' )  
                 }  
         }  
          
 f u n c t i o n   c o s t ( f r o m ,   t o ,   c a r _ c l a s s ,   h o u r ,   m i n ,   s e a t s )   {  
                 i f ( ! t h i s . h t t p _ c o s t ) {  
                         t h i s . h t t p _ c o s t   =   g e t _ h t t p ( ) ;  
                         t h i s . w o r k i n g   =   f a l s e ;  
                 }  
                 i f   ( ! t h i s . w o r k i n g   & &   t h i s . h t t p _ c o s t )   {  
                         v a r   h t t p _ c o s t   =   t h i s . h t t p _ c o s t ;  
                         / / i f   ( t e x t . l e n g t h   < 1   )   r e t u r n ;  
                         u r l   =   " c o s t . p h p ? f r o m = " + e n c o d e U R I C o m p o n e n t ( f r o m ) + " & t o = " + e n c o d e U R I C o m p o n e n t ( t o ) + " & c a r _ c l a s s = " + e n c o d e U R I C o m p o n e n t ( c a r _ c l a s s ) + " & h o u r = " + e n c o d e U R I C o m p o n e n t ( h o u r ) + " & m i n = " + e n c o d e U R I C o m p o n e n t ( m i n ) + " & s e a t s = " + e n c o d e U R I C o m p o n e n t ( s e a t s ) ;  
                         t h i s . h t t p _ c o s t . o p e n ( " G E T " ,   u r l ,   t r u e ) ;  
                         t h i s . h t t p _ c o s t . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n ( )   {  
                                 i f   ( h t t p _ c o s t . r e a d y S t a t e   = =   4 )   {  
                                 d o c u m e n t . g e t E l e m e n t B y I d ( " p r i c 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 ( " p r i c e " ) . i n n e r H T M L = " < f o n t   c o l o r = ' # 4 4 A A 4 4 ' > " + h t t p _ c o s t . r e s p o n s e T e x t + "   3@825=  ( $ " + p a r s e F l o a t ( h t t p _ c o s t . r e s p o n s e T e x t ) / 5 + " ) < / f o n t > " ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " h i d d e n p r i c e " ) . v a l u e = h t t p _ c o s t . r e s p o n s e T e x t + "   3@825=  ( $ " + p a r s e F l o a t ( h t t p _ c o s t . r e s p o n s e T e x t ) / 5 + " ) " ;                                        
   t h i s . w o r k i n g   =   f a l s e ;  
                                     } e l s e {  
                                     }  
                         }  
                         t h i s . h t t p _ c o s t . s e n d ( n u l l ) ;  
                 }  
                 i f ( ! t h i s . h t t p _ c o s t ) {  
                             a l e r t ( ' Î ø è á ê à   ï ð è   ñ î ç ä à í è è   X M L H T T P   î á ú å ê ò à ! ' )  
                 }  
         }  
          
 f u n c t i o n   g e t c o s t ( )  
 {  
         	 	 	 	   v a r   f r o m _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " f r o m " ) . v a l u e ;  
                                       v a r   t o _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " t o " ) . v a l u e ;  
                                       v a r   c a r _ c l a s s _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " c a r _ c l a s s " ) . v a l u e ;  
                                       v a r   h o u r _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " h o u r " ) . v a l u e ;  
                                       v a r   m i n _ v a l   = d o c u m e n t . g e t E l e m e n t B y I d ( " m i n " ) . v a l u e ;  
                                       v a r   s e a t s _ v a 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 a t s " ) . v a l u e ;  
                                           c o s t   ( f r o m _ v a l ,   t o _ v a l ,   c a r _ c l a s s _ v a l ,   h o u r _ v a l ,   m i n _ v a l ,   s e a t s _ v a l ) ;  
 }  
  
 f u n c t i o n   g e t _ h t t p ( ) {  
         v a r   x m l h t t p ;  
         / * @ c c _ o n  
         @ i f   ( @ _ j s c r i p t _ v e r s i o n   > =   5 )  
                 t r y   {  
                         x m l h t t p   =   n e w   A c t i v e X O b j e c t ( " M s x m l 2 . X M L H T T P " ) ;  
                 }   c a t c h   ( e )   {  
                         t r y   {  
                                 x m l h t t p   =   n e w    
                                 A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;  
                         }   c a t c h   ( E )   {  
                                 x m l h t t p   =   f a l s e ;  
                         }  
                 }  
         @ e l s e  
                 x m l h t t p   =   f a l s e ;  
         @ e n d   @ * /  
         i f   ( ! x m l h t t p   & &   t y p e o f   X M L H t t p R e q u e s t   ! =   ' u n d e f i n e d ' )   {  
                 t r y   {  
                         x m l h t t p   =   n e w   X M L H t t p R e q u e s t ( ) ;  
                 }   c a t c h   ( e )   {  
                         x m l h t t p   =   f a l s e ;  
                 }  
         }  
         r e t u r n   x m l h t t p ;  
 }  
  
 f u n c t i o n   f i l l   ( s e l e c t _ i d ,   d a t a ) {  
         v a r   s e l e c t   =   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 c t _ i d ) ;  
         s e l e c t . i n n e r H T M L = " " ;  
           s e l e c t . i n n e r H T M L = d a t a ;  
       / *     s e n d f o r m ( ) ; * /  
               }  
              
 f u n c t i o n   f r o m _ c h a n g e   ( f r o m ) {  
 i f   ( f r o m = = " 2 " )   {  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " w h a t i s t h i s " ) . i n n e r H T M L = " !  ?>5740" ;  
 	 	 	 i f   ( n a v i g a t o r . a p p N a m e = = " M i c r o s o f t   I n t e r n e t   E x p l o r e r " )   { d o c u m e n t . g e t E l e m e n t B y I d ( " v a g o n " ) . s t y l e . d i s p l a y   =   " i n l i n e " }   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 ( " v a g o n " ) . s t y l e . d i s p l a y   =   " t a b l e - r o w " ;  
 	 	 	 }  
 i f   ( f r o m = = " 1 " )   {  
 d o c u m e n t . g e t E l e m e n t B y I d ( " w h a t i s t h i s " ) . i n n e r H T M L = " !  @59A0" ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " v a g o n " ) . 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 ( " v a g _ n u m b e r " ) . v a l u e = " " ;  
 }  
 g e t c o s t ( ) ;  
 }  
  
 f u n c t i o n   r e d y t o g o   ( n a m e ,   p h o n e ,   m a i l ,   f r o m ,   t r _ n u m b e r ,   v a g _ n u m b e r ,   s e a t s ,   t a b l e _ t e x t )  
 {  
 i f ( ! t h i s . h t t p _ r e d y t o g o   ) {  
                         t h i s . h t t p _ r e d y t o g o   =   g e t _ h t t p ( ) ;  
                         t h i s . w o r k i n g   =   f a l s e ;  
                 }  
                 i f   ( ! t h i s . w o r k i n g   & &   t h i s . h t t p _ r e d y t o g o   )   {  
                         v a r   h t t p _ r e d y t o g o   =   t h i s . h t t p _ r e d y t o g o   ;  
                         / / i f   ( t e x t . l e n g t h   < 1   )   r e t u r n ;  
                         u r l   =   " r e d y . p h p ? n a m e = " + e n c o d e U R I C o m p o n e n t ( n a m e ) + " & p h o n e = " + e n c o d e U R I C o m p o n e n t ( p h o n e ) + " & m a i l = " + e n c o d e U R I C o m p o n e n t ( m a i l ) + " & f r o m = " + e n c o d e U R I C o m p o n e n t ( f r o m ) + " & t r _ n u m b e r = " + e n c o d e U R I C o m p o n e n t ( t r _ n u m b e r ) + " & v a g _ n u m b e r = " + e n c o d e U R I C o m p o n e n t ( v a g _ n u m b e r ) + " & s e a t s = " + e n c o d e U R I C o m p o n e n t ( s e a t s ) + " & t a b l e _ t e x t = " + e n c o d e U R I C o m p o n e n t ( t a b l e _ t e x t ) ;  
                         t h i s . h t t p _ r e d y t o g o . o p e n ( " G E T " ,   u r l ,   t r u e ) ;  
                         t h i s . h t t p _ r e d y t o g o . o n r e a d y s t a t e c h a n g e   =   f u n c t i o n ( )   {  
                                 i f   ( h t t p _ r e d y t o g o . r e a d y S t a t e   = =   4 )   {  
                                 / *   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 ( " u r a " ) . i n n e r H T M L = h t t p _ r e d y t o g o . r e s p o n s e T e x t ; * /  
                                     i f   ( h t t p _ r e d y t o g o . r e s p o n s e T e x t = = 1 )   { d o c u m e n t . f o r m s [ 0 ] . s u b m i t . d i s a b l e d   =   f a l s e ; }  
                                     e l s e   { d o c u m e n t . f o r m s [ 0 ] . s u b m i t . d i s a b l e d   =   t r u e ; }  
                                         t h i s . w o r k i n g   =   f a l s e ;  
                                     } e l s e {  
                                     }  
                         }  
                         t h i s . h t t p _ r e d y t o g o . s e n d ( n u l l ) ;  
                 }  
                 i f ( ! t h i s . h t t p _ r e d y t o g o ) {  
                             a l e r t ( ' Î ø è á ê à   ï ð è   ñ î ç ä à í è è   X M L H T T P   î á ú å ê ò à ! ' )  
                 }  
         }  
 
