ÿþf u n c t i o n   v a l i d a t e C o n t a c t F o r m ( )  
 {  
         v a r   a t = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t E m a i l " ) . v a l u e . i n d e x O f ( " @ " )  
         / / v a r   s u b j 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 u b j e c t " ) . v a l u e  
         v a r   f u l l 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 x t N a m e " ) . v a l u e  
         v a r   m e s s a g e = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t M s g " ) . v a l u e  
  
         s u b m i t O K = " t r u e "  
  
         i f   ( f u l l n a m e . l e n g t h < 5 )  
           {  
                   a l e r t ( " D7A'  F'E  1'  (7H1  ©'ED  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
         i f   ( a t = = - 1 )  
           {  
                   a l e r t ( " 'ÌEÌD  B'(D  B(HD  FÌ3*" )  
                   s u b m i t O K = " f a l s e "  
           }  
           / * i f   ( s u b j e c t . l e n g t h < 1 )  
           {  
                   a l e r t ( " P l e a s e   E n t e r   T h e   S u b j e c t " )  
                   s u b m i t O K = " f a l s e "  
           } * /  
           i f   ( m e s s a g e . l e n g t h < 1 )  
           {  
                   a l e r t ( " D7A'  E*F  ~Ì'E  1'  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
         i f   ( s u b m i t O K = = " f a l s e " )  
           {  
                   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 S u p p o r t F o r m ( )  
 {  
         v a r   a t = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t E m a i l " ) . v a l u e . i n d e x O f ( " @ " )  
         v a r   s u b j 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 ( " t x t S u b j e c t " ) . v a l u e  
         v a r   f u l l 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 x t N a m e " ) . v a l u e  
         v a r   m e s s a g e = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t M s g " ) . v a l u e  
  
         s u b m i t O K = " t r u e "  
  
         i f   ( f u l l n a m e . l e n g t h < 5 )  
           {  
                   a l e r t ( " D7A'  F'E  1'  (7H1  ©'ED  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
         i f   ( a t = = - 1 )  
           {  
                   a l e r t ( " 'ÌEÌD  B'(D  B(HD  FÌ3*" )  
                   s u b m i t O K = " f a l s e "  
           }  
           i f   ( s u b j e c t . l e n g t h < 1 )  
           {  
                   a l e r t ( " D7A'  9FH'F  E*F  1'  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
           i f   ( m e s s a g e . l e n g t h < 1 )  
           {  
                   a l e r t ( " D7A'  E*F  ~Ì'E  1'  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
         i f   ( s u b m i t O K = = " f a l s e " )  
           {  
                   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 D e s i g n F o r m ( )  
 {  
         v a r   a t = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t E m a i l " ) . v a l u e . i n d e x O f ( " @ " )  
         v a r   o c c u p a t i o n = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t O c c u p a t i o n " ) . v a l u e  
         v a r   f u l l 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 x t N a m e " ) . v a l u e  
         v a r   t e l l = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t T e l l " ) . v a l u e  
         v a r   c i t y C o d e = d o c u m e n t . g e t E l e m e n t B y I d ( " t x t C i t y C o d e " ) . v a l u e  
  
         s u b m i t O K = " t r u e "  
  
         i f   ( f u l l n a m e . l e n g t h < 5 )  
           {  
                   a l e r t ( " D7A'  F'E  1'  (7H1  ©'ED  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
           i f   ( o c c u p a t i o n . l e n g t h < 1 )  
           {  
                   a l e r t ( " D7A'  2EÌFG  Ì  ©'1Ì  .H/  1'  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
         i f   ( a t = = - 1 )  
           {  
                   a l e r t ( " 'ÌEÌD  B'(D  B(HD  FÌ3*" )  
                   s u b m i t O K = " f a l s e "  
           }  
           i f   ( t e l l . l e n g t h < 1 )  
           {  
                   a l e r t ( " D7A'  4E'1G  *E'3  1'  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
           i f   ( c i t y C o d e . l e n g t h < 1 )  
           {  
                   a l e r t ( " D7A'  ~Ì4  4E'1G  4G1  1'  H'1/  ©FÌ/" )  
                   s u b m i t O K = " f a l s e "  
           }  
  
         i f   ( s u b m i t O K = = " f a l s e " )  
           {  
                   r e t u r n   f a l s e  
           }  
 }  
 