var newWindow = null
function makeNewWindow(name,width,height) {
  var rozmery = null

rozmery = "HEIGHT=" + height + ",WIDTH=" + width
  //if (text==undefined) text = ""
 // store new window object in global variable
 newWindow = window.open("","",rozmery)
 if (newWindow != null) {
  // assemble content for new window
  var newContent = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html lang='cs'><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1250'><title>Dřevovýroba Nálevka</title><link rel='shorcut icon' href='favicon.ico' type='image/x-icon'></head>"
  newContent += "<body style='padding: 0; margin: 0; background-color: #FFFFFF;'>"
  newContent += "<img alt='Dřevovýroba Nálevka' title='Dřevovýroba Nálevka' src=" + name + " onclick='self.close()' style='border: 0; cursor: pointer; padding: 0; margin: 0;'>"
     

  newContent += "</body></html>"
  // write HTML to new window document
  newWindow.document.write(newContent)
  newWindow.document.close()
 }
}

