/*
 * Javascript to open maximum size window, with no toolbars, status bar, etc
 *	window is resizeable and displays scrollbars
 */

function open_max(url)
{
  w = screen.width;
  h = screen.height-32;
  wleft = 0;
  wtop = 0;
  var win = window.open(url,
    '_blank',
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=yes, resizable=yes');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();
}

function open_med(url)
{
  w = 500;
  h = 350;
  wleft = screen.width/2 - w/2;
  wtop = (screen.height-32)/2 - h/2;
  var win = window.open(url,
    '_blank',
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=yes, resizable=yes');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();
}

function open_med_wide(url)
{
  w = 700;
  h = 350;
  wleft = screen.width/2 - w/2;
  wtop = (screen.height-32)/2 - h/2;
  var win = window.open(url,
    '_blank',
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=yes, resizable=yes');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();
}


