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