function showCenteredPopUp(url) {
  var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
  var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;

  var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
  var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;

  var left = ((width / 2) - (600 / 2)) + dualScreenLeft;
  var top = ((height / 2) - (300 / 2)) + dualScreenTop;

  var newWindow = window.open(url, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600, top=' + top + ', left=' + left);

  if (window.focus) {
      newWindow.focus();
  }
}
// common method to calculate pop-up window position in center of screen
common method to calculate pop-up window position in center of screen
common method to calculate pop - up window position in center of screen
function showCenteredPopUp(url) {
  var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
  var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
  var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
  var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
  var left = ((width / 2) - (600 / 2)) + dualScreenLeft;
  var top = ((height / 2) - (300 / 2)) + dualScreenTop;
  var newWindow = window.open(url, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600, top=' + top + ', left=' + left);
  if (window.focus) {
      newWindow.focus();
  }
}
function showCenteredPopUp ( url ) { var dualScreenLeft = window . screenLeft != undefined ? window . screenLeft : screen . left ; var dualScreenTop = window . screenTop != undefined ? window . screenTop : screen . top ; var width = window . innerWidth ? window . innerWidth : document . documentElement . clientWidth ? document . documentElement . clientWidth : screen . width ; var height = window . innerHeight ? window . innerHeight : document . documentElement . clientHeight ? document . documentElement . clientHeight : screen . height ; var left = ( ( width / 2 ) - ( 600 / 2 ) ) + dualScreenLeft ; var top = ( ( height / 2 ) - ( 300 / 2 ) ) + dualScreenTop ; var newWindow = window . open ( url , '' , 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600, top=' + top + ', left=' + left ) ; if ( window . focus ) { newWindow . focus ( ) ; } }
common method to calculate pop-up window position in center of screen
common method to calculate pop - up window position in center of screen