<!--//

// First time set the pop-up window does not exist
var popupWin = null;

function openWindow(url,name,widthpw,heightpw) {
var xcoord    = ((screen.width - widthpw)/2);
var ycoord    = ((screen.height - heightpw)/2);
var dimension = 'scrollbars=no,width=' + widthpw + ',height=' + heightpw + ',top=' + ycoord + ',left=' + xcoord;

  // if pop-up window exists, kill it
  if (popupWin != null) {
	if (popupWin.closed) {
	  popupWin = window.open(url,name,dimension);
	} else {
	  popupWin.close();
	}
  }

  popupWin = window.open(url,name,dimension);

  if (self.focus) {
    popupWin.focus();
  }

}

//-->

