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