// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 150;
PositionY = 150;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;


// Do not edit below this line...
// ================================
function popImage(imageURL,imageWidth,imageHeight,imageTitle){

  imgWin=window.open('about:blank','','scrollbars=no,toolbar=no,location=no,width='+imageWidth+',height='+imageHeight+',left='+PositionX+',top='+PositionY);

  imgWin.document.writeln('<html>');
  imgWin.document.writeln('<head>');
  imgWin.document.writeln('<title>'+imageTitle+'</title>');
  imgWin.document.writeln('<style>body{margin:0px;}</style>');
  imgWin.document.writeln('<sc'+'ript>');
  imgWin.document.writeln('function doTitle(){document.title="'+imageTitle+'";}');
  imgWin.document.writeln('</sc'+'ript>');
  imgWin.document.writeln('</head>');

  if (!AutoClose)
  {
    imgWin.document.writeln('<body bgcolor="#000000" scroll="no" onload="doTitle();self.focus();">');
  }
  else
  {
    imgWin.document.writeln('<body bgcolor=000000 scroll="no" onload="doTitle();self.focus()" onblur="self.close()">');
  }

  imgWin.document.writeln('<img name="imageName" src='+imageURL+' style="display:block">');
  imgWin.document.writeln('</body>');
  imgWin.document.writeln('</html>');

  imgWin.document.close();
}

