ÿþ/ / < ! - -  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T H :   N e w   w i n d o w   o p e n s   f o r   e v e r y   n e w   w i n N a m e  
 f u n c t i o n   o p e n R e l a t i v e W i n d o w ( s t r U R L , w i n N a m e )    
 {  
 	 v a r   w i n W i d t h   =   M a t h . r o u n d ( s c r e e n . a v a i l W i d t h   *   0 . 8 )  
 	 v a r   w i n L e f t   =   M a t h . r o u n d ( s c r e e n . a v a i l W i d t h   *   0 . 1 )  
 	 w i n P r o p e r t i e s   =   ' w i d t h = ' + w i n W i d t h + ' , l e f t = ' + w i n L e f t + ' , t o p = 0 , h e i g h t = 0 , t o o l b a r = y e s , l o c a t i o n = y e s , s t a t u s = n o , m e n u b a r = y e s , s c r o l l b a r s = y e s , r e s i z a b l e = y e s '  
 	 w i n d o w . o p e n ( s t r U R L ,   w i n N a m e ,   w i n P r o p e r t i e s )  
 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T H :   o p e n   p o p   u p   w i n d o w  
 f u n c t i o n   o p e n W i n ( t h e U R L , w i n N a m e , W , H )  
 {  
 	 f e a t u r e s   =   ' h e i g h t = ' + H + ' , w i d t h = ' + W + ' , t o o l b a r = 0 , l o c a t i o n = 0 , s t a t u s = 0 , m e n u b a r = 0 , s c r o l l b a r s = 1 , r e s i z a b l e = 1 '  
 	 w i n d o w . o p e n ( t h e U R L , w i n N a m e , f e a t u r e s ) ;  
 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T H :   o p e n   p o p   u p   w i n d o w  
 f u n c t i o n   o p e n M o v i e ( t h e U R L )  
 {  
 	 w i n N a m e   =   ' s x V i d e o '  
 	 W   =   4 8 0  
 	 H   =   3 6 0  
 	 w i n T o p   =   1 0 0  
 	 w i n L e f t   =   2 0 0  
 	 f e a t u r e s   =   ' h e i g h t = ' + H + ' , w i d t h = ' + W + ' , t o p = ' + w i n T o p + ' , l e f t = ' + w i n L e f t + ' , t o o l b a r = 0 , l o c a t i o n = 0 , s t a t u s = 0 , m e n u b a r = 0 , s c r o l l b a r s = 1 , r e s i z a b l e = 1 '  
 	 w i n d o w . o p e n ( t h e U R L , w i n N a m e , f e a t u r e s ) ;  
 }  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T H :   A   N e w   c e n t e r e d   w i n d o w   o p e n s   f o r   e v e r y   n e w   w i n N a m e  
 f u n c t i o n   o p e n C e n t e r e d W i n d o w ( s t r U R L ,   w i n N a m e ,   w ,   h )  
 {  
 	 i f   ( w   = =   0   | |   w   = =   ' ' ) {  
 	 	 w   =   ( s c r e e n . w i d t h   -   1 6 0 ) ;  
 	 	 v a r   w i n L e f t   =   0 ;  
 	 } e l s e {  
 	 	 v a r   w i n L e f t   =   M a t h . r o u n d ( ( s c r e e n . w i d t h   -   w )   /   2 ) ;  
 	 }  
 	 i f   ( h   = =   0   | |   h   = =   ' ' ) {  
 	 	 h   =   ( s c r e e n . h e i g h t   -   1 6 5 ) ;  
 	 	 v a r   w i n T o p   =   0 ;  
 	 } e l s e {  
 	 	 v a r   w i n T o p   =   M a t h . r o u n d ( ( ( s c r e e n . h e i g h t   -   2 0 0 )   -   h )   /   2 ) ;  
 	 }  
 	 w i n P r o p e r t i e s   =   ' h e i g h t = ' + h + ' , w i d t h = ' + w + ' , t o p = ' + w i n T o p + ' , l e f t = ' + w i n L e f t + ' , l o c a t i o n = 1 , s t a t u s = 0 , t o o l b a r = y e s , m e n u b a r = y e s , s c r o l l b a r s = y e s , r e s i z a b l e = y e s '  
 	 w i n d o w . o p e n ( s t r U R L ,   w i n N a m e ,   w i n P r o p e r t i e s )  
 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T h :   C h a n g e   c l a s s  
 f u n c t i o n   c h a n g e C l a s s ( c e l l ,   n e w C l a s s )  
 	 {  
 	 c e l l . c l a s s N a m e   =   n e w C l a s s ;  
 	 } 	  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T h :   C h a n g e   c l a s s   b y   I D   N a m e  
 f u n c t i o n   c h a n g e C l a s s B y I D ( i d N a m e ,   n e w C l a s s )  
 	 {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d N a m e ) . c l a s s N a m e   =   n e w C l a s s ;  
 	 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T h :   C h a n g e   c l a s s   b y   I D   N a m e  
 f u n c t i o n   c h a n g e B e t w e e n C l a s s e s ( i d N a m e ,   n e w C l a s s ,   o l d C l a s s )  
 	 {  
 	 v a r   s x E l e m 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 ( i d N a m e )  
 	 s x E l e m e n t . c l a s s N a m e   =   ( s x E l e m e n t . c l a s s N a m e   = =   n e w C l a s s )   ?   o l d C l a s s   :   n e w C l a s s ;  
 	 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T h   -   S h o w   a n d   H i d e   L a y e r s  
 f u n c t i o n   s h o w B o x ( B o x I D )  
 {  
 	 v a r   l a y e r B o x   =   d o c u m e n t . g e t E l e m e n t B y I d ( B o x I D )  
 	 l a y e r B o x . s t y l e . d i s p l a y   =   ( l a y e r B o x . s t y l e . d i s p l a y   = =   ' n o n e ' )   ?   ' b l o c k '   :   ' n o n e ' ;  
 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   F T h   -   C h a n g e   i n n e r   H T M L  
 f u n c t i o n   c h a n g e H T M L ( h t m l I D ,   c u r r e n t C o n t e n t ,   n e w C o n t e n t )  
 {  
 	 v a r   s x H T M L   =   d o c u m e n t . g e t E l e m e n t B y I d ( h t m l I D )  
 	 s x H T M L . i n n e r H T M L   =   ( s x H T M L . i n n e r H T M L   = =   c u r r e n t C o n t e n t )   ?   n e w C o n t e n t   :   c u r r e n t C o n t e n t ;  
 }  
  
 / / U s e d   i n   o r d e r S h o w C u r r e n t   -   R e p l a c e s   t h e   a b o v e   o n e . . . .  
 f u n c t i o n   s h o w H i d e L a y e r ( t h i s I D , t h a t I D , f i r s t I m g , s e c o n d I m g )  
 {  
 	 v a r   l a 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 ( t h a t I D ) ;  
 	 i f   ( l a y e r . s t y l e . d i s p l a y   = =   ' n o n e ' )  
 	 {  
 	 	 l a y e r . s t y l e . d i s p l a y   =   ' b l o c k ' ;  
 	 	 l a 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 ( t h i s I D ) ;  
             l a y e r . i n n e r H T M L   =   ' < i m g   b o r d e r = " 0 "   s r c = " ' + f i r s t I m g + ' " > ' ;  
 	 }   e l s e   {  
 	 	 l a y e r . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 	 	 l a 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 ( t h i s I D ) ;  
 	 	 l a y e r . i n n e r H T M L   =   ' < i m g   b o r d e r = " 0 "   s r c = " ' + s e c o n d I m g + ' " > ' ;  
 	 }  
 }  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   O p e n s   a   l i n k   f r o m   a   f o r m   s e l e c t i o n  
 / /   o n c h a n g e = s u b m i t S e l e c t i o n ( t h i s . f o r m ) ,   s e l e c t e d O p t i o n   i s   t h e   n a m e   o f   t h e   s e l e c t i o n   f i e l d  
 f u n c t i o n   s u b m i t S e l e c t i o n ( f o r m )    
 {  
 	 l o c a t i o n = f o r m . s e l e c t e d O p t i o n . v a l u e  
 }  
  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 / /   O p e n s   a   l i n k   f r o m   A N Y   f o r m   s e l e c t i o n  
 / /   o n c h a n g e = s u b m i t M u l t i S e l e c t i o n ( t h i s . f o r m . s e l e c t i o n F i e l d N a m e )  
 f u n c t i o n   s u b m i t M u l t i S e l e c t i o n ( f o r m )  
 {  
 / / 	 l o c a t i o n = f o r m . v a l u e  
 	 l o c a t i o n = f o r m . v a l u e  
 }  
  
 f u n c t i o n   f o r m S u b m i t ( m y F o r m )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( m y F o r m ) . s u b m i t ( )  
 }  
  
  
 / /   F T h   -   C h a n g e   L a y e r s   a n d   L i n k   c o l o r s   b y   T a b s  
 f u n c t i o n   s h o w l a y e r ( l a y e r , s x N a m e )  
 {  
 	 i   =   0  
 	 w h i 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 x N a m e + i )   ! =   n u l l )  
 	 {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( s x N a m e + i ) . s t y l e . d i s p l a y   =   ( l a y e r   = =   ( s x N a m e + i ) )   ?   ' b l o c k '   :   ' n o n e ' ;  
 	 i + +  
 	 }  
 	 r e t u r n   f a l s e ;  
 }  
  
 / / F T h   C h a n g e s   t h e   c o l o r   o f   a   t e x t   c o u n t e r   b o x   w h e n   m a x   l e n g t h   i s   e x c e e d e d .  
 f u n c t i o n   c o u n t R e p E n t r i e s ( )    
 {  
       v a r   s x v   =   d o c u m e n t . f o r u m A r t i c l e s . t e x t b o d y . v a l u e ;  
       v a r   s x l   =   s x v . l e n g t h ;  
       d o c u m e n t . f o r u m A r t i c l e s . e n t e r e d . v a l u e   =   s x l ;  
       v a r   s x s   =   d o c u m e n t . f o r u m A r t i c l e s . e n t e r e d . s t y l e ;  
       s x s . b a c k g r o u n d C o l o r   =   ( s x l   > =   6 0 0 0 )   ?   ' # d d 0 0 0 0 '   :   ' # f f f f f f ' ;  
       s e t T i m e o u t ( " c o u n t R e p E n t r i e s ( ) "   , 0 ) ;  
 }  
  
 / / F T h   C h a n g e s   t h e   c o l o r   o f   a   t e x t   c o u n t e r   b o x   w h e n   m a x   l e n g t h   i s   e x c e e d e d .  
 f u n c t i o n   c o u n t N e w E n t r i e s ( )    
 {  
       v a r   s x v   =   d o c u m e n t . f o r u m A r t i c l e s . t e x t b o d y . v a l u e ;  
       v a r   s x l   =   s x v . l e n g t h ;  
       d o c u m e n t . f o r u m A r t i c l e s . e n t e r e d . v a l u e   =   s x l ;  
       v a r   s x s   =   d o c u m e n t . f o r u m A r t i c l e s . e n t e r e d . s t y l e ;  
       s x s . b a c k g r o u n d C o l o r   =   ( s x l   > =   1 2 0 0 0 )   ?   ' # d d 0 0 0 0 '   :   ' # f f f f f f ' ;  
       s e t T i m e o u t ( " c o u n t N e w E n t r i e s ( ) "   , 0 ) ;  
 }  
  
 f u n c t i o n   r e l o a d ( )  
 {  
 w i n d o w . l o c a t i o n . r e l o a d ( )  
 }  
  
 / / - - >  
 
