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