		function makepage(src)
{
  // We break the closing script tag in half to prevent
  // the HTML parser from seeing it as a part of
  // the *main* page.

  return "<html>\n" +
    "<head>\n" +
    "<title>Howe</title>\n" +
    "<script>\n" +
    "function step1() {\n" +
    "  setTimeout('step2()', 10);\n" +
    "}\n" +
    "function step2() {\n" +
    "  window.print();\n" +
    "  window.close();\n" +
    "}\n" +
    "</scr" + "ipt>\n" +
    "</head>\n" +
    "<body onLoad='step1()' style='margin:0px; padding:0px;'>\n" +
    "<div style='width:595px; height:842px; position:relative;'><p><font face='Arial, Helvetica, sans-serif' style='font-size:12px'><b>Howe London</b> - www.howelondon.com</font></p><center><img src='" + src + "' style='width:70%;margin-left:auto; margin-right:auto; text-align:right;'/></center>\n" +
    "</div></body>\n" +
    "</html>\n";
}

function printme(evt,imagesrc)
{
  if (!evt) {
    // Old IE
    evt = window.event;
  }    
  var image = evt.target;
  if (!image) {
    // Old IE
    image = window.event.srcElement;
  }
  
  src = imagesrc;
  link = "about:blank";
  var pw = window.open(link, "_new");
  pw.document.open();
  pw.document.write(makepage(src));
  pw.document.close();
  return false;
}
