ÿþv a r   B A N N E R _ L O G S E R V E R _ U R L   =   " h t t p : / / 2 1 1 . 1 0 6 . 6 6 . 6 2 : 8 0 8 0 / Y N A / S t a t i s t i c s / " ; 
 
 f u n c t i o n   I A _ c h k V a l u e   ( i n V a l u e )   {     
 	 / /   u n d e f i n e d \¸  \ÔÜÂ´  v a l u e |¹  E m p t y   v a l u e \¸  ¼XÖhÕ. 
 	 v a r   r t n V a l u e   =   i n V a l u e ; 
 	 i f   ( r t n V a l u e   = =   " u n d e f i n e d "   | |   r t n V a l u e   = =   " n u l l "   | |   r t n V a l u e   = =   n u l l )   { 
 	 	 r t n V a l u e   =   " " ; 
 	 } 
 	 
 	 r e t u r n   r t n V a l u e ; 
 } 
 
 f u n c t i o n   I A _ g e t P a g e F i l e   ( I A _ U r l )   {     
 	 / /   Ä³TºxÇüÈŒÁ  ¼  Ó|·ø»0Ñ”²  ìÓhÕXÕÀÉ  JÅ”²  ˜ÓtÇÀÉ  p a t h Ì¹  ¼XÖhÕ. 
 	 / / v a r   e n d I d x   =   I A _ U r l . i n d e x O f ( " ? " ) ; 
 	 / / i f   ( e n d I d x   <   0 )   e n d I d x   =   I A _ U r l . l e n g t h ; 
 	 
 	 v a r   i n i t I d x   =   I A _ U r l . l a s t I n d e x O f ( " h t t p : / / " ) ; 
 	 i f   ( i n i t I d x   >   - 1 )   i n i t I d x   =   i n i t I d x   +   7 ; 
 	 e l s e   i n i t I d x   =   0 ; 
 
 	 v a r   s t a r t I d x   =   I A _ U r l . i n d e x O f ( " / " ,   i n i t I d x ) ; 
 	 s t a r t I d x   =   s t a r t I d x   +   1 ; 
 
 	 v a r   e n d I d x   =   I A _ U r l . i n d e x O f ( " ? " ,   s t a r t I d x ) ; 
 	 i f   ( e n d I d x   <   0 )   e n d I d x   =   I A _ U r l . l e n g t h ; 
 	 
 	 v a r   r t n V a l u e   =   I A _ U r l . s l i c e ( s t a r t I d x ,   e n d I d x ) ; 
 
 	 i f   ( r t n V a l u e . i n d e x O f ( " h t t p : / / " )   >   0 ) 
 	 r t n V a l u e 	 =   r t n V a l u e . s u b s t r i n g ( 0 , r t n V a l u e . i n d e x O f ( " h t t p : / / " ) ) ; 
 
 	 r e t u r n   e s c a p e ( r t n V a l u e ) ; 
 } 
 
 f u n c t i o n   I A _ g e t P a g e U R L   ( I A _ U r l )   {     
 	 / /   Ó|·ø»0ÑÌ¹DÇ  ÈxÆ\Õ    ˜ÓtÇÀÉ  U R L DÇ  ¼XÖhÕ. 
 	 v a r   e n d I d x   =   I A _ U r l . i n d e x O f ( " ? " ) ; 
 	 i f   ( e n d I d x   <   0 )   e n d I d x   =   I A _ U r l . l e n g t h ; 
 	 
 	 v a r   r t n V a l u e   =   I A _ U r l . s l i c e ( 0 ,   e n d I d x ) ; 
 
 	 r e t u r n   e s c a p e ( r t n V a l u e ) ; 
 } 
 
 f u n c t i o n   I A _ g e t D o m a i n N a m e   ( I A _ U r l )   {     
 	 / /   w w w . y n a . c o . k r ÖÜÐXÇ  Ä³TºxÇ  üÈŒÁ|¹  ¼XÖhÕ. 
 	 v a r   i n i t I d x   =   I A _ U r l . i n d e x O f ( " h t t p : / / " ) ; 
 	 i f   ( i n i t I d x   <   0 )   r e t u r n   " " ; 
 
 	 v a r   s t a r t I d x   =   i n i t I d x   +   7 ; 
 
 	 v a r   e n d I d x   =   I A _ U r l . i n d e x O f ( " / " ,   s t a r t I d x ) ; 
 	 i f   ( e n d I d x   <   0 )   e n d I d x   =   I A _ U r l . l e n g t h ; 
 	 
 	 v a r   r t n V a l u e   =   I A _ U r l . s l i c e ( s t a r t I d x ,   e n d I d x ) ; 
 
 	 r e t u r n   e s c a p e ( r t n V a l u e ) ; 
 } 
 
 f u n c t i o n   I A _ g e t C o o k i e   ( n a m e )   {     
 	 v a r   a r g   =   n a m e   +   " = " ;     
 	 v a r   a l e n   =   a r g . l e n g t h ;     
 	 v a r   c l e n   =   d o c u m e n t . c o o k i e . l e n g t h ;     
 	 v a r   i   =   0 ;     
 	 w h i l e   ( i   <   c l e n )   { 
 	 v a r   j   =   i   +   a l e n ;         
 	 i f   ( d o c u m e n t . c o o k i e . s u b s t r i n g ( i ,   j )   = =   a r g )             
 	 r e t u r n   I A _ g e t C o o k i e V a l   ( j ) ;         
 	 i   =   d o c u m e n t . c o o k i e . i n d e x O f ( "   " ,   i )   +   1 ;         
 	 i f   ( i   = =   0 )   b r e a k ;       
 	 }     
 	 r e t u r n   n u l l ; 
 } 
 
 f u n c t i o n   I A _ s e t C o o k i e ( n a m e ,   v a l u e )   { 	 
 	 / / v a r   n a m e   =   m y F o r m . c n a m e . v a l u e ; 
 	 / / v a r   p a s s   =   m y F o r m . c p a s s . v a l u e ; 
 	 v a r   e x p   =   n e w   D a t e ( ) ; 
 	 d o c u m e n t . c o o k i e   =   n a m e   +   " = "   +   v a l u e   ; 	 
 	 d o c u m e n t . c o o k i e   =   " e x p i r e s   =   "   +   e x p . t o G M T S t r i n g ( ) ; 
 	 / / a l e r t ( " C o o k i e   I n f o r m a t i o n   :   "   +   d o c u m e n t . c o o k i e ) ;                         
 } 
 
 f u n c t i o n   I A _ g e t C o o k i e V a l ( o f f s e t )   { 
 	 v a r   e n d s t r   =   d o c u m e n t . c o o k i e . i n d e x O f   ( " ; " ,   o f f s e t ) ; 
 	 i f   ( e n d s t r   = =   - 1 ) 
 	 e n d s t r   =   d o c u m e n t . c o o k i e . l e n g t h ; 
 	 r e t u r n   u n e s c a p e ( d o c u m e n t . c o o k i e . s u b s t r i n g ( o f f s e t ,   e n d s t r ) ) ; 
 } 
 
 / /   R e q u e s t   R e c e i v e   F u n c t i o n 
 f u n c t i o n   I A _ R e q u e s t ( v a l u e n a m e )         / / j a v a s c r i p t   i m p l e m e n t   R e q u e s t 
 { 
         v a r   r t n v a l   =   " " ; 
         v a r   n o w A d d r e s s   =   d o c u m e n t . U R L . r e p l a c e ( '   ' , ' ' ) ; 
         v a r   p a r a m e t e r s   =   ( n o w A d d r e s s . s l i c e ( n o w A d d r e s s . i n d e x O f ( " ? " ) + 1 , n o w A d d r e s s . l e n g t h ) ) . s p l i t ( " & " ) ; 
         
         f o r ( v a r   i   =   0   ;   i   <   p a r a m e t e r s . l e n g t h   ;   i + + ) { 
                 v a r   v a r N a m e   =   p a r a m e t e r s [ i ] . s p l i t ( " = " ) [ 0 ] ; 
                 i f ( v a r N a m e . t o U p p e r C a s e ( )   = =   v a l u e n a m e . t o U p p e r C a s e ( ) ) 
                 { 
                         r t n v a l   =   p a r a m e t e r s [ i ] . s p l i t ( " = " ) [ 1 ] ; 
                         b r e a k ; 
                 } 
         } 
         r e t u r n   r t n v a l ; 
 } 
 
 f u n c t i o n   I A _ g e t S e r v i c e I D ( )   { 
 	 / / a l e r t ( " I A _ g e t S e r v i c e I D " ) ; 
         
         
         v a r   R E T U R N _ S E R V I C E _ I D   =   " " ; 
 
     / / a l e r t ( I A _ R e q u e s t ( " S E R V I C E _ I D " ) ) ; 
         
       t r y {   R E T U R N _ S E R V I C E _ I D   =   I A _ R e q u e s t ( " S E R V I C E _ I D " ) ; } c a t c h ( e ) { R E T U R N _ S E R V I C E _ I D   =   " " ; } 
 	 
 	 / /   R E T U R N _ S E R V I C E _ I D   
         
 	 i f   ( R E T U R N _ S E R V I C E _ I D   = =   " " )   
 	 { 
 
 	         R E T U R N _ S E R V I C E _ I D   =   " I B " ; 
 	 } 
         r e t u r n   R E T U R N _ S E R V I C E _ I D ; 
 } 
 
 f u n c t i o n   f n _ W e b L o g ( ) 
 { 
 	 v a r   I A _ B A N N E R _ G R O U P _ I D 	     =   " " ; 
 	 v a r   I A _ B A N N E R _ I D 	             =   " " ; 
 	 v a r   I A _ B A N N E R _ U R L 	             =   " " ; 
 	 v a r   I A _ S E R I V C E _ I D                   =   " " ; 
 	 
 	 I A _ S E R I V C E _ I D   =   I A _ g e t S e r v i c e I D ( ) ; 
 	 
 	 t r y { I A _ B A N N E R _ G R O U P _ I D   =   d o c u m e n t . a l l [ " I A _ B A N N E R _ G R O U P _ I D " ] . v a l u e ; } c a t c h   ( e ) { I A _ B A N N E R _ G R O U P _ I D   = " " ; } 
 	 t r y { I A _ B A N N E R _ I D               =   d o c u m e n t . a l l [ " I A _ B A N N E R _ I D " ] . v a l u e ; } c a t c h   ( e ) { I A _ B A N N E R _ I D = " " ; }   
 	 t r y { I A _ B A N N E R _ U R L               =   d o c u m e n t . a l l [ " I A _ B A N N E R _ U R L " ] . v a l u e ; } c a t c h   ( e ) { I A _ B A N N E R _ U R L = " " ; } 
 	 
 	 
 	 / / a l e r t ( " I A _ B A N N E R _ I D   :   " + I A _ B A N N E R _ I D ) ; 
 
 / * 
 	 d o c u m e n t . w r i t e ( " < i m g   s r c = " + B A N N E R _ L O G S E R V E R _ U R L + " Y I A M T _ B A N N E R _ V I E W . w e b l o g ? " + 
 	                                 " & I A _ S E R V I C E _ I D = " + I A _ c h k V a l u e ( I A _ S E R I V C E _ I D ) + 
 	                                 " & I A _ B A N N E R _ G R O U P _ I D = " + I A _ c h k V a l u e ( I A _ B A N N E R _ G R O U P _ I D ) + 
 	 	 	 " & I A _ B A N N E R _ I D = " + I A _ c h k V a l u e ( I A _ B A N N E R _ I D ) + 
 	 	 	 "   b o r d e r = 0   h e i g h t = 0   w i d t h = 0   s t y l e = d i s p l a y : n o n e > " ) ; 
 * / 
 } 
 
 f u n c t i o n   f n _ B a n n e r C l i c k ( )   { 
         
         v a r   I A _ S E R I V C E _ I D                   =   " " ;   
         v a r   I A _ B A N N E R _ G R O U P _ I D 	     =   " " ; 
 	 v a r   I A _ B A N N E R _ I D 	             =   " " ; 
 	 v a r   I A _ B A N N E R _ U R L 	             =   " " ; 
 	 
 	 I A _ S E R I V C E _ I D   =   I A _ g e t S e r v i c e I D ( ) ; 
 
         t r y { I A _ B A N N E R _ G R O U P _ I D   =   d o c u m e n t . a l l [ " I A _ B A N N E R _ G R O U P _ I D " ] . v a l u e ; } c a t c h   ( e ) { I A _ B A N N E R _ G R O U P _ I D   = " " ; } 
 	 t r y { I A _ B A N N E R _ I D               =   d o c u m e n t . a l l [ " I A _ B A N N E R _ I D " ] . v a l u e ; } c a t c h   ( e ) { I A _ B A N N E R _ I D = " " ; } 
 	 t r y { I A _ B A N N E R _ U R L             =   d o c u m e n t . a l l [ " I A _ B A N N E R _ U R L " ] . v a l u e ; } c a t c h   ( e ) { I A _ B A N N E R _ U R L = " " ; } 
 	 
 / * 
 v a r   c l i c k U R L =   B A N N E R _ L O G S E R V E R _ U R L + " Y I A M T _ B A N N E R _ C L I C K . w e b l o g ? " + 
 	                             " & I A _ S E R V I C E _ I D = " + I A _ c h k V a l u e ( I A _ S E R I V C E _ I D ) + 
 	                             " & I A _ B A N N E R _ G R O U P _ I D = " + I A _ c h k V a l u e ( I A _ B A N N E R _ G R O U P _ I D ) + 
 	 	 	 	     " & I A _ B A N N E R _ I D = " + I A _ c h k V a l u e ( I A _ B A N N E R _ I D ) + 
 	 	 	 	     " & I A _ B A N N E R _ U R L = " +   e s c a p e ( I A _ c h k V a l u e ( I A _ B A N N E R _ U R L ) ) ;   
 * / 	 	 	 	     
 
 
 v a r   c l i c k U R L =   I A _ B A N N E R _ U R L ;   
 
 
 	 w i n d o w . o p e n ( c l i c k U R L ,   ' B A N N E R _ W I N _ C L I C K ' ) ; 
         
 } 
 / /   P a g e V i e w   S c r i p t   C a l l   ! ! ! 
 f n _ W e b L o g ( ) ; 
