ÿþf u n c t i o n   c h k F r m R e g M a i l ( o b j ) {  
 	 i f ( o b j . t x t M a i l N a m e . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " B ¡n   c h °a   n h ­p   h Í  t ê n . " ) ;  
 	 	 o b j . t x t M a i l N a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f ( o b j . t x t M a i l A d d r e s s . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " B ¡n   c h °a   n h ­p   Ëa   c h É  e m a i l . " ) ;  
 	 	 o b j . t x t M a i l A d d r e s s . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( o b j . t x t M a i l A d d r e s s . v a l u e . i n d e x O f ( ' @ ' , 0 ) = = - 1   | |   o b j . t x t M a i l A d d r e s s . v a l u e . i n d e x O f ( ' . ' ) = = - 1 )  
 	 {  
 	 	 a l e r t   ( " Ëa   c h É  e m a i l   n h ­p   s a i   q u y   c á c h . " ) ;  
 	 	 o b j . t x t M a i l A d d r e s s . f o c u s ( ) ;  
 	 	 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 c o n f i r m ( s t r M e s s , s t r U R L ) {  
 	 v a r   y n ;  
 	 y n = w i n d o w . c o n f i r m ( s t r M e s s ) ;  
 	 i f   ( y n = = t r u e ) {  
 	 	 d o c u m e n t . l o c a t i o n . h r e f = s t r U R L ;  
 	 	 }  
 }  
 f u n c t i o n   a s k c o n f ( s t r M e s s ) {  
 	 v a r   y n ;  
 	 y n = w i n d o w . c o n f i r m ( s t r M e s s ) ;  
 	 i f   ( y n = = t r u e ) {  
 	 	 r e t u r n   t r u e ;  
 	 	 }  
 	 r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   o p e n W i n ( t h e U R L , w i n N a m e , f e a t u r e s )   {  
     	 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   w i n o p e n ( u r l ) {  
 	 w i n d o w . o p e n ( u r l ) ;  
 }  
  
 f u n c t i o n   i n s e r t S t r ( s t r V a l u e , a n h ) {  
  
 	 w i n d o w . o p e n e r . d o c u m e n t . f o r m 1 [ a n h ] . v a l u e = s t r V a l u e ;  
 }  
  
 f u n c t i o n   p o p u p I m a g e ( s r c ,   n o t e ,   t i t l e ,   c s s ,   b o r d e r )   {  
 v a r   p p i m g N W ;  
     i f   ( b o r d e r = = n u l l )   b o r d e r   =   0 ;  
     i f   ( n o t e = = n u l l )   n o t e   =   ' ' ;  
     i f   ( p p i m g N W   ! =   n u l l )   p p i m g N W . c l o s e ( ) ;  
  
     p p i m g N W   =   w i n d o w . o p e n ( ' ' , ' P O P U P I M A G E ' , ' w i d t h = 1 , h e i g h t = 1 ' ) ;  
     v a r   d o c   =   p p i m g N W . d o c u m e n t ;  
     d o c . w r i t e ( ' < h t m l > ' ) ;  
     d o c . w r i t e ( ' < h e a d > ' ) ;  
  
     i f   ( t i t l e ! = n u l l )   d o c . w r i t e ( ' < t i t l e > ' +   t i t l e   + ' < / t i t l e > ' ) ;  
     d o c . w r i t e ( ' < s t y l e >   b o d y   { ' + c s s + ' }   # p p I m g T e x t { ' +   c s s   + ' }   # p p I m g { c u r s o r : h a n d } < / s t y l e > < / h e a d > ' ) ;  
     d o c . w r i t e ( ' < b o d y   o n c o n t e x t m e n u = " r e t u r n   f a l s e "   l e f t m a r g i n = " 0 "   t o p m a r g i n = " '   +   b o r d e r   +   ' " > ' ) ;  
     d o c . w r i t e ( ' < d i v   a l i g n = " c e n t e r " > ' ) ;  
     d o c . w r i t e ( ' < i m g   s r c = " '   +   s r c   +   ' "   i d = " p p I m g "   o n c l i c k = " s e l f . c l o s e ( ) ; "   t i t l e = " C l o s e " > ' ) ;  
     d o c . w r i t e ( ' < / d i v > ' ) ;  
     d o c . w r i t e ( ' < d i v   s t y l e = " h e i g h t : 1 ;   w i d t h : ' +   b o r d e r   + ' ;   f o n t - s i z e : 4 p t " > ' ) ;  
     d o c . w r i t e ( ' < / d i v > ' ) ;  
     d o c . w r i t e ( ' < d i v   i d = " p p I m g T e x t "   a l i g n = " c e n t e r " > ' ) ;  
     d o c . w r i t e ( ' < F o n t   f a c e = A r i a l   s i z e = 2 > ' + n o t e + ' < / F o n t > ' ) ;  
     d o c . w r i t e ( ' < / d i v > ' ) ;  
     d o c . w r i t e ( ' < / b o d y > ' ) ;  
     d o c . w r i t e ( ' < / h t m l > ' ) ;  
  
     d o c . w r i t e ( ' < '   +   ' s c r i p t > ' ) ;  
     d o c . w r i t e ( ' v a r   r e s i z e d   =   f a l s e ; ' ) ;  
     d o c . w r i t e ( ' f u n c t i o n   d o R e s i z e ( )   { ' ) ;  
     d o c . w r i t e ( '     v a r   i m g W   =   p p I m g . w i d t h ,   i m g H   =   p p I m g . h e i g h t ; ' ) ;            
     i f   ( n o t e = = ' '   | |   n o t e = = n u l l )   { a d d H = 3 5 }   e l s e   { a d d H = 6 0 } ;  
     d o c . w r i t e ( '     w i n d o w . r e s i z e T o ( i m g W   +   8   + '   +   b o r d e r * 2   + ' ,   i m g H   +   p p I m g T e x t . o f f s e t H e i g h t   +   ' + a d d H + '   +   ' +   b o r d e r * 2   + ' ) ; ' ) ;  
     d o c . w r i t e ( '     s e t T i m e o u t ( " d o R e s i z e ( ) " , 1 0 0 0 ) ; ' ) ;  
  
     d o c . w r i t e ( ' } ' ) ;  
     d o c . w r i t e ( ' d o R e s i z e ( ) ;   ' ) ;  
     d o c . w r i t e ( ' < / '   +   ' s c r i p t > ' ) ;  
 } 
