var imgWin;
function iWinOpen(iNum)
{
var iWinNum = 1;
var iTop = 0;
var iLeft = 0;
  //set the window location as determined by the onClick parameters
  var iLoc = 'iview.html?'+iNum;
  //create a window name
  var iWinName = 'iWin' + iWinNum;
  //set the window properties as determined by the onClick parameters
  var iWinProps = 'width=700'+',height=600'+',top='+iTop+',left='+iLeft+',screenX='+iLeft+',screenY='+iTop+',resizable,scrollbars';
  //open the window with the parameters set above
  imgWin = window.open(iLoc,iWinName,iWinProps);
  //create a new window number for the next window call
  iWinNum = iWinNum + 1;
  //OPTIONAL: move the next window down and to the right
  iTop = iTop + 5;
  iLeft = iLeft + 5;
}
