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