ÿþ< ! - -  
 f u n c t i o n   c h a n g e D e t a i l s ( v a l )  
 {  
 	 i f ( v a l = = " i d c l i e n t " )  
 	 {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " i d c l i e n t 1 " ) . 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 ( " i d c l i e n t 2 " ) . 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 ( " i d c o m p a n y 1 " ) . 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 ( " i d c o m p a n y 2 " ) . s t y l e . d i s p l a y = " n o n 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 ( " i d c l i e n t 1 " ) . 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 ( " i d c l i e n t 2 " ) . 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 ( " i d c o m p a n y 1 " ) . 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 ( " i d c o m p a n y 2 " ) . s t y l e . d i s p l a y = " " ;  
 	 }  
 	  
 }  
  
  
 f u n c t i o n   d e t e c t ( )  
 {  
         i f ( d o c u m e n t . g e t E l e m e n t s B y N a m e ( " c l " ) . i t e m ( 0 ) . c h e c k e d )  
                 r e t u r n   t r u e ;  
         e l s e    
                 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 O r d e r ( )  
 {  
 	 v a r   n u m ;  
 	  
 	 i f ( d o c u m e n t . o r d e r 1 . f n a m e 1 . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  éÝ  äèØÙ" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . f n a m e 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 . o r d e r 1 . l n a m e 1 . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  éÝ  Þéä×Ô" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . l n a m e 1 . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	 n u m = n e w   S t r i n g ( d o c u m e n t . o r d e r 1 . i d n u m 1 . v a l u e ) ;  
 	  
 	 i f ( i s N a N ( d o c u m e n t . o r d e r 1 . i d n u m 1 . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  êâÕÓê  ÖÔÕê  ( èç  ÞáäèÙÝ) " ) ;  
 	 	 d o c u m e n t . o r d e r 1 . i d n u m 1 . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 	 	 	 	 	 	 	 	 	  
 	 i f ( n u m . l e n g t h < 9 )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  êâÕÓê  ÖÔÕê  9   áäèÕê  ÑÜÑÓ" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . i d n u m 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 . o r d e r 1 . a d d r e s s 1 . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  ÛêÕÑê  ÜÞéÜÕ×" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . 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 . o r d e r 1 . B i r t h . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  êÐèÙÚ  ÜÙÓÔ" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . B i r t h . 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 . o r d e r 1 . p h o n e . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  ØÜäÕß" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . 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 . o r d e r 1 . z i p . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  ÞÙçÕÓ" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . z i p . 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 . o r d e r 1 . e m a i l . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  ÓÕÐ\ " Ü" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . e m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 	 	 	  
 	 i f ( ! v a l i d M a i l ( d o c u m e n t . o r d e r 1 . e m a i l . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  ÓÕÐ\ " Ü  ÜÐ  êçÙß" ) ;  
 	 	 d o c u m e n t . o r d e r 1 . e m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 	 	 	 	 	 	  
 	 v a r   c o l l e c t i o n ;  
 	 c o l l e c t i o n   =   d o c u m e n t . a l l [ " r a d i o 1 " ] ;  
 	 f o r   ( i = 0 ; i < c o l l e c t i o n . l e n g t h ; i + + )  
 	 {  
 	 	 i f   ( c o l l e c t i o n [ i ] . c h e c k e d )  
 	 	 	 r a d i o v a l u e = c o l l e c t i o n [ i ] . v a l u e ;  
 	 }  
 	 i f ( r a d i o v a l u e = = " c a r d " )  
 	 {  
 	 	 i f ( d o c u m e n t . o r d e r 1 . c a r d n a m e . v a l u e = = " " )  
 	 	 {  
 	 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  éÝ  ÑâÜ  ÔÛèØÙá" ) ;  
 	 	 	 d o c u m e n t . o r d e r 1 . c a r d n a m e . f o c u s ( ) ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 	 	 	 	 	 	 	  
 	 	 d o c u m e n t . o r d e r 1 . i d n u m c a r d . v a l u e = n u m ;  
 	 	 	 	 	 	 	  
 	 	 i f ( d o c u m e n t . o r d e r 1 . i d n u m c a r d . v a l u e = = " " )  
 	 	 {  
 	 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  êâÕÓê  ÖÔÕê" ) ;  
 	 	 	 d o c u m e n t . o r d e r 1 . i d n u m c a 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 . o r d e r 1 . c a r d n u m . v a l u e = = " " )  
 	 	 {  
 	 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  Þáäè  ÛèØÙá( áäèÕê  ÑÜÑÓ) " ) ;  
 	 	 	 d o c u m e n t . o r d e r 1 . c a r d n u 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 . o r d e r 1 . b a c k n u m . v a l u e = = " " )  
 	 	 / / {  
 	 	 / / 	 a l e r t ( " àÐ  ÜÔÛàÙá  ÔÞáäè  éÞÕÓäá  ÑÒÑ  ÔÛèØÙá" ) ;  
 	 	 / / 	 d o c u m e n t . o r d e r 1 . b a c k n u 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 l l [ " t a k " ] . c h e c k e d )  
 	 {  
 	 	 a l e r t ( " àÐ  ÜáÞß  êàÐÙ  ÔèéÞÔ" ) ;  
 	 	 d o c u m e n t . a l l [ " t a k " ] . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	 	 	 	 	 	 	 	 	 	 	 	  
 	 d o c u m e n t . o r d e r 1 . s u b m i t ( ) ;  
 	 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 N e w C u s t ( )  
 {  
 	 v a r   n u m ;  
 	  
 	 i f ( d o c u m e n t . C u s t o m e r . f n a m e 1 . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  éÝ  äèØÙ" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . f n a m e 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 . C u s t o m e r . l n a m e 1 . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  éÝ  Þéä×Ô" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . l n a m e 1 . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	  
 	 n u m = n e w   S t r i n g ( d o c u m e n t . C u s t o m e r . i d n u m 1 . v a l u e ) ;  
 	  
 	 i f ( i s N a N ( d o c u m e n t . C u s t o m e r . i d n u m 1 . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  êâÕÓê  ÖÔÕê  ( èç  ÞáäèÙÝ) " ) ;  
 	 	 d o c u m e n t . C u s t o m e r . i d n u m 1 . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 	 	 	 	 	 	 	 	 	  
 	 i f ( n u m . l e n g t h < 9 )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  êâÕÓê  ÖÔÕê  9   áäèÕê  ÑÜÑÓ" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . i d n u m 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 . C u s t o m e r . a d d r e s s 1 . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  ÛêÕÑê  ÜÞéÜÕ×" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . 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 . C u s t o m e r . B i r t h . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  êÐèÙÚ  ÜÙÓÔ" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . B i r t h . 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 . C u s t o m e r . p h o n e . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  ØÜäÕß" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . 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 . C u s t o m e r . z i p . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " ÐàÐ  ÔÖß  ÞÙçÕÓ" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . z i p . 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 . C u s t o m e r . e m a i l . v a l u e = = " " )  
 	 {  
 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  ÓÕÐ\ " Ü" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . e m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 	 	 	  
 	 i f ( ! v a l i d M a i l ( d o c u m e n t . C u s t o m e r . e m a i l . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " àÐ  ÜÔÛàÙá  ÓÕÐ\ " Ü  ÜÐ  êçÙß" ) ;  
 	 	 d o c u m e n t . C u s t o m e r . e m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	 	 	 	 	  
 	  
 	 	 	 	 	 	 	 	 	 	 	 	 	  
 	 d o c u m e n t . C u s t o m e r . s u b m i t ( ) ;  
 	 r e t u r n   t r u e ;  
 }  
  
  
 f u n c t i o n   p r i n t o r d e r ( i d , p r i n t o r d e r ) { w i n d o w . o p e n ( " p r i n t o r d e r . a s p ? i d = "   +   i d   +   " & p r i n t o r d e r = "   +   p r i n t o r d e r , n u l l , " w i d t h = 6 2 0 ,   h e i g h t = 4 5 0 ,   s c r o l l b a r s = 1 " ) ; }  
 f u n c t i o n   c a r d s h o w ( )  
 {  
 	 f o r ( v a r   i = 0 ; d o c u m e n t . g e t E l e m e n t s B y N a m e ( " t d c a r d " ) . l e n g t h   >   i   ; i + + )  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( " t d c a r d " ) . i t e m ( i ) . s t y l e . d i s p l a y = " " ;  
 }  
 f u n c t i o n   c a r d h i d e ( )  
 {  
 	 f o r ( v a r   i = 0 ; d o c u m e n t . g e t E l e m e n t s B y N a m e ( " t d c a r d " ) . l e n g t h   >   i   ; i + + )  
 	 	 d o c u m e n t . g e t E l e m e n t s B y N a m e ( " t d c a r d " ) . i t e m ( i ) . s t y l e . d i s p l a y = " n o n e " ;  
 }  
  
 f u n c t i o n   s e n d o r d e r ( )  
 {  
 	 i f ( d o c u m e n t . o r d e r . e m a i l . v a l u e = = " " )  
 	 	 {  
 	 	 a l e r t ( " ð à   ì ä ë ð é ñ   ã å à \ " ì " ) ;  
 	 	 d o c u m e n t . o r d e r . e m a i l . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 d o c u m e n t . o r d e r . s u b m i t ( ) ; 	 	 	 	 	  
 }  
  
 f u n c t i o n   v a l i d M a i l ( s t r E m a i l )   / / i f   v a l i d   m a i l   -   r e t u r n   t r u e  
 {  
 	 v a r   r ,   r e ;  
 	 v a r   e m a i l   =   n e w   S t r i n g ( s t r E m a i l ) ;  
 	 r e   =   / \ w + ( [ - + . ] \ w + ) * @ \ w + ( [ - . ] \ w + ) * \ . \ w + ( [ - . ] \ w + ) * / i g ;  
 	 i f ( e m a i l . s e a r c h ( r e ) = = 0 )    
 	 	 r e t u r n   t r u e ;  
 	 e l s e  
 	 	 r e t u r n   f a l s e ; 	  
 }  
  
  
  
 f u n c t i o n   v a l i d c h a r s c t e r ( ) { i f ( e v e n t . k e y C o d e   <   4 8   | |   e v e n t . k e y C o d e   >   5 7 )   e v e n t . k e y C o d e = 0 ; 	 }  
 f u n c t i o n   c h a n g e _ p a y m e n t s ( s e l e c t e d p a y m e n t s ) { w i n d o w . l o c a t i o n . h r e f = " b a s k e t U p d a t e P a y m e n t s . a s p ? s e l e c t e d p a y m e n t s = "   +   s e l e c t e d p a y m e n t s ; }  
 f u n c t i o n   d e l ( i d ) { w i n d o w . l o c a t i o n . h r e f = " d e l e t e I t e m . a s p ? i d = "   +   i d ; }  
 f u n c t i o n   o r d e r ( ) { w i n d o w . l o c a t i o n . h r e f = " v a l i d u s e r 1 . a s p " ; }  
 f u n c t i o n   c o n t i n u e s h o p p i n g ( ) { w i n d o w . l o c a t i o n . h r e f = " d e f a u l t . a s p " ; }  
 f u n c t i o n   u p d a t e Q ( i d , n a m e )  
 {  
 	 / / v a r   c o l l e c t i o n   =   " q u a n t i t y "   +   n a m e ;  
 	 v a r   c o l l e c t i o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( " q u a n t i t y "   +   n a m e ) ;  
 / / a l e r t ( " q u a n t i t y "   +   n a m e ) ;  
  
 	 i f ( c o l l e c t i o n . v a l u e . l e n g t h   = =   0 )  
 	 {  
 	 	 a l e r t ( " Ùé  ÜâÓÛß  éÓÔ  ÛÞÕê" ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 i f ( i s N a N ( c o l l e c t i o n . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " ÐàÐ    ÔÛàá  âèÚ  ÞáäèÙ" ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 } 	  
 	 w i n d o w . l o c a t i o n . h r e f = " U p d a t e P r o d u c t . a s p ? i d = "   +   i d   +   " & q u a n t i t y = "   +   c o l l e c t i o n . v a l u e ;  
 }  
 	 	 	 	 	  
 f u n c t i o n   p l u s ( i d )  
 {  
 	 v a r   c o l l e c t i o n = " q u a n t i t y "   +   i d ;  
 	 d o c u m e n t . a l l [ c o l l e c t i o n ] . v a l u e = p a r s e I n t ( d o c u m e n t . a l l [ c o l l e c t i o n ] . v a l u e )   +   1 ;  
 }  
 	 	 	 	 	  
 f u n c t i o n   m i n u s ( i d )  
 {  
 	 v a r   c o l l e c t i o n = " q u a n t i t y "   +   i d ;  
 	 i f ( p a r s e I n t ( d o c u m e n t . a l l [ c o l l e c t i o n ] . v a l u e ) > 1 )  
 	 	 d o c u m e n t . a l l [ c o l l e c t i o n ] . v a l u e = p a r s e I n t ( d o c u m e n t . a l l [ c o l l e c t i o n ] . v a l u e )   -   1 ;  
 }  
  
 f u n c t i o n   v a l i d s e a r c h ( )  
 {  
 	 i f ( d o c u m e n t . s e a r c h . w o r d . v a l u e = = " " )  
 	 	 {  
 	 	 	 a l e r t ( " ð à   ì ä ë ð é ñ   î é ì ú   ç é ô å ù " ) ;  
 	 	 	 d o c u m e n t . s e a r c h . w o r d . f o c u s ( ) ;  
 	 	 	 r e t u r n   f a l s e ;  
 	 	 }  
 	 d o c u m e n t . s e a r c h . s u b m i t ( ) ; 	  
 	 r e t u r n   f a l s e ; 	  
 }  
 / / - - > 
