title: Javascript openWindow with my Chart
body: <p>I working on a project for my class and I currently after the users takes a quiz, numbers are generated and it creates a graph. I need to get this graph on a new window. HOW DO I MOVE THIS WHOLE CHART to the window.open tab.</p>
  
  <p>Here is my code:
  openwindow = window.open("", "Best Fits","width=600,height=700,")</p>
  
  <pre><code>        openwindow.document.write("Our top recommendation: "+ vare[0][0]+": " + vare[0][2] + "&lt;br /&gt; &lt;br /&gt;" + "Our second recommendation:  "+ vare[1][0]+": " + vare[1][2] + "&lt;br /&gt; &lt;br /&gt;" + "Our third recommendation: "+ vare[2][0] + ": " + vare[2][2]);
  
  
  
          //alert(Math.min(vare[0],vare[1],vare[2],vare[3],vare[4]))
  
  
          alert(vare[0][0] +": " + vare[0][1] + "   " + vare[1][0] +": " + vare[1][1] + "   " + vare[2][0] +": " + vare[2][1] + "   " + vare[3][0] +": " + vare[3][1] + "   " + vare [4][0] +": " + vare[4][1]  + "  " + results[0] + "  " + results[1] + "  " + results[2] + "  " + results[3])
          alert(vare[0][0]+": " + vare[0][1]);
          myData = new Array([vare[0][0],vare[0][1]],[vare[1][0],vare[1][1]],[vare[2][0],vare[2][1]])
          var colors = ['#FACC00', '#FB9900', '#FB6600'];
          var myChart = new JSChart('graph', 'pie');
          myChart.setDataArray(myData);
          myChart.colorizePie(colors);
          myChart.setTitle('Hotel');
          myChart.setTitleColor('#857D7D');
          myChart.setPieUnitsColor('#9B9B9B');
          myChart.setPieValuesColor('#6A0000');
          myChart.draw();
  
      });
  });
  </code></pre>
  
  <p>}</p>
  
  <p>I need to open MyChart with the saved variables on to a new tab.</p>
  
  <p>THANKS!</p>