
// script to open photo viewer popup window
function popWin(url,width,height) {
  var width = screen.availWidth / 2;
  var height = screen.availHeight / 2;
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=1,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "pswin";
}

function popWin_static(url,width,height) {
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=1,menubar=0,status=0,scrollbars=0");
  remote.opener.name = "pswin";
}

function popWin_admin(url,width,height) {
  remote = window.open(url,"viewer","width=" + width + ",height=" + height + ",left=0,top=0,resizable=1,menubar=0,status=0,scrollbars=1");
  remote.opener.name = "pswin";
}