Check if popup window is already open
<p>How can I modify this so it checks and if a popup window is already open?</p>

<pre><code>function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=100');");
}
</code></pre>

<blockquote>
  <p>/////////////Edit No2</p>
</blockquote>

<p><code>var options = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=100";</code></p>

<p><code>var popup = window.open(URL, "popup", options);</code></p>

<p><code>function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=100');");
}</code></p>

<blockquote>
  <p>My js call</p>
</blockquote>

<p><code>&lt;a id="floating_link" href="javascript:popUp('MyPage.html')"&gt;Player&lt;/a&gt;</code></p>
