/*
<p><a href="http://www.spreadfirefox.com/"
target="SingleSecondaryWindowName"
onclick="openRequestedSinglePopup(this.href); return false;"
title="This link will create a new window or will re-use 
an already opened one">Promote Firefox
adoption</a></p>
<p><a href="http://www.mozilla.org/support/firefox/faq"
target="SingleSecondaryWindowName"
onclick="openRequestedSinglePopup(this.href); return false;"
title="This link will create a new window or will re-use 
an already opened one">Firefox FAQ</a></p>
*/
var WindowObjectReference = null; // global variable
//var PreviousUrl; /* global variable which will store the
//                    url currently in the secondary window */

function openRequestedSinglePopup(strUrl) {
/*
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
   WindowObjectReference = window.open(strUrl, "SingleSecondaryWindowName",
         "width=750,height=550,resizable=no,scrollbars=no,status=no");
  }
  else if(previousUrl != strUrl)
  {
*/
   WindowObjectReference = window.open(strUrl, "SingleSecondaryWindowName",
      "width=350,height=450,resizable=no,scrollbars=no,status=no");
    /* if the resource to load is different,
       then we load it in the already opened secondary window and then
       we bring such window back on top/in front of its parent window. */
   WindowObjectReference.focus();
  
/*
  }
  else
  {
    WindowObjectReference.focus();
  };
  PreviousUrl = strUrl;
*/
  /* explanation: we store the current url in order to compare url
     in the event of another call of this function. */

}