ÿþf u n c t i o n   D e l ( W o r d )   {  
 a   =   W o r d . i n d e x O f ( " < " ) ;  
 b   =   W o r d . i n d e x O f ( " > " ) ;  
 l e n   =   W o r d . l e n g t h ;  
 c   =   W o r d . s u b s t r i n g ( 0 ,   a ) ;  
 i f ( b   = =   - 1 )  
 b   =   a ;  
 d   =   W o r d . s u b s t r i n g ( ( b   +   1 ) ,   l e n ) ;  
 W o r d   =   c   +   d ;  
 t a g C h e c k   =   W o r d . i n d e x O f ( " < " ) ;  
 i f ( t a g C h e c k   ! =   - 1 )  
 W o r d   =   D e l ( W o r d ) ;  
 r e t u r n   W o r d ;  
 }  
  
  
 f u n c t i o n   e c h e c k ( s t r )   {  
     v a r   a t = " @ "  
     v a r   d o t = " . "  
     v a r   l a t = s t r . i n d e x O f ( a t )  
     v a r   l s t r = s t r . l e n g t h  
     v a r   l d o t = s t r . i n d e x O f ( d o t )  
     i f   ( s t r . i n d e x O f ( a t ) = = - 1 ) {  
           a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
           r e t u r n   f a l s e  
     }  
     i f   ( s t r . i n d e x O f ( a t ) = = - 1   | |   s t r . i n d e x O f ( a t ) = = 0   | |   s t r . i n d e x O f ( a t ) = = l s t r ) {  
           a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
           r e t u r n   f a l s e  
     }  
     i f   ( s t r . i n d e x O f ( d o t ) = = - 1   | |   s t r . i n d e x O f ( d o t ) = = 0   | |   s t r . i n d e x O f ( d o t ) = = l s t r ) {  
             a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
             r e t u r n   f a l s e  
     }  
       i f   ( s t r . i n d e x O f ( a t , ( l a t + 1 ) ) ! = - 1 ) {  
             a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
             r e t u r n   f a l s e  
       }  
       i f   ( s t r . s u b s t r i n g ( l a t - 1 , l a t ) = = d o t   | |   s t r . s u b s t r i n g ( l a t + 1 , l a t + 2 ) = = d o t ) {  
             a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
             r e t u r n   f a l s e  
       }  
       i f   ( s t r . i n d e x O f ( d o t , ( l a t + 2 ) ) = = - 1 ) {  
             a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
             r e t u r n   f a l s e  
       }  
       i f   ( s t r . i n d e x O f ( "   " ) ! = - 1 ) {  
             a l e r t ( " G e ç e r s i z   E m a i l   A d r e s i " )  
             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   F r o n t P a g e _ F o r m 1 _ V a l i d a t o r ( t h e F o r m )  
 {  
  
         i f   ( t h e F o r m . f i r m a a d i . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " F i r m a   A d i n i z i \ "     y a z i n i z . " ) ;  
         t h e F o r m . f i r m a a d i . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
    
   {    
 T o C h e c k   =   d o c u m e n t . F r o n t P a g e _ F o r m 1 . f i r m a t a n i t i m i . v a l u e ;  
 C h e c k e d   =   D e l ( T o C h e c k ) ;  
 d o c u m e n t . F r o n t P a g e _ F o r m 1 . f i r m a t a n i t i m i . v a l u e   =   C h e c k e d ;  
  
 }  
  
         i f   ( t h e F o r m . a d . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " A d   A l a n i n i \ "     d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . a d . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
  
     i f   ( t h e F o r m . s o y a d . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " S o y a d i n i z \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . s o y a d . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
  
  
  
     i f   ( t h e F o r m . a d r e s . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " A d r e s \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . a d r e s . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
         i f   ( t h e F o r m . s e h i r . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " S e h i r \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . s e h i r . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
         i f   ( t h e F o r m . t e l 1 . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " T e l e f o n \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . t e l 1 . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
             i f   ( t h e F o r m . u r l . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " W e b s i t e n i z i n   A d r e s i n i z i   \ "   y a z m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . u r l . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
               i f   ( t h e F o r m . u r l . v a l u e   = =   " h t t p : / / " )  
     {  
         a l e r t ( " L ü t f e n     \ " W e b s i t e n i z i n   A d r e s i n i z i   \ "   y a z m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . u r l . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
      
      
         v a r   c h e c k O K   =   " 0 1 2 3 4 5 6 7 8 9 - , " ;  
     v a r   c h e c k S t r   =   t h e F o r m . t e l 1 . v a l u e ;  
     v a r   a l l V a l i d   =   t r u e ;  
     v a r   v a l i d G r o u p s   =   t r u e ;  
     v a r   d e c P o i n t s   =   0 ;  
     v a r   a l l N u m   =   " " ;  
     f o r   ( i   =   0 ;     i   <   c h e c k S t r . l e n g t h ;     i + + )  
     {  
         c h   =   c h e c k S t r . c h a r A t ( i ) ;  
         f o r   ( j   =   0 ;     j   <   c h e c k O K . l e n g t h ;     j + + )  
             i f   ( c h   = =   c h e c k O K . c h a r A t ( j ) )  
                 b r e a k ;  
         i f   ( j   = =   c h e c k O K . l e n g t h )  
         {  
             a l l V a l i d   =   f a l s e ;  
             b r e a k ;  
         }  
         i f   ( c h   = =   " , " )  
         {  
             a l l N u m   + =   " . " ;  
             d e c P o i n t s + + ;  
         }  
         e l s e  
             a l l N u m   + =   c h ;  
     }  
     i f   ( ! a l l V a l i d )  
     {  
         a l e r t ( " L ü t f e n   b u   a l a n a   s a d e c e   s a y i   k a r a k t e r l e r i   g i r i n i z \ " T e l e f o n \ "   Ö r n e k :   0 2 1 2 5 5 5 5 5 5 5 5 " ) ;  
         t h e F o r m . t e l 1 . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
  
  
  
      
         i f   ( t h e F o r m . e m a i l . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " E m a i l \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . e m a i l . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
  
  
      
    
     v a r   e m a i l I D = d o c u m e n t . F r o n t P a g e _ F o r m 1 . e m a i l  
      
  
     i f   ( e c h e c k ( e m a i l I D . v a l u e ) = = f a l s e ) {  
         e m a i l I D . v a l u e = " "  
         e m a i l I D . f o c u s ( )  
         r e t u r n   f a l s e  
     }  
      
         i f   ( F r o n t P a g e _ F o r m 1 . e m a i l . v a l u e   ! =   F r o n t P a g e _ F o r m 1 . e m a i l 2 . v a l u e )  
   {  
       a l e r t ( " E m a i l l e r   B i r b i r i   i l e   a y n i   d e g i l ! " ) ;  
       r e t u r n   ( f a l s e ) ;  
         }  
      
             i f   ( t h e F o r m . s i f r e . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " S i f r e \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . s i f r e . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
        
             i f   ( t h e F o r m . s i f r e 2 . v a l u e   = =   " " )  
     {  
         a l e r t ( " L ü t f e n     \ " S i f r e   T e k r a r \ "   A l a n i n i   d o l d u r m a y i   u n u t m a y i n i z . " ) ;  
         t h e F o r m . s i f r e 2 . f o c u s ( ) ;  
         r e t u r n   ( f a l s e ) ;  
     }  
      
      
 i f   ( F r o n t P a g e _ F o r m 1 . s i f r e . v a l u e   ! =   F r o n t P a g e _ F o r m 1 . s i f r e 2 . v a l u e )  
   {  
       a l e r t ( " S i f r e l e r   B i r b i r i   i l e   a y n i   d e g i l ! " ) ;  
       r e t u r n   ( f a l s e ) ;  
         }  
  
  
             i f   ( t h e F o r m . s o z l e s m e . c h e c k e d   = =   f a l s e   )  
     {  
         a l e r t ( " L ü t f e n   K u l l a n 1m   ^a r t l a r 1n 1  o k u y u p   k a b u l   e d i n i z ! . " ) ;  
         t h e F o r m . s o z l e s m 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 ) ;  
 }  
  
  
  
 
