// JavaScript Document
function writeConsole(content,w,h,title) {

windowProps="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width="+w+",height="+h+"'";
window_name='';

top.consoleRef=window.open('',window_name,windowProps);

 consoleContent=''
+'<html><head><TITLE>'+title+'</TITLE>'
+'<style type="text/css">'
+'<!--'
+'.close {text-decoration: none;}'
+'-->'
+'</style>'
+'</head>'
+'<BODY BGCOLOR="#FFFFFF" link="#000000" vlink="#000000" onload="self.focus();">'
+'<CENTER>'
+'<table border="0" width="100%">'

+'  <tr>'
+'    <td width="100%" align="center">'

+'<br><img src="'+content+'">'
+'<p align="center" style="font-family: sans-serif; font-size: 10px"><a href="javascript:void window.close()" class="close">close window</a></p>'

+'</td>'
+'  </tr></table>'

+'</body>'
+'</html>'


 top.consoleRef.document.writeln(consoleContent)
 top.consoleRef.document.close()
}