ÿþ< ! - -  
  
     / /   ©   2 0 0 7   B i t p a l a s t   G m b H .   A l l e   R e c h t e   v o r b e h a l t e n .  
  
  
 	 f u n c t i o n   n u m b e r s o n l y ( e ) {  
 	 	 v a r   u n i c o d e = e . c h a r C o d e ?   e . c h a r C o d e   :   e . k e y C o d e  
 	 	 i f   ( ( u n i c o d e ! = 8 )   & &   ( u n i c o d e ! = 9 ) ) {   / / i f   t h e   k e y   i s n ' t   t h e   b a c k s p a c e   o r   t a b   k e y   ( w h i c h   w e   s h o u l d   a l l o w )  
 	 	 i f   ( u n i c o d e < 4 8 | | u n i c o d e > 5 7 )   / / i f   n o t   a   n u m b e r  
 	 	 r e t u r n   f a l s e   / / d i s a b l e   k e y   p r e s s  
 	 	 }  
 	 }  
  
  
     f u n c t i o n   c o n t a c t _ 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 . b e s c h r e i b u n g . v a l u e . l e n g t h   >   3 3 0 0 )  
         {  
             a l e r t ( " L ü t f e n   a ç 1k l a m a l a r 1n 1z 1  b i r   D I N   A 4   s a y f a s 1n a   s 1a c a k   _e k i l d e   a y a r l a y 1n 1z . " ) ;  
             t h e F o r m . b e s c h r e i b u n g . 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 . n a c h n a m e . v a l u e . l e n g t h   <   2 )  
         {  
             a l e r t ( " L ü t f e n   s o y a d 1n 1z 1  y a z 1n 1z . " ) ;  
             t h e F o r m . n a c h n a m 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 . v o r n a m e . v a l u e . l e n g t h   <   2 )  
         {  
             a l e r t ( " L ü t f e n   a d 1n 1z 1  y a z 1n 1z . " ) ;  
             t h e F o r m . v o r n a m 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 . p l z . v a l u e . l e n g t h   <   4 )  
         {  
             a l e r t ( " P o s t a   k o d u n u z d a   e n   a z   d ö r t   h a n e   o l m a l 1. " ) ;  
             t h e F o r m . p l z . 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 - p o s t a   a d r e s i n i z i   y a z 1n 1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 ) ;  
         }  
  
         i f   ( t h e F o r m . e m a i l . v a l u e . l e n g t h   <   8 )  
         {  
             a l e r t ( " E - p o s t a   a d r e s i n i z   e n   a z   s e k i z   h a n e   u z u n l u u n d a   o l m a l 1. " ) ;  
             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 ) ;  
         }  
  
         i f   ( ( t h e F o r m . e m a i l . v a l u e . i n d e x O f ( " s d f " )   >   - 1 )   | |   ( t h e F o r m . e m a i l . v a l u e . i n d e x O f ( " j k l " )   >   - 1 )   | |   ( t h e F o r m . e m a i l . v a l u e . i n d e x O f ( " . " )   = =   - 1 )   | |   ( t h e F o r m . e m a i l . v a l u e . i n d e x O f ( " @ " )   = =   - 1 ) )   {  
             a l e r t ( " E - p o s t a   a d r e s i n i z   g e ç e r s 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   c h e c k O K   =   " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ’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 . e m a i l . 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 ;  
         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   ( ! a l l V a l i d )  
         {  
             a l e r t ( " E - p o s t a   a d r e s i   i ç i n d e   l ü t f e n   s a d e c e   h a r f ,   r a k a m   v e   \ " @ - _ . \ "   i _a r e t l e r i n i   y a z 1n 1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 ) ;  
         }  
  
         i f   ( t h e F o r m . v o r w a h l . v a l u e . l e n g t h   <   3 )  
         {  
             a l e r t ( " T e l e f o n   k o d u n u z u   y a z 1n 1z . " ) ;  
             t h e F o r m . v o r w a h 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 . r u f n u m m e r . v a l u e . l e n g t h   <   2 )  
         {  
             a l e r t ( " T e l e f o n   n u m a r a n 1z 1  y a z 1n 1z . " ) ;  
             t h e F o r m . r u f n u m m e r . 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 ) ;  
     }  
  
     f u n c t i o n   c o n t a c t _ v a l i d a t o r 2 ( t h e F o r m )  
     {  
         i f   ( ( t h e F o r m . q u e l l e [ 0 ] . c h e c k e d )   & &   ( t h e F o r m . e m p f e h l u n g s g e b e r . v a l u e   = =   ' ' ) )  
         {  
             a l e r t ( " ' K i _i s e l   T a v s i y e '   k u t u s u n u   i _a r e t l e d i n i z ,   l ü t f e n   s i z i   t a v s i y e   e d e n   k i _i n i n   a d 1n 1  y a z 1n 1z .   T e _e k k ü r   e d e r i z ! " ) ;  
             t h e F o r m . e m p f e h l u n g s g e b e r . f o c u s ( ) ;  
             r e t u r n   ( f a l s e ) ;  
         }   e l s e   i f   ( ( t h e F o r m . q u e l l e [ 1 ] . c h e c k e d )   & &   ( t h e F o r m . z e i t s c h r i f t e n n a m e . v a l u e   = =   ' ' ) )  
         {  
             a l e r t ( " ' Y a z 1l 1  B a s 1n d a   0l a n '   k u t u s u n u   i _a r e t l e d i n i z ,   l ü t f e n   i l a n 1  h a n g i   g a z e t e / m e c m u a d a   g ö r d ü ü n ü z ü   y a z 1n 1z .   T e _e k k ü r   e d e r i z ! " ) ;  
             t h e F o r m . z e i t s c h r i f t e n n a m e . f o c u s ( ) ;  
             r e t u r n   ( f a l s e ) ;  
         }   e l s e   i f   ( ( t h e F o r m . q u e l l e [ 3 ] . c h e c k e d )   & &   ( t h e F o r m . w e b s i t e . v a l u e   = =   ' ' ) )  
         {  
             a l e r t ( " ' 0n t e r n e t '   k u t u s u n u   i _a r e t l e d i n i z ,   l ü t f e n   a d 1m 1z 1n   g e ç t i i   i n t e r n e t   w e b   s i t e s i n i n   a d r e s i n i   y a z 1n 1z .   T e _e k k ü r   e d e r i z ! " ) ;  
             t h e F o r m . w e b s i t 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 ) ;  
     }  
  
  
 / / - - > 
