
function newCenteredWindow(url, name, w, h, scb, rs, mb, tb, ab, sb, fs) {
  l = (screen.width - w) / 2;
  t = (screen.height - h) / 2;
  properties  = 'height=' + h + ',width=' + w + ',top=' + t + ',left=' + l;
  properties += ',scrollbars=' + scb + ',resizable=' + rs + ',menubar=' + mb;
  properties += ',toolbar=' + tb + ',location=' + ab + ',statusbar=' + sb;
  properties += ',fullscreen=' + fs;
  win = window.open(url, name, properties);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


