title: Take Postcode to New Field in New Window
body: <p>I have a read only field on a html field which has a name of _Dataaddr_postcode I now need to capture this data and pass it into a new window which loads another file (proxcomp.asp) and use the data in a field on this page the field has an ID of inpAddr.</p>
  
  <p>I have this code so far</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var pcodeStart = document.getElementbyId("_Dataaddr_postcode");
  var newWindow;
  function makeNewWindow( ) {
  if (!newWindow || newWindow.closed) {
  newWindow = window.open("../hpwprox/proxcomp.asp","sub","status=0,title=0,height=600,width=800");
  setTimeout("writeToWindow( )", 50);
  } else if (newWindow.focus) {
  newWindow.focus( );
  }
  }
  &lt;/script&gt;
  &lt;input type="button" value="Create New Window" onclick="makeNewWindow();" /&gt;
  </code></pre>
  
  <p>Can someone tell me how to achieve this with some sample code? </p>
  
  <p>Thanks </p>
  
  <p>Justin.</p>