function sgs(Title, GURL, DURL, GWidth, GHeight) {
  var url = '/games/sgs.htm?title=';
  url += escape(Title);
  url += '&gurl=';
  url += escape(GURL);
  url += '&durl=';
  url += escape(DURL);
  url += '&width=' + GWidth.toString();
  url += '&height=' + GHeight.toString();
  var myWindow;
  var width = GWidth + 30;
  if (width < 500) {
    width = 500;
  }
  var height = GHeight + 120;
  var left = parseInt((screen.availWidth/2) - (width/2));
  var top = parseInt((screen.availHeight/2) - (height/2));
  var windowFeatures = "width=" + width + ",height=" + height + 
      ",status,resizable,left=" + left + ",top=" + top + 
      ",screenX=" + left + ",screenY=" + top;
  myWindow = window.open(url, "subWind", windowFeatures);
}

function popWin(url, w, h) {
  var madURL = url;
  var x, y, winStr;
  x = 0;
  y = 0;
  self.name = "opener";
  winStr = "height=" + h + ",width=" + w + ",screenX=" + x + ",left=" + x + ",screenY=" + y + ",top=" + y + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0";
  lilBaby = window.open(madURL, "_blank", winStr);
}
