ÿþ 
 v a r   k h o n g c h i u b a u c h o n   =   " . " ;  
  
 v a r   p h a r a s e _ c h a n g e _ p a s s w o r d _ 0 1   =   " P l e a s e   e n t e r   y o u r   c u r e n t   p a s s w o r d . " ;  
 v a r   p h a r a s e _ c h a n g e _ p a s s w o r d _ 0 2   =   " P l e a s e   e n t e r   n e w   p a s s w o r d . " ;  
 v a r   p h a r a s e _ c h a n g e _ p a s s w o r d _ 0 3   =   " Y o u   m u s t   c o n f i r m   n e w   p a s s w o r d . " ;  
 v a r   p h a r a s e _ c h a n g e _ p a s s w o r d _ 0 4   =   " Y o u   m u s t   c o n f i r m   n e w   p a s s w o r d . " ;  
  
 f u n c t i o n   o n s u b m i t _ m e n u _ m a i n _ e d i t ( i d _ f o r m ) {  
 i d _ f o r m . s u b m i t ( ) ;  
 }  
  
 f u n c t i o n   o n s u b m i t _ m e n u _ s u b _ e d i t ( i d _ f o r m ) {  
 i d _ f o r m . s u b m i t ( ) ;  
 }  
  
  
  
  
 / /   A r t   M o u s e   E v e n t  
  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
  
 f u n c t i o n   f c _ s h o w _ w i n d o w _ h e l p ( a i d ) {  
 v a r   s _ h e i g h t   =   5 0 0 ;  
 v a r   s _ w i d t h   =   7 0 0 ;  
 v a r   i _ p o s ;  
 i _ p o s   =   " m e n u b a r = n o , l o c a t i o n = n o , c e n t e r = y e s , t o o l b a r = n o , d i r e c t o r i e s = n o , l o c a t i o n = n o , s c r o l l b a r s = y e s , s t a t u s = n o , r e s i z a b l e = y e s " ;  
 i _ p o s   + =   " , T o p = "   +   ( ( s c r e e n . h e i g h t / 2 )   -   1 0 0   -   ( s _ h e i g h t / 2 ) )   +   " , L e f t = "   +   ( ( s c r e e n . w i d t h / 2 )   -   ( s _ w i d t h / 2 ) )  
 i _ p o s   + =   " ,   h e i g h t = "   +   s _ h e i g h t   +   " p x , w i d t h = "   +   s _ w i d t h   +   " p x " ;  
 s w i t c h   ( a i d )   {  
 	 c a s e   1 :  
 	 	 v a r   i _ u r l   =   " h t m l h e l p / c o l o r _ t a b l e . h t m " ;  
 	 	 b r e a k ;  
 	 d e f a u l t :  
 	 	 v a r   i _ u r l   =   " " ;  
 }  
 v a r   i _ w i n d o w _ n a m e   =   " w i n d o w _ v o t e " ;  
 v a r   o _ w _ u p ;  
 o _ w _ u p = w i n d o w . o p e n   ( i _ u r l ,   i _ w i n d o w _ n a m e ,   i _ p o s ) ;  
 o _ w _ u p . f o c u s ( ) ;  
  
 }  
  
  
  
  
  
 f u n c t i o n   f c _ s h o w _ w i n d o w s _ v o t e ( ) {  
 v a r   s _ h e i g h t   =   4 5 0 ;  
 v a r   s _ w i d t h   =   4 0 0 ;  
 v a r   i _ p o s ;  
 i _ p o s   =   " m e n u b a r = n o , l o c a t i o n = n o , c e n t e r = y e s , t o o l b a r = n o , d i r e c t o r i e s = n o , l o c a t i o n = n o , s c r o l l b a r s = y e s , s t a t u s = n o , r e s i z a b l e = n o " ;  
 i _ p o s   + =   " , T o p = "   +   ( ( s c r e e n . h e i g h t / 2 )   -   1 0 0   -   ( s _ h e i g h t / 2 ) )   +   " , L e f t = "   +   ( ( s c r e e n . w i d t h / 2 )   -   ( s _ w i d t h / 2 ) )  
 i _ p o s   + =   " ,   h e i g h t = "   +   s _ h e i g h t   +   " p x , w i d t h = "   +   s _ w i d t h   +   " p x " ;  
 v a r   i _ u r l   =   " " ;  
 v a r   i _ w i n d o w _ n a m e   =   " w i n d o w _ v o t e " ;  
 v a r   o _ w _ u p ;  
 o _ w _ u p = w i n d o w . o p e n   ( i _ u r l ,   i _ w i n d o w _ n a m e ,   i _ p o s ) ;  
 o _ w _ u p . f o c u s ( ) ;  
 p o l l _ f o r m . s u b m i t ( ) ;  
 }  
  
  
  
 f u n c t i o n   f c _ s h o w _ w i n d o w s _ v o t e _ v i e w e r ( ) {  
 / / v a r   i _ p o s ;  
 / / v a r   i _ p o s   =   " m e n u b a r = n o , l o c a t i o n = n o , c e n t e r = y e s , t o o l b a r = n o , d i r e c t o r i e s = n o , l o c a t i o n = n o , s c r o l l b a r s = y e s , s t a t u s = n o , r e s i z a b l e = n o , T o p = "   +   1 0   +   " , L e f t = "   +   ( ( s c r e e n . w i d t h / 2 )   -   2 5 0 )   +   " ,   h e i g h t = 4 0 0 p x , w i d t h = 5 0 0 p x " ;  
 / / v a r   i _ w i n d o w _ n a m e   =   " w i n d o w _ v o t e " ;  
 / / v a r   o _ w _ u p ;  
 / / v a r   i _ u r l   =   " P a g e _ P o l l s . a s p " ;  
 / / o _ w _ u p = w i n d o w . o p e n   ( i _ u r l ,   i _ w i n d o w _ n a m e ,   i _ p o s ) ;  
 / / o _ w _ u p . f o c u s ( ) ;  
  
 v a r   s _ d i a l o g H e i g h t   =   4 5 0 ;  
 v a r   s _ d i a l o g W i d t h   =   4 0 0 ;  
 v a r   i _ p o s ;  
 v a r   i _ p o s   =   " c e n t e r : y e s ;   h e l p : n o ;   r e s i z a b l e : n o ;   s t a t u s : n o " ;  
 i _ p o s   + =   " ; d i a l o g T o p = "   +   ( ( s c r e e n . h e i g h t / 2 )   -   1 0 0   -   ( s _ d i a l o g H e i g h t / 2 ) )   +   " ; d i a l o g L e f t = "   +   ( ( s c r e e n . w i d t h / 2 )   -   ( s _ d i a l o g W i d t h / 2 ) )  
 i _ p o s   + =   " ;   d i a l o g W i d t h = "   +   s _ d i a l o g W i d t h   +   " p x ; d i a l o g H e i g h t = "   +   s _ d i a l o g H e i g h t   +   " p x " ;  
  
 v a r   i _ u r l   =   " P a g e _ P o l l s . a s p " ;  
 s h o w M o d a l D i a l o g ( i _ u r l , " " , i _ p o s ) ;  
  
 }  
  
  
 f u n c t i o n   o n s u b m i t _ a d d _ v o t e _ f o r m ( i d _ f o r m ) {  
 	 i f ( i d _ f o r m . f l d _ v o t e _ p r o j e c t s _ v a l u e . v a l u e = = " " )  
 	 {  
 	 	 i d _ f o r m . f l d _ v o t e _ p r o j e c t s _ v a l u e . f o c u s ( ) ;  
 	 	 a l e r t ( " B ¡n   c §n   n h ­p   n Ùi   d u n g   c ça   c â u   h Ïi   b ì n h   c h Ín . " ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 i d _ f o r m . s m . d i s a b l e d = t r u e ;  
 	 	 i d _ f o r m . s u b m i t ( ) ;  
 	 }  
 }  
  
  
  
  
  
  
  
 f u n c t i o n   s h o w _ i m a g e _ i n _ n e w _ w i n d o w s ( i m g _ o b j e c t ,   s U R L )  
 {  
 	 v a r   i _ p o s   =   " m e n u b a r = n o , f u l l s c r e e n = y e s , l o c a t i o n = n o , c e n t e r = y e s , t o o l b a r = n o , d i r e c t o r i e s = n o , l o c a t i o n = n o , s c r o l l b a r s = y e s , s t a t u s = n o , r e s i z a b l e = y e s " ;  
 	 v a r   i _ u r l   =   s U R L   +   " & p i c s r c = "   +   i m g _ o b j e c t . s r c ;  
 	 v a r   i _ w i n d o w _ n a m e   =   " w i n d o w _ i m a g e " ;  
 	 v a r   o _ w _ u p ;  
  
 	 o _ w _ u p = w i n d o w . o p e n   ( i _ u r l ,   i _ w i n d o w _ n a m e ,   i _ p o s ) ;  
 	 o _ w _ u p . f o c u s ( ) ;  
 }  
  
  
 / / v a r   c o u t e r _ r e p e a r   =   0 ;  
 / / f u n c t i o n   r e s i z e _ i m a g e ( )  
 / / {  
 / / 	 v a r   t o t a l _ i m g   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) . l e n g t h ;  
 / / 	 v a r   i ;  
 / / 	 f o r   ( i = 0 ; i < t o t a l _ i m g ; i + + )  
 / / 	 {  
 / / 	 	 i f ( d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) ( i ) . w i d t h   >   5 6 0 )  
 / / 	 	 {  
 / / 	 	 	 d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) ( i ) . s t y l e . w i d t h   =   5 6 5 ;  
 / / 	 	 	 d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) ( i ) . w i d t h   =   5 6 5 ;  
 / / 	 	 	 d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) ( i ) . s t y l e . c u r s o r   =   " h a n d " ;  
 / / 	 	 	 d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) ( i ) . t i t l e   =   " K í c h   v à o   Ã  x e m   h ì n h   v Ûi   k í c h   c á  §y   ç. " ;  
 / / 	 	 }  
 / / 	 }  
 / / 	 i f ( c o u t e r _ r e p e a r   <   1 5 )  
 / / 	 {  
 / / 	 	 c o u t e r _ r e p e a r + + ;  
 / / 	 	 s e t T i m e o u t ( " r e s i z e _ i m a g e ( ) " , 5 0 0 ) ;  
 / / 	 }  
 / / }  
  
  
  
 / *  
 v a r   c o u t e r _ r e p e a r ;  
 c o u t e r _ r e p e a r   =   0  
 v a r   o b j e c t _ 0 1 ;  
 v a r   s i z e _ I ;  
 f u n c t i o n   l o a d _ i m a g e _ r e s i z e d d d d d d d d ( i S i z e )  
 {  
 s i z e _ I   =   i S i z e  
 	 f o r   ( i = 1 ; i < t o t a l _ i m a g e _ v a l u e ; 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 ( " i m a g e s _ o b j e c t _ v a l u e _ " + i ) . w i d t h   >   i S i z e )  
 	 	 {  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " i m a g e s _ o b j e c t _ v a l u e _ " + i ) . s t y l e . w i d t h   =   i S i z e ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " i m a g e s _ o b j e c t _ v a l u e _ " + i ) . w i d t h   =   i S i z e ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " i m a g e s _ o b j e c t _ v a l u e _ " + i ) . s t y l e . c u r s o r   =   " h a n d " ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " i m a g e s _ o b j e c t _ v a l u e _ " + i ) . t i t l e   =   " C l i c k   h e r e   t o   v i e w   s i n g l e   I m a g e . " ;  
 	 	 }  
 	 }  
 	 i f ( c o u t e r _ r e p e a r < = 1 0 0 )  
 	 {  
 	 	 c o u t e r _ r e p e a r + + ;  
 	 	 s e t T i m e o u t ( " l o a d _ i m a g e _ r e s i z e ( s i z e _ I ) " , 1 0 0 ) ;  
 	 }  
 }  
 * /  
  
  
  
 f u n c t i o n   o n s u b m i t _ s i g n _ i n _ f o r m ( i d _ f o r m )  
 {  
 	 i f ( i d _ f o r m . i n p _ a c c o u n t _ u s e r n a m e . v a l u e   = =   " " )  
 	 {  
 	 	 i d _ f o r m . i n p _ a c c o u n t _ u s e r n a m e . f o c u s ( ) ;  
 	 	 a l e r t ( " Y o u   m u s t   e n t e r   y o u r   u s e r n a m e . " ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( i d _ f o r m . i n p _ a c c o u n t _ p a s s w o r d . v a l u e   = =   " " )  
 	 {  
 	 	 i d _ f o r m . i n p _ a c c o u n t _ p a s s w o r d . f o c u s ( ) ;  
 	 	 a l e r t ( " Y o u   m u s t   e n t e r   y o u r   p a s s w o r d . " ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
  
 	 i d _ f o r m . s m . v a l u e   =   " S i g n i n g   i n . . . " ;  
 	 i d _ f o r m . r s . s t y l e . v i s i b i l i t y   =   " h i d d e n " ;  
 	 i d _ f o r m . r s . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 i d _ f o r m . s m . d i s a b l e d   =   t r u e ;  
 	 i d _ f o r m . s u b m i t ( ) ;  
 }  
  
  
  
  
  
  
  
  
  
  
 f u n c t i o n   s h o w _ u p l o a d _ w i n d o w ( a c t i o n i d )  
 {  
 v a r   s _ h e i g h t   =   1 8 0 ;  
 v a r   s _ w i d t h   =   5 0 0 ;  
 v a r   i _ p o s ;  
 i _ p o s   =   " m e n u b a r = n o , l o c a t i o n = n o , c e n t e r = y e s , t o o l b a r = n o , d i r e c t o r i e s = n o , l o c a t i o n = n o , s c r o l l b a r s = y e s , s t a t u s = n o , r e s i z a b l e = n o " ;  
 i _ p o s   + =   " , T o p = "   +   ( ( s c r e e n . h e i g h t / 2 )   -   ( s _ h e i g h t / 2 ) )   +   " , L e f t = "   +   ( ( s c r e e n . w i d t h / 2 )   -   ( s _ w i d t h / 2 ) )  
 i _ p o s   + =   " ,   h e i g h t = "   +   s _ h e i g h t   +   " p x , w i d t h = "   +   s _ w i d t h   +   " p x " ;  
 v a r   i _ u r l   =   " p _ u p l d . a s p ? a c t i o n i d = " + a c t i o n i d ;  
 v a r   i _ w i n d o w _ n a m e   =   " w i n d o w _ u p l o a d _ a r t " ;  
 v a r   o _ w _ u p ;  
 o _ w _ u p = w i n d o w . o p e n   ( i _ u r l ,   i _ w i n d o w _ n a m e ,   i _ p o s ) ;  
 o _ w _ u p . f o c u s ( ) ;  
 }  
  
  
  
  
  
 f u n c t i o n   o n s u b m i t _ c h a n g e _ p r o f i l e s _ f o r m ( i d _ f o r m )  
 {  
 	 i f ( i d _ f o r m . f l d _ a c c o u n t _ f u l l n a m e . v a l u e   = =   " " )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ f u l l n a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( i d _ f o r m . f l d _ a c c o u n t _ d i s p l a y _ n a m e . v a l u e   = =   " " )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ d i s p l a y _ n a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( i d _ f o r m . f l d _ a c c o u n t _ e m a i l . v a l u e   = =   " " )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ e m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( c h e c k _ s t r u c t u r e _ e m a i l ( i d _ f o r m . f l d _ a c c o u n t _ e m a i l . v a l u e ) ! = t r u e )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ e m a i l . f o c u s ( ) ;  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ e m a i l . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( c h e c k _ n u m b e r _ b o o l e a n ( i d _ f o r m . f l d _ a c c o u n t _ t e l e p h o n e . v a l u e ) = = f a l s e )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ t e l e p h o n e . f o c u s ( ) ;  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ t e l e p h o n e . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( c h e c k _ n u m b e r _ b o o l e a n ( i d _ f o r m . f l d _ a c c o u n t _ m o b i l e . v a l u e ) = = f a l s e )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ m o b i l e . f o c u s ( ) ;  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ m o b i l e . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( c h e c k _ n u m b e r _ b o o l e a n ( i d _ f o r m . f l d _ a c c o u n t _ f a x . v a l u e ) = = f a l s e )  
 	 {  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ f a x . f o c u s ( ) ;  
 	 	 i d _ f o r m . f l d _ a c c o u n t _ f a x . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
  
 i d _ f o r m . s m . v a l u e = " P l e a s e   w a i t . . . " ;  
 i d _ f o r m . s m . d i s a b l e d = t r u e ;  
 i d _ f o r m . s u b m i t ( ) ;  
 }  
  
  
  
  
  
  
 f u n c t i o n   f c _ r e d i r e c t _ u r l _ o f _ b u t t o n ( b _ o b j e c t ,   b _ u r l )  
 {  
 	 b _ o b j e c t . d i s a b l e d = t r u e ;    
 	 w i n d o w . l o c a t i o n   =   b _ u r l ;  
 }  
  
  
 f u n c t i o n   f c _ r e d i r e c t _ u r l _ o f _ b u t t o n _ w i t h _ a l e r t   ( b _ o b j e c t ,   b _ u r l ,   b _ a l e r t )  
 {  
 	 i f ( c o n f i r m ( b _ a l e r t ) )  
 	 {  
 	 	 b _ o b j e c t . d i s a b l e d   =   t r u e ;    
 	 	 w i n d o w . l o c a t i o n   =   b _ u r l ;  
 	 }  
 	 e l s e  
 	 {  
 	 r e t u r n   f a l s e ;  
 	 }  
 }  
  
  
 
