/*
function livescorePopup(URL, width, height, popupname) {
  var left = (screen.width - width) / 2;
  var top = (screen.height - height) / 2;

  if (!window.showModalDialog) {
    var options = "width = " + width + ", height = " + height + ", left = " + left + ", top = " + top +", scrollbars=1";
    options += ", dialog = yes, modal = yes, dependent = yes";
    var newwindow = window.open(URL, popupname, options);
    if (window.focus) {
      newwindow.focus();
    }
  } else {
    var options = "dialogWidth = " + width + ", dialogHeight = " + height + ", center = yes";
    var options = 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px; center:yes; status:yes; resizable:yes; help:yes;';
    var newwindow = window.showModalDialog(URL, popupname, options);
  }
  return false;
}
*/
function livescorePopup(URL, width, popupname, popupname) {
  var width = (screen.width);
  var height = (screen.height);
   //window.open(URL, popupname, 'height=' + popupname + ',width=' + width + ',left=100,top=100 scrollbars=yes');
  window.open(URL, popupname, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=' + width + ',height=' + height + ',left = 0,top = 0');
}