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