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