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