function getImgWd(sImageURL)
{
  var img = sImageURL;
  return img.width;
}

function getImgHt(sImageURL)
{
  var img = sImageURL;
  return img.height;
}

function DisplayImage(sImageURL,iImgWd,iImgHt)
{
  iWndWd = iImgWd;
  iWndHt = iImgHt;

  wndOptions = "resizable=1,toolbar=no,width="+iWndWd+",height="+iWndHt;

  newWindow = window.open("popup.php?"+sImageURL, "sImageURL", wndOptions);

  if (window.focus) {newWindow.focus()}
}

function ResizeImg()
{
  iWidth = (NS)?window.innerWidth:document.body.clientWidth;
  iHeight = (NS)?window.innerHeight:document.body.clientHeight;

  iWidth = document.images[0].width - iWidth;
  iHeight = document.images[0].height - iHeight;

  window.resizeBy(iWidth, iHeight);
  self.focus();
};

// No need to preload images here
//var sImg1 = LoadSrcImage('images/OXS-3200.jpg');
//var sImg2 = LoadSrcImage('images/OXS4100.jpg');
//var sImg3 = LoadSrcImage('images/autosampling.jpg');

var iWndWd;
var iWndHt;
var newWindow;

var arrTemp = self.location.href.split("?");
var imgUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Firefox"||navigator.appName=="Netscape")?true:false;
