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