
function imgOpen(url,w,h){

  wImg = open(url,'','width='+w+' height='+h+' scrollbars=0')

  wImg.document.open()
  wImg.document.write("<html><body topmargin=0 leftmargin=0>")
  wImg.document.write("<a href='javascript:self.close()'><img src='"+url+"' width='"+w+"' height='"+h+"' alt='Закрыть' border=0></a>")
  wImg.document.write("</body></html>")
  wImg.document.close()

}
