
<!----- 
/*This script was made by Ray Stott. http://www.crays.com/jsc/. A great script if you want to make a picture album where the images pop up in a new window. It took me almost 14 days to find something that could help me make this excact function, and suddenly thee it was - the whole script... :))*/


var pic = null;
var popImg = null;  // use this when referring to pop-up image
var picTitle = null;
var imgCount = 0;
var imgWinName = "popImg";

function openPopImg(picName, windowTitle, windowWidth, windowHeight){
  closePopImg()
  picTitle = windowTitle
  imgWinName = "popImg" + imgCount++ //unique name for each pop-up window
  popImg = window.open(picName, imgWinName,
           "toolbar=no,scrollbars=no,resizable=no,width=" 
           + (parseInt(windowWidth)+20)  + ",height=" 
           + (parseInt(windowHeight)+15)) 
  }
function closePopImg(){
  if (navigator.appName != "Microsoft Internet Explorer" || parseInt(navigator.appVersion) >=4)
    {if(popImg!=null && !popImg.closed){popImg.close()}}
  }
function setStatus(msg){
  status = msg
  return true
  }
//-->