function popUp(popupURL)
{
  width = 700; height = 550; leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
  if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/2 : 0; }
  var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
  var popup=window.open(popupURL, 'gamepopup', settings);
  if (popup != null) popup.focus();
}
