title: Opening a popup window centered and a specific width and height
body: <p>I am trying to have a window popup when someone clicks on an album from a select option.  I can get a new tab to pop up but have not been able to get a new window to pop up and center.  Here is my code that I have used:</p>
  
  <pre><code>function popup(pageURL, title, popupWidth, popupHeight) 
  {
      var left = (screen.width / 2) - (popupWidth / 2);
      var top = (screen.height / 2) - (popupHeight / 2);
      var targetPop = window.open(pageURL, title, 'toolbar=no, location=no,directories=no,status=no, menubar=no, scrollbars=YES, resizable=YES, copyhistory=no,width=' + popupWidth + ', height=' + popupHeight + ', top=' + top + ', left=' + left);
  }
  </code></pre>
  
  <p>I then call the function popup() when you select a specific album from a select box like this:</p>
  
  <pre><code>popup('http://www.google.com', 'googlePopup',700,600)
  </code></pre>
  
  <p>Im using google just for testing purpose. </p>
  
  <p>Can get a window to open with google, however it opens in a new tab rather then a new window centered</p>