function display(myimage, name, width, height) {

	var html = "<html><head><title>"+name+"</title>";
	html +="</head><body leftmargin=0 " + "marginwidth=0 topmargin=0 marginheight=0 onload='window.focus();'>";
	html += "<img src='" + myimage +"'>";
	html +="</body></html>";

	var str = "height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen) {
		// this will load the image in the center of the screen
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
		str += ",location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0;"
	}

	popup= window.open("", "", str);
	popup.document.open();
	popup.document.write(html);
	popup.document.focus();
	popup.document.close();
};
