ÿþ 
 f u n c t i o n   c h e c k f o r m   (   f o r m 1   )  
  
 {  
        
     / /   * *   S T A R T   * *  
     i f   ( f o r m 1 . L A S T _ N A M E . v a l u e   = =   " " )   {  
         a l e r t (   " P l e a s e   e n t e r   y o u r   L a s t   N a m e . "   ) ;  
         f o r m 1 . L A S T _ N A M E . f o c u s ( ) ;  
         r e t u r n   f a l s e   ;  
     }  
     i f   ( f o r m 1 . F I R S T _ N A M E . v a l u e   = =   " " )   {  
         a l e r t (   " P l e a s e   e n t e r   y o u r   F i r s t   N a m e . "   ) ;  
         f o r m 1 . F I R S T _ N A M E . f o c u s ( ) ;  
         r e t u r n   f a l s e   ;  
     }  
  
 i f   ( f o r m 1 . C O M M E N T S . v a l u e   = =   " " )   {  
         a l e r t (   " C o m m e n t s   c a n ' t   b e   b l a n k .   P l e a s e   e n t e r   y o u r   c o m m e n t s "   ) ;  
         f o r m 1 . 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   ( f o r m 1 . C O M M E N T S . v a l u e . l e n g t h   <   1 0 )   {  
         a l e r t (   " C o m m e n t s   h a s   t o   b e   b e t w e e n   1 0   t o   1 0 0 0   c h a r a c t e r s   "   ) ;  
         f o r m 1 . C O M M E N T S . f o c u s ( ) ;  
         r e t u r n   f a l s e   ;  
     }  
      
          
       / /   * *   E N D   * *  
     r e t u r n   t r u e   ;  
 }  
  
 
