ÿþf u n c t i o n   g i r i s _ k o n t r o l ( ) {  
   i f   ( d o c u m e n t . g i r i s . u y e m a i l . v a l u e . i n d e x O f ( ' @ ' )   = =   - 1 )   {      
     a l e r t ( " E - m a i l i n i z i   h a t a l 1  y a z d 1n 1z   !           " ) ;  
     d o c u m e n t . g i r i s . u y e m a i l . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }    
   i f   ( d o c u m e n t . g i r i s . u y e m a i l . v a l u e . i n d e x O f ( ' . ' )   = =   - 1 )   {  
     a l e r t ( " E - m a i l i n i z i   h a t a l 1  y a z d 1n 1z   !           " ) ;  
     d o c u m e n t . g i r i s . u y e m a i l . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }  
 i f   ( d o c u m e n t . g i r i s . u y e m a i l . v a l u e . l e n g t h   < = 0 )   {  
     a l e r t ( " L ü t f e n   e - m a i l i n i z i   y a z 1n 1z   !           " ) ;  
     d o c u m e n t . g i r i s . u y e m a i l . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }  
 i f   ( d o c u m e n t . g i r i s . u y e s i f . v a l u e . l e n g t h   < = 0 )   {  
     a l e r t ( " L ü t f e n   _i f r e n i z i   y a z 1n 1z   !           " ) ;  
     d o c u m e n t . g i r i s . u y e s i f . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }  
 }  
  
 f u n c t i o n   g i r i s _ k u r u m s a l _ k o n t r o l ( ) {  
 i f   ( d o c u m e n t . k u r u m s a l . u y e m a i l . v a l u e . l e n g t h   < = 0 )   {  
     a l e r t ( " L ü t f e n   Ü y e   N u m a r a n 1z 1  y a z 1n 1z   !           " ) ;  
     d o c u m e n t . k u r u m s a l . u y e m a i l . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }  
 i f   ( d o c u m e n t . k u r u m s a l . u y e s i f . v a l u e . l e n g t h   < = 0 )   {  
     a l e r t ( " L ü t f e n   _i f r e n i z i   y a z 1n 1z   !           " ) ;  
     d o c u m e n t . k u r u m s a l . u y e s i f . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }  
 }  
  
 f u n c t i o n   a r a m a _ k o n t r o l ( ) {  
 i f   ( d o c u m e n t . a r a m a . k e l i m e . v a l u e . l e n g t h   < = 0 )   {  
     a l e r t ( " L ü t f e n   a r a m a k   i s t e d i i n i z   k e l i m e y i   y a z 1n 1z   ! " ) ;  
     d o c u m e n t . a r a m a . k e l i m e . f o c u s ( ) ;  
     r e t u r n   f a l s e ;  
   }  
 }  
  
 f u n c t i o n   s e p e t _ k o n t r o l ( )   {  
 f o r   ( x x   =   0 ;   x x   <   d o c u m e n t . s e p e t . e l e m e n t s . l e n g t h - 1 ;   x x + + )   {  
 i f   ( d o c u m e n t . s e p e t . e l e m e n t s [ x x ] . t y p e   ! =   " c h e c k b o x " )   {  
     i f   ( ( d o c u m e n t . s e p e t . e l e m e n t s [ x x ] . v a l u e   = =   " " ) | | ( d o c u m e n t . s e p e t . e l e m e n t s [ x x ] . v a l u e   < =   0 ) )   {  
         a l e r t ( " L ü t f e n   g e r e k l i   a l a n l a r 1  d o l d u r u n u z   ! " ) ;  
         d o c u m e n t . s e p e t . e l e m e n t s [ x x ] . f o c u s ( ) ;  
         r e t u r n   f a l s e ;  
           }  
       }  
 }  
 }  
  
 f u n c t i o n   s i l m e ( f o r m )   {  
 i f   (   c o n f i r m ( " A l 1_v e r i s   s e p e t i n i z   b o _a l t 1l a c a k t 1r ,   o n a y l 1y o r   m u s u n u z ?           " )   )  
       r e t u r n   t r u e ;  
 e l s e  
   r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   T a n U z u n l u k ( G e l e n , U z n l k , f o r m a d i )   {  
 K r k U z   =   G e l e n . v a l u e . l e n g t h  
 f o r m s   =   e v a l ( " d o c u m e n t . "   +   f o r m a d i )  
 i f   ( K r k U z   = =   1   & &   G e l e n . v a l u e . s u b s t r i n g ( 0 , 1 )   = =   "   " ) {  
 	 G e l e n . v a l u e   =   " "  
 	 K r k U z   =   0 }  
 	 i f   ( K r k U z   >   U z n l k   )   {  
 	 G e l e n . v a l u e   =   G e l e n . v a l u e . s u b s t r i n g ( 0 , U z n l k )  
 	 K a r a k t e r U z   =   0  
 	 a l e r t ( " M a k s i m u m   "   +   U z n l k   +   "   k a r a k t e r   k u l l a n a b i l i r s i n i z   !           " )  
 	 } e l s e {  
 	 K a r a k t e r U z   =   U z n l k   -   K r k U z  
 	 }  
 f o r m s . k a l a n k a r a k t e r . v a l u e   =   K a r a k t e r U z  
 }  
  
 f u n c t i o n   u y e _ g i r i s ( g e l e n ) {  
 d o c u m e n t . a l l ( " u y e g i r i s B 1 " ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 d o c u m e n t . a l l ( " u y e g i r i s B 2 " ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 d o c u m e n t . a l l ( " u y e g i r i s K 1 " ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 d o c u m e n t . a l l ( " u y e g i r i s K 2 " ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 	 i f   ( g e l e n   = =   ' B ' ) {  
 	 d o c u m e n t . a l l ( " u y e g i r i s B 1 " ) . s t y l e . d i s p l a y   =   ' ' ;  
 	 d o c u m e n t . a l l ( " u y e g i r i s B 2 " ) . s t y l e . d i s p l a y   =   ' ' ;  
 	 d o c u m e n t . g i r i s . u y e m a i l . f o c u s ( ) ;  
 	 }  
 	 i f   ( g e l e n   = =   ' K ' ) {  
 	 d o c u m e n t . a l l ( " u y e g i r i s K 1 " ) . s t y l e . d i s p l a y   =   ' ' ;  
 	 d o c u m e n t . a l l ( " u y e g i r i s K 2 " ) . s t y l e . d i s p l a y   =   ' ' ;  
 	 d o c u m e n t . k u r u m s a l . u y e m a i l . f o c u s ( ) ;  
 	 }  
 } 
