function newWin(imgName,winName,imgWdth,imgHght,top,left){

var oImg = window.open("",winName,"status=yes,width="+ imgWdth +",height="+ imgHght +",top="+((screen.height-imgHght)/5)+",left="+((screen.width-imgWdth)/2.1));
var markup = ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<title></title>\n<meta http-equiv="imagetoolbar" content="no" />\n<style type="text/css">\n<!--\n\nhtml, body  {margin: 0px;background-color: rgb(255,255,255);}\n\n//-->\n</style>\n<script type="text/javascript">\n<!--\n\n/*\n"God so loved the world that he gave his only\nbegotten son, so that whosoever believed in\nhim would not perish, but have everlasting life."\n*/\n\nx = 0;\n\nfunction getCnt(){\n\nvar doc = document;\nif(doc.images[0].complete){\nclearInterval(setInt);\ndoc.title = "Download Complete!";\n}else{\ndoc.title = "Loading: [" + x + "]";\nx++;\n}\n}\nvar setInt = setInterval(getCnt,10);\n\n//-->\n<\/script>\n</head>\n<body onload="self.focus();">\n\n<img src="'+ imgName +'" border="0" width="'+ imgWdth +'" height="'+ imgHght +'" alt="" onclick="self.close();" onerror="document.title=\'image not found!\';alert(\'image not found!\');self.close();" style="cursor:pointer;" />\n\n</body>\n</html>');
oImg.document.write(markup);
oImg.document.close();
}