function image(obj, url, x, y)
{

var OpenWindow = window.open("","","left=0, top=0, menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, width=" + x + ", height=" + y);

var alt = obj.getAttribute('alt') ? obj.getAttribute('alt')  :  obj.getAttribute('title') ;


OpenWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
OpenWindow.document.write('<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">');
OpenWindow.document.write('<head>');
OpenWindow.document.write('<title>' + alt + '</title>');
OpenWindow.document.write('<meta name="Content-Type" content="text/html; charset=windows-1251" /> ');
OpenWindow.document.write('</head>');
OpenWindow.document.write('<body style="margin: 0px; padding: 0px;">');
OpenWindow.document.write('<img  onClick="window.close()" src="' + url + '" title="' + alt + '. Ùåëêíèòå, ÷òîáû çàêðûòü êàðòèíêó." alt="Øåëêíèòå, ÷òîáû çàêðûòü" style="cursor: hand; cursor: pointer; border: none;" />');
OpenWindow.document.write('</body>');
OpenWindow.document.write('</html>');
OpenWindow.document.close();
}

function getImages() {
var s=document.getElementsByTagName('img');

for (var i=0; i<s.length; i++) {

	if (s[i].getAttribute('onClick'))
	s[i].style.cursor = 'pointer';
	//s[i].style.cursor = 'hand';
    }

}
