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