function writeConsole(content,w,h,title) {

h = h + 10 /* allow space for "close window" */

 top.consoleRef=window.open('','myconsole',
  'width='+w+',height='+h
   +',menubar=0'
   +',toolbar=0'
   +',status=0'
   +',scrollbars=1'
   +',resizable=1')
 top.consoleRef.document.writeln(
  '<html><head><title>'+title+'</title>' 
+'<link rel="StyleSheet" href="../style.css" type="text/css">'
+'</head>'
   +'<body bgcolor=white onLoad="self.focus()">'
   +'<img src='+content+'>'
+'<br><div align="center"><A href="javascript: self.close ()">Chiudi</A></div>'
   +'</body></html>'
 )
 top.consoleRef.document.close()
}


