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