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