ÿþ/ / - - - - - - - - - - - - - - - - - - - - - - | - - - - - - - - - - |  
 / / |       G u a r d S e r v e r . n e t       |                     |  
 / / | - - - - - - - - - - - - - - - - - - - - - |                     |  
 / / |                                                                 |  
 / / |     r e l i a b i l i t y   i s   i n   c h a r g e . . .       |  
 / / |                                                                 |  
 / / |       d o m a i n   n a m e   a d m i n i s t r a t o r ,       |  
 / / |                   h o s t i n g   p r o v i d e r   a n d       |  
 / / |                               w e b   d e v e l o p e r .       |  
 / / |                                                                 |  
 / / |   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   |  
 / / |       h t t p : / / w w w . g u a r d s e r v e r . n e t       |  
 / / |             i n f o @ g u a r d s e r v e r . n e t             |  
 / / | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |  
  
  
 f u n c t i o n   S l i d e I N ( i )  
 {  
 	 i . s t y l e . c s s T e x t   =   ' b a c k g r o u n d - c o l o r : # E C E 1 0 0 ;   c u r s o r : h a n d ;   c o l o r : # 0 0 0 0 0 0 ; ' ;  
 }  
  
  
 f u n c t i o n   S l i d e O U T ( i )  
 {  
 	 i . s t y l e . c s s T e x t   =   ' ' ;  
 }  
  
  
 f u n c t i o n   P h o t o P o p ( P i c P o i n t )  
 {  
 	 w i n d o w . o p e n ( ' P h o t o P o p . a s p ? P i c P o i n t = ' + P i c P o i n t , ' G a l e r i P o p ' , ' t o o l b a r = n o , s t a t u s = n o , m e n u b a r = n o , l o c a t i o n = n o , d i r e c t o r i e s = n o , r e s i z a b l e = y e s , s c r o l l b a r s = n o , w i d t h = 2 0 0 , h e i g h t = 7 0 0 , t o p = 5 , l e f t = 5 ' ) ;  
 }  
  
  
 f u n c t i o n   P h o t o R e s i z e ( )  
 {  
 	 v a r   i = 0 ;  
  
 	 i f   ( n a v i g a t o r . a p p N a m e   = =   ' N e t s c a p e ' )  
 	 {  
 	 	 i = 4 0 ;  
 	 }  
 	  
 	 i f   ( d o c u m e n t . i m a g e s [ 0 ] )  
 	 {  
 	 	 w i n d o w . r e s i z e T o ( d o c u m e n t . i m a g e s [ 0 ] . w i d t h   +   5 0 ,   d o c u m e n t . i m a g e s [ 0 ] . h e i g h t   +   1 4 0   -   i ) ;  
 	 	 s e l f . f o c u s ( ) ;  
 	 }  
 }  
  
  
 f u n c t i o n   i s V a l i d E m a i l ( e m a i l A d d r e s s ) 	 / / G u a r d S e r v e r . n e t  
 {  
 	 v a r   e m a i l R e g E x p   =   / ^ ( [ a - z A - Z 0 - 9 _ \ . \ - ] ) + \ @ ( ( [ a - z A - Z 0 - 9 \ - ] ) + \ . ) + ( [ a - z A - Z 0 - 9 ] { 2 , 4 } ) + $ / ;  
 	 r e t u r n   ( e m a i l R e g E x p . t e s t ( e m a i l A d d r e s s ) ) ;  
 }  
  
  
 f u n c t i o n   m u s t B e N u m a r i c ( e )  
 {  
 	 v a r   w h i c h C o d e   =   ( w i n d o w . E v e n t )   ?   e . w h i c h   :   e . k e y C o d e ;  
  
 	 i f   ( w h i c h C o d e   = =   1 3   | |   w h i c h C o d e   = =   4 4   | |   w h i c h C o d e   = =   4 5   | |   w h i c h C o d e   = =   4 6 )  
 	 	 r e t u r n   t r u e ;     / /   e n t e r ,   c o m m a ,   h y p h e n ,   p e r i o d  
  
 	 i f   ( w h i c h C o d e   >   5 7   )  
 	 	 r e t u r n   f a l s e ;  
  
 	 i f   ( w h i c h C o d e   <   4 8   & &   w h i c h C o d e   >   1 3 )  
 	 	 r e t u r n   f a l s e ;  
 }  
  
  
 f u n c t i o n   P o p T a k v i m ( f o r m N a m e ,   f o r m N o )  
 {  
 	 v a r   P o p W i d t h   =   2 1 0 ;  
 	 v a r   P o p H e i g h t   =   2 4 0 ;  
 	 v a r   P o p L e f t   =   ( w i n d o w . s c r e e n . w i d t h   -   P o p W i d t h )   /   2 ;  
 	 v a r   P o p T o p   =   ( w i n d o w . s c r e e n . h e i g h t   -   P o p H e i g h t )   /   2 ;  
  
 	 P o p T a k v i m W i n = w i n d o w . o p e n ( ' P o p T a k v i m . a s p ? f o r m N a m e = ' + f o r m N a m e + ' & m y U R L d a y = ' + d o c u m e n t . f o r m s [ f o r m N o ] . m y U R L d a y . v a l u e + ' & m y U R L m o n t h = ' + d o c u m e n t . f o r m s [ f o r m N o ] . m y U R L m o n t h . v a l u e + ' & m y U R L y e a r = ' + d o c u m e n t . f o r m s [ f o r m N o ] . m y U R L y e a r . v a l u e , ' P o p T a k v i m ' , ' t o o l b a r = n o , s t a t u s = n o , m e n u b a r = n o , l o c a t i o n = n o , d i r e c t o r i e s = n o , r e s i z a b l e = n o , s c r o l l b a r s = n o , w i d t h = '   +   P o p W i d t h   +   ' , h e i g h t = '   +   P o p H e i g h t   +   ' , t o p = '   +   P o p T o p   +   ' , l e f t = '   +   P o p L e f t ) ;  
 }  
  
  
 f u n c t i o n   C h e c k C o n t a c t ( )  
 {  
 	 i f   ( d o c u m e n t . C o n t a c t . C o n t a c t N a m e . v a l u e . l e n g t h < 4 )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   y o u r   N a m e . " ) ;  
 	 	 d o c u m e n t . C o n t a c t . C o n t a c t N a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( ! i s V a l i d E m a i l ( d o c u m e n t . C o n t a c t . C o n t a c t M a i l . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   a   v a l i d   E - m a i l   a d d r e s s . " ) ;  
 	 	 d o c u m e n t . C o n t a c t . C o n t a c t M a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( d o c u m e n t . C o n t a c t . C o n t a c t T e x t . v a l u e . l e n g t h < 1 0 )  
 	 {  
 	 	 a l e r t ( " F o r m   c a n   n o t   b e   e m p t y . " ) ;  
 	 	 d o c u m e n t . C o n t a c t . C o n t a c t T e x t . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( d o c u m e n t . C o n t a c t . C o n t a c t T e x t . v a l u e . l e n g t h > 1 5 0 0 )  
 	 {  
 	 	 a l e r t ( " T e x t   c a n   n o t   b e   l o n g e r   t h a n   1 5 0 0   c h a r a c t e r s . " ) ;  
 	 	 d o c u m e n t . C o n t a c t . C o n t a c t T e x t . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 r e t u r n   t r u e ;  
 	 }  
 }  
  
  
 f u n c t i o n   C h e c k B o o k i n g ( )  
 {  
 	 i f   ( d o c u m e n t . B o o k i n g . B o o k i n g N a m e . v a l u e . l e n g t h < 4 )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   y o u r   N a m e . " ) ;  
 	 	 d o c u m e n t . B o o k i n g . B o o k i n g N a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( ! i s V a l i d E m a i l ( d o c u m e n t . B o o k i n g . B o o k i n g M a i l . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   a   v a l i d   E - m a i l   a d d r e s s . " ) ;  
 	 	 d o c u m e n t . B o o k i n g . B o o k i n g M a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( d o c u m e n t . B o o k i n g . m y U R L d a y . v a l u e < 1   | |   d o c u m e n t . B o o k i n g . m y U R L m o n t h . v a l u e < 1   | |   d o c u m e n t . B o o k i n g . m y U R L y e a r . v a l u e < 2 0 0 6 )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   F l i g h t   D a t e . " ) ;  
 	 	 d o c u m e n t . B o o k i n g . m y U R L d a y . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( d o c u m e n t . B o o k i n g . B o o k i n g F l i g h t N u m b e r . v a l u e . l e n g t h < 2 )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   F l i g h t   N u m b e r . " ) ;  
 	 	 d o c u m e n t . B o o k i n g . B o o k i n g F l i g h t N u m b e r . s e l e c t ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( d o c u m e n t . B o o k i n g . B o o k i n g A i r l i n e . v a l u e . l e n g t h < 3 )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   A i r l i n e   C o m p a n y . " ) ;  
 	 	 d o c u m e n t . B o o k i n g . B o o k i n g A i r l i n e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e   i f   ( d o c u m e n t . B o o k i n g . B o o k i n g P l a c e . v a l u e . l e n g t h < 3 )  
 	 {  
 	 	 a l e r t ( " P l e a s e   p r o v i d e   E n d   /   S t a r t   P l a c e   f o r   y o u r   j o u r n e y . " ) ;  
 	 	 d o c u m e n t . B o o k i n g . B o o k i n g P l a c e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 r e t u r n   t r u e ;  
 	 }  
 }  
 
