function newWin(imgName,winName,imgWdth,imgHght,top,left,data,link){

var oImg = window.open("",winName,"scrollbars=yes,resizable=yes,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>'+data+'</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\n</head>\n<body onload="self.focus();">\n\n<a href="'+link+'"><img src="'+ imgName +'" border="0" width="'+ imgWdth +'" height="'+ imgHght +'"title="'+data+'" alt="'+data+'";" onerror="document.title=\'error!\';alert(\'error!\');self.close();" /></a>\n\n<br /></body>\n</html>');
oImg.document.write(markup);
oImg.document.close();
}

/*<script type="text/javascript">\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>*/