// JavaScript Document

<!--- getting around the chromeless problem

function openIT(theURL,theH,theW) {
  var bbhcwin = null;
  LeftPos = (screen.width) ? (screen.width-theW)/2 : 0;
  TopPos = (screen.height) ? (screen.height-theH)/2 : 0;
  var winName = "BBHCview";
  var thisH = (theH/1) + 5;
  var thisW = (theW/1) + 5;
  var winfeatures = 'height='+thisH+',width='+thisW+',top='+TopPos+',left='+LeftPos+',resizable, scrollbars'
  bbhcwin = window.open(theURL,winName,winfeatures);
  bbhcwin.focus();
}

function openIT2(theURL,theH,theW) {
  var bbhcwin2 = null;
  LeftPos = (screen.width) ? (screen.width-theW)/2 : 0;
  TopPos = (screen.height) ? (screen.height-theH)/2 : 0;
  var winName = "BBHCview2";
  var thisH = (theH/1) + 5;
  var thisW = (theW/1) + 5;
  var winfeatures = 'height='+thisH+',width='+thisW+',top='+TopPos+',left='+LeftPos+',resizable=yes,scrollbars=yes,statusbar=yes,status=yes,location=no,toolbar=no'
  bbhcwin2 = window.open(theURL,winName,winfeatures);
  bbhcwin2.focus();
}

function openITmax(theURL) {
  var pimwin = null;
  //LeftPos = (screen.width) ? (screen.width-theW)/2 : 0;
  //TopPos = (screen.height) ? (screen.height-theH)/2 : 0;
  LeftPos = 0;
  TopPos = 0;
  var winName = "CollectionViewer";
  var thisH = screen.availHeight;
  var thisW = screen.availWidth;
  var winfeatures = 'height='+thisH+',width='+thisW+',top='+TopPos+',left='+LeftPos+',menubar=yes,resizable=yes,scrollbars=yes,statusbar=yes,status=yes,location=yes,toolbar=yes'
  pimwin = window.open(theURL,winName,winfeatures);
  pimwin.focus();
}

//--->
