ÿþf u n c t i o n   c h e c k A i r D a t a ( )  
 	 	 	 {  
 	 	 	 v a r   f r m = d o c u m e n t . g e t E l e m e n t B y I d ( " F r m A i r " ) ;  
 	 	 	 	 v a r   C 1 N o , M a s t e r N o , H o u s e N o , C u s t R e f N o , l a n g ;  
 	 	 	 	 C 1 N o = t r i m ( f r m . C 1 N o . v a l u e ) ;  
 	 	 	 	 M a s t e r N o = t r i m ( f r m . M a s t e r N o . v a l u e ) ;  
 	 	 	 	 H o u s e N o = t r i m ( f r m . H o u s e N o . v a l u e ) ;  
 	 	 	 	 C u s t R e f N o = t r i m ( f r m . C u s t R e f N o . v a l u e ) ;  
 	 	 	 	 l a n g   =   f r m . l a n g . v a l u e  
 	 	 	 	 i f ( C 1 N o . l e n g t h   <   2   & &   M a s t e r N o . l e n g t h   <   2   & &   H o u s e N o . l e n g t h   <   2   & &   C u s t R e f N o . l e n g t h   <   2 )  
 	 	 	 	 {  
 	 	 	 	 	 i f ( l a n g   = =   " h e " )  
 	 	 	 	 	 	 a l e r t ( ' ÐàÐ  ÔÖß  Üä×Õê  éÓÔ  Ð×Ó' ) ;  
 	 	 	 	 	 e l s e  
 	 	 	 	 	 	 a l e r t ( ' P l e a s e   E n t e r   a t   l e a s t   o n e   f i e l d ' ) ;  
 	 	 	 	 	 f r m . C 1 N o . f o c u s ( ) ;  
 	 	 	 	 	 r e t u r n   f a l s e ; 	  
 	 	 	 	 }  
 	 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 v a r   t x t = ' ' ;  
 	 	 	 	     u r l = " X m l _ T r a c k . a s p ? C o m p I d = < % = C o m p I d   % > & r n d = "   +   M a t h . r a n d o m ( ) *   1 0 0 0 0 0 0   +   " & D l v T y p e = 1 " ;  
 	 	 	 	     u r l = u r l   +   ' & C 1 n o = '   +   C 1 N o +   ' & M a s t e r N o = '   +   M a s t e r N o +   ' & H o u s e N o = '   +   H o u s e N o +   ' & C u s t R e f N o = '   +   C u s t R e f N o ;  
 	 	 	 	     x m l h t t p . o p e n ( " G E T " , u r l , t r u e ) ;  
 	 	 	 	     x m l h t t p . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( )   {  
 	 	 	 	       i f   ( x m l h t t p . r e a d y S t a t e = = 4 )   {  
 	 	 	 	        
 	 	 	 	 	 t x t = x m l h t t p . r e s p o n s e T e x t    
 	 	 	 	         d o c u m e n t . g e t E l e m e n t B y I d ( " D v S e a r c h R e s u l t " ) . i n n e r H T M L = t x t ;  
 	 	 	 	       }  
 	 	 	 	     }  
 	 	 	 	   x m l h t t p . s e t R e q u e s t H e a d e r ( ' A c c e p t ' , ' m e s s a g e / x - f o r m r e s u l t ' )  
 	 	 	 	   x m l h t t p . s e n d ( n u l l )  
 	 	 	 	   r e t u r n   f a l s e  
  
 	 	 	 	  
 	 	 	 	 }  
 	 	 	 }  
 	 	 f u n c t i o n   c h e c k S e a D a t a ( )  
 	 	 	 {  
 	 	 	 v a r   f r m = d o c u m e n t . g e t E l e m e n t B y I d ( " F r m S e a " ) ;  
 	 	 	 	 v a r   C 1 N o , M a s t e r N o , H o u s e N o , C u s t R e f N o , C o n t a i n e r N o ;  
 	 	 	 	 C 1 N o = t r i m ( f r m . C 1 N o . v a l u e ) ;  
 	 	 	 	 M a s t e r N o = t r i m ( f r m . M a s t e r N o . v a l u e ) ;  
 	 	 	 	 H o u s e N o = t r i m ( f r m . H o u s e N o . v a l u e ) ;  
 	 	 	 	 C u s t R e f N o = t r i m ( f r m . C u s t R e f N o . v a l u e ) ;  
 	 	 	 	 C o n t a i n e r N o = t r i m ( f r m . C o n t a i n e r N o . v a l u e ) ;  
 	 	 	 	 l a n g   =   f r m . l a n g . v a l u e  
 	 	 	 	 i f ( C 1 N o . l e n g t h   <   2   & &   M a s t e r N o . l e n g t h   <   2   & &   H o u s e N o . l e n g t h   <   2   & &   C u s t R e f N o . l e n g t h   <   2   & &     C o n t a i n e r N o . l e n g t h   <   2 )  
 	 	 	 	 {  
 	 	 	 	 	 i f ( l a n g   = =   " h e " )  
 	 	 	 	 	 	 a l e r t ( ' ÐàÐ  ÔÖß  Üä×Õê  éÓÔ  Ð×Ó' ) ;  
 	 	 	 	 	 e l s e  
 	 	 	 	 	 	 a l e r t ( ' P l e a s e   E n t e r   a t   l e a s t   o n e   f i e l d ' ) ;  
 	 	 	 	 	 f r m . C 1 N o . f o c u s ( ) ;  
 	 	 	 	 	 r e t u r n   f a l s e ; 	  
 	 	 	 	 }  
 	 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 v a r   t x t = ' ' ;  
 	 	 	 	     u r l = " X m l _ T r a c k . a s p ? C o m p I d = < % = C o m p I d   % > & r n d = "   +   M a t h . r a n d o m ( ) *   1 0 0 0 0 0 0   +   " & D l v T y p e = 2 " ;  
 	 	 	 	     u r l = u r l   +   ' & C 1 n o = '   +   C 1 N o +   ' & M a s t e r N o = '   +   M a s t e r N o +   ' & H o u s e N o = '   +   H o u s e N o +   ' & C u s t R e f N o = '   +   C u s t R e f N o   +   ' & C o n t a i n e r N o = '   +   C o n t a i n e r N o ;  
 	 	 	 	     x m l h t t p . o p e n ( " G E T " , u r l , t r u e ) ;  
 	 	 	 	     x m l h t t p . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( )   {  
 	 	 	 	       i f   ( x m l h t t p . r e a d y S t a t e = = 4 )   {  
 	 	 	 	        
 	 	 	 	 	 t x t = x m l h t t p . r e s p o n s e T e x t    
 	 	 	 	         d o c u m e n t . g e t E l e m e n t B y I d ( " D v S e a r c h R e s u l t " ) . i n n e r H T M L = t x t ;  
 	 	 	 	       }  
 	 	 	 	     }  
 	 	 	 	   x m l h t t p . s e t R e q u e s t H e a d e r ( ' A c c e p t ' , ' m e s s a g e / x - f o r m r e s u l t ' )  
 	 	 	 	   x m l h t t p . s e n d ( n u l l )  
 	 	 	 	   r e t u r n   f a l s e  
  
 	 	 	 	  
 	 	 	 	 }  
 	 	 	 }  
 f u n c t i o n   S e a r c h T r a c k T i t l e ( S h o w , H i d e )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( ' T D T i t l e ' + S h o w ) . c l a s s N a m e = " T r a c k i n g S e a r c h B o x T d T i t l e O n " ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( ' T D T i t l e ' + H i d e ) . c l a s s N a m e = " T r a c k i n g S e a r c h B o x T d T i t l e O f f " ;  
  
 }  
 f u n c t i o n   H p S e a r c h T r a c k T i t l e ( S h o w , H i d e )  
 {  
 / / a l e r t ( ' i n ' ) ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( ' T D T i t l e ' + S h o w ) . c l a s s N a m e = " H p T r a c k i n g S e a r c h B o x T d T i t l e O n " ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( ' T D T i t l e ' + H i d e ) . c l a s s N a m e = " H p T r a c k i n g S e a r c h B o x T d T i t l e O f f " ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( S h o w ) . s t y l e . d i s p l a y = " " ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( H i d e ) . s t y l e . d i s p l a y = " n o n e " ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " D v S e a r c h R e s u l t " ) . i n n e r H T M L = " " ;  
 }  
  
  
 f u n c t i o n   S h o w A i r S e a D i v ( S h o w , H i d e )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( S h o w ) . s t y l e . d i s p l a y = " " ;  
  
 d o c u m e n t . g e t E l e m e n t B y I d ( H i d e ) . s t y l e . d i s p l a y = " n o n e " ;  
  
 }  
  
  
 
