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