
var newwindow = "";

function ShowPopup(url) {
/*
    if (newwindow.location && !newwindow.closed) {
      newwindow.location.href = url; 
      newwindow.focus();
    } else { */ 
      newwindow=window.open(url, "screenshot", "width=470, height=390, left=0, top=0, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=no");
  /*    } 
    */
}


function ShowPopup2(imgFile, width, height)
{
  //if (!newwindow.location || newwindow.closed) {
    newwindow = window.open("", "newWin", "width=" + width + ", height=" + height + ", left=0, top=0");
  //}
  var tmp = newwindow.document;
  tmp.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
  tmp.writeln('<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="en" lang="en">');
  tmp.writeln('<head>');
  tmp.writeln('<title>Screenshot Viewer</title>');
  tmp.writeln('<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> ');
  //tmp.writeln('<meta name="author" content="" />');
  //tmp.writeln('<meta name="robots" content="all" />');
  tmp.writeln('<meta name="MSSmartTagsPreventParsing" content="true" />');
  //tmp.writeln('<meta name="description" content="" />');
  tmp.writeln('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">');
  //tmp.writeln('</head><body onload="window.focus()"><div align="center">');
  //tmp.writeln('<p style="font-family:Arial,Helvetica,sans-serif; font-size:10px;">If you wish to view more than one image, keep this window open');
  //tmp.writeln(' - it will update whenever you click on a screenshot, and maintain its position if you relocate it.</p>');
  //tmp.writeln('<p><img src="' + imgFile + '" /></p>');
  //tmp.writeln('<p style="font-family:Arial,Helvetica,sans-serif; font-size:12px;"><a href="#" onclick="self.close()">Close this Window</a></p>');
  //tmp.writeln('</div>');
  tmp.writeln('</head><body onload="window.focus()"><img src="' + imgFile + '" />');
  tmp.writeln('</body></html>');
  tmp.close();
}





