ÿþf u n c t i o n   a p p l e t O B J a v a ( w i d t h ,   h e i g h t ,   c o d e ,   a r c h i v e )   {  
 t r y   {  
 	 d o c u m e n t . w r i t e   ( ' < a p p l e t   c o d e = " '   +   c o d e   +   ' "   n a m e = " S i m "   w i d t h = " '   +   w i d t h   +   ' "   h e i g h t = " '   +   h e i g h t   +   ' "   a r c h i v e = " '   +   a r c h i v e   +   ' " > ' ) ;  
 	 d o c u m e n t . w r i t e   ( ' < / a p p l e t > ' ) ;  
 } c a t c h ( e ) { }  
 }  
  
 f u n c t i o n   a p p l e t M a g O B J a v a ( t a r g e t C l a s s )   {  
 t r y   {  
 	 d o c u m e n t . w r i t e   ( ' < a p p l e t   c o d e = " p h y s i c o n . m a g T o o l . M a g T o o l "   n a m e = " M a g T o o l "   h e i g h t = " 1 "   w i d t h = " 1 " > ' ) ;  
 	 d o c u m e n t . w r i t e   ( ' < p a r a m   n a m e = " T a r g e t A p p l e t C l a s s "   v a l u e = " ' + t a r g e t C l a s s + ' " > ' ) ;  
 	 d o c u m e n t . w r i t e   ( ' < p a r a m   n a m e = " M a g T y p e "   v a l u e = " M A X C O N " > ' ) ;  
 	 d o c u m e n t . w r i t e   ( ' < / a p p l e t > ' ) ;  
 } c a t c h ( e ) { }  
 } 
