ÿþ/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 F i l e   N a m e :   S c r i p t . j s  
 P u r p o s e : G e n e r a t i n g   P o p - u p   P r i n t   P r e v i e w   p a g e  
 C r e a t e d   B y :   B e n   C h e n  
 C r e a t e d   O n :   1 1 / 1 3 / 2 0 0 8  
 L a s t   M o d i f i e d :   0 3 / 0 2 / 2 0 1 0  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
 / / f u n c t i o n   g e t P r i n t ( p r i n t _ a r e a )  
 f u n c t i o n   g e t P r i n t ( p r i n t _ a r e a ,   _ P a g e T i t l e )  
 { 	  
 	 / / C r e a t i n g   n e w   p a g e  
 	 v a r   p p   =   w i n d o w . o p e n ( ) ;  
  
 	 p p . d o c u m e n t . w r i t e l n ( ' < h t m l > ' )  
 	 p p . d o c u m e n t . w r i t e l n ( '   < h e a d > ' )  
 	 p p . d o c u m e n t . w r i t e l n ( '     < t i t l e > '   +   _ P a g e T i t l e   +   ' < / t i t l e > ' )  
 	 p p . d o c u m e n t . w r i t e l n ( '     < l i n k   h r e f = " . . / . . / . . / A p p _ T h e m e s / c o m m o n / P r i n t S t y l e . c s s "   t y p e = " t e x t / c s s "   r e l = " s t y l e s h e e t "   m e d i a = " a l l " > < b a s e   t a r g e t = " _ s e l f " > ' )  
 	 p p . d o c u m e n t . w r i t e l n ( '   < / h e a d > ' )  
 	 p p . d o c u m e n t . w r i t e l n ( '   < b o d y   M S _ P O S I T I O N I N G = " G r i d L a y o u t "   b o t t o m M a r g i n = " 0 "   s t y l e = " t e x t - a l i g n : c e n t e r ; "   t o p M a r g i n = " 0 "   m   r i g h t M a r g i n = " a u t o " > ' ) ;  
 	 p p . d o c u m e n t . w r i t e l n ( '     < f o r m   m e t h o d = " p o s t " > ' ) ;  
 	 p p . d o c u m e n t . w r i t e l n ( '       < i n p u t   i d = " P R I N T "   t y p e = " b u t t o n "   v a l u e = " P r i n t "   o n c l i c k = " j a v a s c r i p t : l o c a t i o n . r e l o a d ( t r u e ) ; w i n d o w . p r i n t ( ) ; " > ' ) ;  
 	 p p . d o c u m e n t . w r i t e l n ( '       < i n p u t   i d = " C L O S E "   t y p e = " b u t t o n "   v a l u e = " C l o s e "   o n c l i c k = " w i n d o w . c l o s e ( ) ; " > ' ) ;  
 	 p p . d o c u m e n t . w r i t e l n (         d o c u m e n t . g e t E l e m e n t B y I d ( p r i n t _ a r e a ) . i n n e r H T M L ) ;  
 	 p p . d o c u m e n t . w r i t e l n ( '     < / f o r m > ' ) ; 	 	 	  
 	 p p . d o c u m e n t . w r i t e l n ( '   < / b o d y > ' ) ; 	 	 	  
 	 p p . d o c u m e n t . w r i t e l n ( ' < / h t m l > ' ) ; 	 	 	  
 }  
  
 f u n c t i o n   s h o w _ a l e r t ( m e s s a g e )   {  
         a l e r t ( m e s s a g e ) ;  
         w i n d o w . o n b e f o r e u n l o a d   =   n u l l ;   w i n d o w . c l o s e ( ) ;  
 }  
 	 	 
