ÿþ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 ;  
  
 v a r   T e x t E d i t o r F o l d e r P a t h  
 T e x t E d i t o r F o l d e r P a t h   =   ' 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   +   ' / i m p / t e x t e d i t o r / '  
 / / T e x t E d i t o r F o l d e r P a t h   =   ' h t t p : / / '   +   ' 1 2 7 . 0 . 0 . 1 / k a r i m i '   +   ' / i m p / t e x t e d i t o r / '  
  
 / / 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 {  
 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   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 M y S i t e 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 ( " f a / 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   p e y m e n t s   w i n d o w  
 f u n c t i o n   L o a d P e y m e n t s W i n d o w n ( M e m b e r 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 ( " p e y m e n t s . a s p ? i d = " + M e m b e r I D + " & l a n g = " + C L a n g , " v o t e r e s u l t " , " s c r o l l b a r s = 1 , w i d t h = 6 6 0 , h e i g h t = " + N e w H e i g h t + " , " + p o s ) ; }  
 / / L o a d   p e y m e n t s   w i n d o w  
  
  
 / / S u b m i t   c o n t a c t   f o r m  
 f u n c t i o n   S u b m i t C o n t a c t 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 _ c o n t a c t . 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 _ c o n t a c t . 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 _ c o n t a c t . p h o n e _ o r _ e m a i l . 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 _ c o n t a c t . p h o n e _ o r _ e m a i l . 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 _ c o n t a c t . s u b m i t   ( )  
 w i n d o w . d o c u m e n t . f r m _ c o n t a c t . 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 _ c o n t a c t . p h o n e _ o 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 _ c o n t a c t . d e s c . v a l u e   =   " "  
 w i n d o w . d o c u m e n t . f r m _ c o n t a c t . e m e r g e n c y . c h e c k e d   =   f a l s e  
 } } }  
 / / S u b m i t   c o n t a c t   f o r m  
  
 / / 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 , a c t i o n ) {  
 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 " + " & a c t i o n = " + a c t i o n , " 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 ( b o o k m a r k u r l , b o o k m a r k t i t l e ) {  
 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 ( i n i t i a l m s g , i n i t i a l s u b j ) {  
 / / 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  
  
  
 / / S e t   D e f u a l t   i n f o   i n   s e a r c h   f o r m  
 / / / / / S e t   G o t F o c u s   A c t i o n s / / / / /  
 f u n c t i o n   S e t T e x t B o x C o l o r I n G o t F o c u s ( S h o w T e x t , T e x t B o x ) {  
 i f   ( T e x t B o x = = " 1 " ) {  
 i f   ( w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . v a l u e   = =   S h o w T e x t ) {  
 w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . v a l u e   =   " "  
 w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . s t y l e . c o l o r   =   " # 0 0 0 0 0 0 " }  
 e l s e {  
 w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . s t y l e . c o l o r   =   " # 0 0 0 0 0 0 " } } }  
  
 / / / / / S e t   L o s t F o c u s   A c t i o n s / / / / /  
 f u n c t i o n   S e t T e x t B o x C o l o r I n L o s t F o c u s ( S h o w T e x t , T e x t B o x ) {  
 i f   ( T e x t B o x = = " 1 " ) {  
 i f   ( w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . v a l u e   = =   " " ) {  
 w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . v a l u e   =   S h o w T e x t  
 w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . s t y l e . c o l o r   =   " # C 0 C 0 C 0 " }  
 e l s e {  
 w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . s t y l e . c o l o r   =   " # 0 0 0 0 0 0 " } } }  
 / / S e t   D e f u a l t   i n f o   i n   s e a r c h   f o r m  
  
  
 / / S u b m i t   s e a r c h   f o r m  
 f u n c t i o n   S u b m i t S e a r c h F o r m ( h e l p t e x 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 _ s e a r c h . q . v a l u e   = =   " "   | |   w i n d o w . d o c u m e n t . f r m _ s e a r c h . q . v a l u e   = =   h e l p t e x t ) { ;  
 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 _ s e a r c h . q . 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 _ s e a r c h . s u b m i t   ( ) } } ;  
 / / S u b m i t   s e a r c h   f o r m  
  
  
 / / E x p a n d   y o u r   e d i t o r  
 f u n c t i o n   F C K e d i t o r _ O n C o m p l e t e (   e d i t o r I n s t a n c e   ) {  
 e d i t o r I n s t a n c e . E v e n t s . A t t a c h E v e n t (   ' O n B l u r ' 	 ,   F C K e d i t o r _ O n B l u r   )   ;  
 e d i t o r I n s t a n c e . E v e n t s . A t t a c h E v e n t (   ' O n F o c u s ' ,   F C K e d i t o r _ O n F o c u s   )   ; }  
  
 f u n c t i o n   F C K e d i t o r _ O n B l u r (   e d i t o r I n s t a n c e   ) {  
 e d i t o r I n s t a n c e . T o o l b a r S e t . C o l l a p s e ( )   ; }  
  
 f u n c t i o n   F C K e d i t o r _ O n F o c u s (   e d i t o r I n s t a n c e   ) {  
 e d i t o r I n s t a n c e . T o o l b a r S e t . E x p a n d ( )   ; }  
 / / E x p a n d   y o u r   e d i t o r  
  
 / / D e l e t e   A c c o u n t  
 f u n c t i o n   A c c o u n t D e l e t e 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'  (1'Ì  -0A  '©'F*  .H/  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 { } }  
 / / D e l e t e   A c c o u n t  
 
