ÿþf u n c t i o n   p c h a n g e ( o b j ,   m y e v e n t ) {  
 i f   (   m y e v e n t   = =   1   )   { o b j . s t y l e . b a c k g r o u n d   =   ' # d 7 f f b 0 ' ; }  
 i f   (   m y e v e n t   = =   0   )   { o b j . s t y l e . b a c k g r o u n d   =   ' # f f f f f f ' ;  
 p r e v V a l   =   o b j . v a l u e ; } }  
 f u n c t i o n   n u m a r a ( d e g e r )   { v a r   y a z   =   n e w   S t r i n g ( ) ;  
 v a r   n u m a r a l a r   =   "   0 1 2 3 4 5 6 7 8 9 " ;  
 v a r   c h a r s   =   d e g e r . v a l u e . s p l i t ( " " ) ;  
 f o r   ( i   =   0 ;   i   <   c h a r s . l e n g t h ;   i + + )   {  
 i f   ( n u m a r a l a r . i n d e x O f ( c h a r s [ i ] )   ! =   - 1 )   y a z   + =   c h a r s [ i ] ;  
 } i f   ( d e g e r . v a l u e   ! =   y a z )   d e g e r . v a l u e   =   y a z ; }  
 f u n c t i o n   f o r m k o n t r o l ( )  
 { v a r   m a i l a d r e s   =   d o c u m e n t . f o r m 2 . m a i l . v a l u e ;  
 v a r   m a i l a d r e s R e g e x   =   / ^ [ \ w - \ . ] + @ ( [ \ w - ] + \ . ) + [ \ w - ] { 2 , 4 } $ / ;  
 i f   ( d o c u m e n t . f o r m 2 . a d . v a l u e = = ' ' ) { a l e r t ( " A d 1n 1z   ! . . . " ) ; d o c u m e n t . f o r m 2 . a d . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . s o y a d . v a l u e = = ' ' ) { a l e r t ( " S o y a d 1n 1z   ! . . . " ) ; d o c u m e n t . f o r m 2 . s o y a d . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . t c . v a l u e = = ' ' ) { a l e r t ( " T C   K i m l i k   N o   ! . . . " ) ; d o c u m e n t . f o r m 2 . t c . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . t c . v a l u e . l e n g t h < 1 1 ) { a l e r t ( " T C   K i m l i k   N o   1 1   K a r a k t e r   O l m a l 1  ! . . . " ) ; d o c u m e n t . f o r m 2 . t c . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . a d r e s . v a l u e = = ' ' ) { a l e r t ( " A d r e s   ! . . . " ) ; d o c u m e n t . f o r m 2 . a d r e s . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . s e h i r . v a l u e = = ' ' ) { a l e r t ( " ^e h i r   S e ç i n i z   ! . . . " ) ; d o c u m e n t . f o r m 2 . s e h i r . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . i l c e . v a l u e = = ' ' ) { a l e r t ( " 0l ç e   S e ç i n i z   ! . . . " ) ; d o c u m e n t . f o r m 2 . i l c e . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . c e p . v a l u e = = ' '   & &   d o c u m e n t . f o r m 2 . t e l . v a l u e = = ' ' ) { a l e r t ( " C e p   y a d a   S a b i t   T e l   B i r i n i   Y a z m a l 1s 1n 1z   ! . . . " ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . m a i l . v a l u e = = ' ' ) { a l e r t ( " E - M a i l   A d r e s i   G i r i n i z   ! . . . " ) ; d o c u m e n t . f o r m 2 . m a i l . f o c u s ( ) ; }  
 e l s e   i f ( ! m a i l a d r e s . m a t c h ( m a i l a d r e s R e g e x ) )   { a l e r t ( " G e ç e r l i   E - M a i l   A d r e s i   G i r i n i z   ! . . . " ) ; d o c u m e n t . f o r m 2 . m a i l . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . a d e t . v a l u e = = ' ' ) { a l e r t ( " A d e t   G i r i n i z   ! . . . " ) ; d o c u m e n t . f o r m 2 . a d e t . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . f o r m 2 . a d e t . v a l u e = = ' 0 ' ) { a l e r t ( " E n   A z   1   A d e t   G i r i n i z   ! . . . " ) ; d o c u m e n t . f o r m 2 . a d e t . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' g k o d ' ) . v a l u e = = ' ' ) { a l e r t ( " G ü v e n l i k   K o d u n u   Y a z 1n 1z . . . " ) ; d o c u m e n t . f o r m 2 . g k o d . f o c u s ( ) ; }  
 e l s e   i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( ' g k o d u m ' ) . v a l u e ! = d o c u m e n t . g e t E l e m e n t B y I d ( ' g k o d ' ) . v a l u e ) { a l e r t ( " G ü v e n l i k   K o d u n u   Y a n l 1_  Y a z d 1n 1z " ) ; d o c u m e n t . f o r m 2 . g k o d . f o c u s ( ) ; }  
 e l s e   i f   ( f o r m 2 . k u r a l . c h e c k e d = = ' ' ) { a l e r t ( " S ö z l e _m e y i   O k u y u p   K a b u l   E d i y o r m u s u n u z   ? " ) ; }  
 e l s e   { d o c u m e n t . f o r m 2 . s u b m i t ( ) ; } r e t u r n   f a l s e ; } 
