function openDetailImage(srcimg, w, h)	{
var theWindow = window.open('','viewImage','toolbar=no;status=yes;dependent=yes;resizable=no');
var doc = theWindow.document;
doc.open();

doc.write('<html><head><title>'+srcimg.getAttribute('alt')+'</title><style> img {position:absolute; top:0; left:0;}</style></head><body>');

doc.write('<img id="img1" onClick="window.close();" src="'+srcimg.getAttribute('desc')+'" />');

doc.write('</body></head>');

theWindow.resizeTo(w+8,h+50);

doc.close();
theWindow.focus();
}
