ÿþf u n c t i o n   c h e c k 1 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " ¨¾©Í  …µ°È  •ÂªÍª¿ŸÁ•¿±Ç©Í"  
 | |   x   = =   " …µ°È  ¨¾©Í  •ÂªÍª¿ŸÁ•¿±Ç©Í"    
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
  
  
 f u n c t i o n   c h e c k 2 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " …µ©Í  •ÊžÍš®Í  š¾ªÍª¾ŸÁ  š®È•Í•¿±¾©Í"  
 | |   x   = =   " …µ©Í  š¾ªÍª¾ŸÁ  •ÊžÍš®Í  š®È•Í•¿±¾©Í"  
 | |   x   = =   " š¾ªÍª¾ŸÁ  …µ©Í  •ÊžÍš®Í  š®È•Í•¿±¾©Í"  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 3 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " ¨¾¯Í  µÇ•®¾  “ŸÁ¤Á"  
 | |   x   = =   " µÇ•®¾  ¨¾¯Í  “ŸÁ¤Á"  
  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 4 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " …µ™Í•  …µ°¾²Æ  °Ê®Íª  …´Á±¾™Í•"  
 | |   x   = =   " …µ°¾²Æ  …µ™Í•  °Ê®Íª  …´Á±¾™Í•"  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 5 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " ¨¾©Í  ‰©Í©ËŸÁ  ªÇšÁ•¿±Ç©Í"  
 | |   x   = =   " ‰©Í©ËŸÁ  ¨¾©Í  ªÇšÁ•¿±Ç©Í"  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 6 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " ¨À™Í•³Í  ‰™Í•³Í  µÀŸÍŸÈ  µ¿±Í•¿±À°Í•³¾"  
 | |   x   = =   " ‰™Í•³Í  µÀŸÍŸÈ  ¨À™Í•³Í  µ¿±Í•¿±À°Í•³¾"  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 7 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " ¨À  Ž©Í©  šÆ¯Í±Ç"  
 | |   x   = =   " Ž©Í©  šÆ¯Í±Ç  ¨À"  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 8 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " …µ°Í•³Í  ¨¾³È•Í•Á  š¿©¿®¾µÁ•Í•Á  ªË•¿±¾°Í•³Í"  
 | |   x   = =   " …µ°Í•³Í  ¨¾³È•Í•Á  š¿©¿®¾µÁ•Í•Á  ªËµ¾°Í•³Í"  
 | |   x   = =   " ¨¾³È•Í•Á  …µ°Í•³Í  š¿©¿®¾µÁ•Í•Á  ªË•¿±¾°Í•³Í"  
 | |   x   = =   " ¨¾³È•Í•Á  …µ°Í•³Í  š¿©¿®¾µÁ•Í•Á  ªËµ¾°Í•³Í"  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
 f u n c t i o n   c h e c k 9 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " "  
 | |   x   = =   " ª¾ŸÍŸ¿¯ËŸÆ  Š°Á²Ç°Á¨Í¤Á  µ±¾°Á"  
 | |   x   = =   " ª¾ŸÍŸ¿¯ËŸÆ  Š°Á²Ç°Á¨Í¤Á  µ±¾°Í"  
  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
  
 f u n c t i o n   c h e c k 1 0 ( f o r m ) {  
 v a r   x   =   f o r m . t e x t b o x . v a l u e ;  
 i f   ( x   = =   " ª£®Í  µÀŸÁ  µ£ÍŸ¿  Ž²Í²¾¤Í¤Æ¯Á®Í  ¤®Íª¿•Í•Á  •ÊŸÁ•Í•¿±¾°Í"  
 | |   x   = =   " ¤®Íª¿•Í•Á  ª£®Í  µÀŸÁ  µ£ÍŸ¿  Ž²Í²¾¤Í¤Æ¯Á®Í  •ÊŸÁ•Í•¿±¾°Í"  
  
 ) {  
 a l e r t ( " T h a t   w a s   c o r r e c t " ) ;  
 }  
 e l s e {  
 a l e r t ( " T h a t   i s   i n c o r r e c t .   T r y   a g a i n " ) ;  
 }  
 }  
  
 f u n c t i o n   m a i l I t ( f o r m )   {  
     v a r   d a t a   =   d o c u m e n t . m a i l F o r m  
     v a r   u s e r I n f o   =   " "    
   v a r   m y t e x t   =   " "    
   i f ( d a t a . r e c i p i e n t . v a l u e   = =   " " ) {    
     a l e r t ( " Y o u   m u s t   e n t e r   y o u r   t e a c h e r ' s   a d d r e s s ! " ) ;    
       r e t u r n   f a l s e ;  
   }  
   e l s e {    
   u s e r I n f o   + =   " T o :   "   +   d a t a . r e c i p i e n t . v a l u e   +   " \ n "    
   }  
   i f   ( d a t a . e m a i l a d . v a l u e   = =   " " ) {    
 a l e r t ( " Y o u   n e e d   t o   e n t e r   y o u r   e m a i l   a d d r e s s   a l s o ! " ) ;    
 r e t u r n   f a l s e ;  
 }  
   e l s e {  
 u s e r I n f o   + =   " F r o m :   "   +   d a t a . e m a i l a d . v a l u e   +   " \ n "    
 }  
 u s e r I n f o   + =   " S u b j e c t :   "   +   " S t u d e n t   e x e r c i s e "   +   " \ n \ n "    
 u s e r I n f o   + =   " S t u d e n t :   "   +   d a t a . s t u d e n t . v a l u e   +   " \ n "    
 u s e r I n f o   + =   " P a g e   T i t l e :     "   +   d o c u m e n t . t i t l e   +   " \ n \ n "    
 d a t a   =   d o c u m e n t . t e s t F o r m 1  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   1   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 2  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   2   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 3  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   3   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 4  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   4   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 5  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   5   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 6  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   6   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 7  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   7   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 8  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   8   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 9  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   9   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 d a t a   =   d o c u m e n t . t e s t F o r m 1 0  
 i f ( d a t a . t e x t b o x . v a l u e   ! =   " " ) {  
 m y t e x t   + =   " S e n t e n c e   1 0   =   "     +   d a t a . t e x t b o x . v a l u e   +   " \ n "    
 }  
 f o r m . m a i l B o d y . v a l u e   =   " ( b s ) "   +   u s e r I n f o   +   m y t e x t   +   " \ n "   +   " ( e s ) "    
 f o r m . a c t i o n   =   " h t t p : / / c c a t . s a s . u p e n n . e d u / c g i - b i n / t a m i l / s e n d d a t a "    
 r e t u r n   t r u e  
 }  
  
 f u n c t i o n   a d d i t ( t e x t ,   f o r m ) {  
 i f ( f o r m . t e x t b o x . v a l u e   = =   " " ) {  
 f o r m . t e x t b o x . v a l u e   =   t e x t ;  
 }  
 e l s e {  
 f o r m . t e x t b o x . v a l u e   =   f o r m . t e x t b o x . v a l u e   +   "   "   +   t e x t ;  
 }  
 }  
  
 
