how to get the output from function display1 to function display2 where display1 output is display in new window and display2 output is display in text area

Code:
 function display1()
	   {

             var new_win = window.open();

             /******** Sub-section for step 2 - Text Field *********/
             var name = document.form1.person_name.value;

             new_win.document.writeln("Name:
...