ÿþ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 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 ) ; }  
  
 / / G e n e r a t e   n e w   l o c a i o n   f o r   e x t e n d e d   r e c o r d s  
 f u n c t i o n   L o a d C o r r e c t P a g e ( S i t e A d d r e s s , C o r r e c t P a t h , E X T S t r i n g ) {  
 v a r   x = d o c u m e n t . g e t E l e m e n t B y I d ( " p a g e c o u n t e r " )  
 v a r   y   =   x . s e l e c t e d I n d e x   +   1  
 w i n d o w . l o c a t i o n   =   S i t e A d d r e s s   +   " / "   +   C o r r e c t P a t h   +   " ? p a g e = "   +   y   +   E X T S t r i n g }  
 / / G e n e r a t e   n e w   l o c a i o n   f o r   e x t e n d e d   r e c o r d s  
  
 / / 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 ? c o m m e n t i d = 0 & 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  
  
  
 / / C o n f i r m   f u n c t i o n   f o r   d e l e t a t i o n   r e c o r d s  
 f u n c t i o n   d e l c o n f i r m ( l i n k ) {  
 v a r   d e l c n f = c o n f i r m ( " "Ì'  4E'  E7E&F  G3*Ì/  " )  
 i f   ( d e l c n f = = t r u e ) { w i n d o w . l o c a t i o n   =   l i n k }  
 e l s e { } }  
 / / C o n f i r m   f u n c t i o n   f o r   d e l e t a t i o n   r e c o r d s  
  
  
 f u n c t i o n   n e w a l e r t ( m e s s a g e ) { a l e r t ( m e s s a g e ) }  
 f u n c t i o n   l o a d c l o c a t i o n ( l o c a t i o n ) { w i n d o w . l o c a t i o n = l o c a t i o n } 
