<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
	<title>Image Zoom</title>
	<style type="text/css" media="all">
	<!--
	body
	{
	margin: 0;
	overflow: hidden;
	}
	-->
	</style>
	
</head>

<body>

<a href="javascript:window.close();" title="Click to close."><img id="demoId" src="paintbrush.gif" width="202" height="172" alt="Click to close." border="0" /></a>

<script language="javascript" type="text/javascript">
if (window.Event)
  document.captureEvents(Event.MOUSEUP);

function nocontextmenu() {
  event.cancelBubble = true, event.returnValue = false;

  return false;
} 

function norightclick(e) {
  if (window.Event) {
    if (e.which == 2 || e.which == 3) return false;
  }
  else if (event.button == 2 || event.button == 3) {
    event.cancelBubble = true, event.returnValue = false;
    return false;
  }
}

document.getElementById('demoId').oncontextmenu = window.close;
document.getElementById('demoId').onmousedown = window.close;
document.getElementById('demoId').onmouseup = window.close;
//--></script>
</body>
</html>