/* NRGjavascript */

 var buyerWin;
 var buyerAgreeWin;
 var ALDiscWin;
 var MSDiscWin;
 var contactWin;
 var potValWin;
 var otherWin;
 var thisWin = new Array (50);

 function initWins() {
    buyerWin = null;
    buyerAgreeWin = null;
    ALDiscWin = null;
    MSDiscWin = null;
    contactWin =null;
    potValWin = null;
    otherWin=null;
    for ( i=1; i<=50; i++) thisWin[i] = null;
 }

function openThisWin(winURL, winName, winFeatures, winObj) {
  var theWin; // this will hold our opened window

  // first check to see if the window already exists
  if (winObj != null)
  {
    // the window has already been created, but did the user close it?
    // if so, then reopen it. Otherwise make it the active window.
    if (!winObj.closed) {
      winObj.focus();
      return winObj;
    }
    // otherwise fall through to the code below to re-open the window
  }

  // if we get here, then the window hasn't been created yet, or it
  // was closed by the user.
  theWin = window.open(winURL, winName, winFeatures);
  return theWin;
}


