ÿþw i n d o w . a d d E v e n t ( ' d o m r e a d y ' ,   f u n c t i o n ( )   {    
 	 $ $ ( ' . o v e r T e x t ' ) . e a c h ( f u n c t i o n ( i n p u t ) {  
 	 	 	 / / a l e r t ( i n p u t . g e t ( " i d " ) ) ;  
 	 	 	 v a r   e l   =   $ ( i n p u t . g e t ( " i d " ) ) ;  
 	 	 	 v a r   o v e r   =   n e w   O v e r T e x t ( e l ) ;  
 	 	 	 v a r   f o c u s   =   n e w   I n p u t F o c u s ( e l ) ;  
 	 	 }  
 	 )  
 	  
 	 $ $ ( " a . n o S p a m " ) . e a c h ( f u n c t i o n ( e m a i l )   {   v a r   s a f e E m a i l   =   n e w   S p a m S a f e E m a i l ( e m a i l ) ;   } )  
 	  
 	 $ $ ( " f o r m " ) . e a c h ( f u n c t i o n ( f o r m )   {  
 	 	 s w i t c h   ( f o r m . i d )   {  
 	 	 	 c a s e   " e n q u i r y " :  
 	 	 	 	 s e t u p E n q u i r y L i n k ( )  
 	 	 	 	 n e w   F o r m C h e c k ( f o r m . i d ,   {  
 	 	 	 	 	 d i s p l a y   :   {  
 	 	 	 	 	 	 t i p s P o s i t i o n :   " l e f t " ,  
 	 	 	 	 	 	 i n d i c a t e E r r o r s   :   1 ,  
 	 	 	 	 	 	 s h o w E r r o r s :   0 ,  
 	 	 	 	 	 	 t i p s O f f s e t X : 0  
 	 	 	 	 }  
 	 	 	 } ) ;  
 	 	 }  
 	 } ) ; 	  
 } ) ;  
  
  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /   A J A X  
 / /   G l o b a l   a j a x   h a n d l e r  
 f u n c t i o n   a j a x M g r ( )   {  
     v a r   a r g s   =   a j a x M g r . a r g u m e n t s ;  
 	 a j a x P a t h   =   ' / i n c / p h p / a j a x / ' ;  
 	 / / a l e r t ( 1 ) ;  
         s w i t c h   ( a r g s [ 0 ] )   {  
 	 c a s e   " S E N D " :  
 	 	 v a r   u r l   =   a j a x P a t h + a r g s [ 1 ] ;  
 	 	 v a r   v a r D a t a   =   a r g s [ 2 ] ;  
 	 	 / / a l e r t ( a r g s [ 3 ] ) ;  
 	 	 v a r   r e q   =   n e w   R e q u e s t . H T M L ( {  
 	 	 	 u r l :   u r l ,  
 	 	 	 m e t h o d :   ' p o s t ' ,  
 	 	 	 d a t a :   $ ( ' e n q u i r y ' ) ,  
 	 	 	 u p d a t e :   $ ( a r g s [ 3 ] ) ,  
 	 	 	 o n C o m p l e t e :   f u n c t i o n ( r e s p o n s e ) {    
 	 	 	 }  
 	 	 } ) ;  
 	 	 / / a l e r t ( r e q . o p t i o n s . u p d a t e ) ;  
 	 	 r e q . s e n d ( ) ;  
 	 	 b r e a k ; 	 	  
 	 d e f a u l t   :  
 	 	 a l e r t   (   ' a j a x M g r :   E R R O R   -   c a s e   n o t   s u p l i e d   f o r   ' + a r g s [ 0 ]   ) ;  
 	 	 b r e a k ; 	 	  
     }  
 }  
  
 / /   a d d   u n O b   j s   t o   s u b s c r i b e L i n k  
 f u n c t i o n   s e t u p E n q u i r y L i n k ( ) {  
 	 / / a l e r t ( 1 ) ;  
 	 v a r   e l   =   $ ( " s u b m i t B u t " ) ;  
 	 e l . s e t ( " h r e f " , " j a v a s c r i p t : s e n d E n q u i r y ( ) ; " ) ;  
 }  
  
  
 f u n c t i o n   s e n d E n q u i r y ( )   {  
 	 / / $ ( ' l i s t ' ) . s e t ( ' h t m l ' ,   ' P l e a s e   W a i t ' ) ;  
 	 v a r   q S t r   =   " d e s c r i p t i o n : ' " + $ ( " d e s c r i p t i o n " ) . g e t ( " v a l u e " ) + " ' " ;  
 	 $ $ ( " i n p u t " ) . e a c h ( f u n c t i o n ( i n p u t )   {  
 	 	 / / a l e r t ( i n p u t . g e t ( " i d " ) + " : ' " + i n p u t . g e t ( " v a l u e " ) + " ' " ) ;  
 	 	 q S t r   + =   " , " + i n p u t . g e t ( " i d " ) + " : ' " + i n p u t . g e t ( " v a l u e " ) + " ' " ;  
 	 } 	  
 	 ) ;  
 	 / / a l e r t ( q S t r ) ;  
 	 a j a x M g r ( " S E N D " , " s e n d E n q u i r y . p h p " ,   q S t r ,   " e n q u i r y " ) ;  
 }  
 
