
function openWindow(imageURL, width, height, bgColor)
{
 var imageWin = window.open("", "", "width="+width+", height="+height+",toolbar=0,location=0,scrollbars=0,resizable=0,left=50,top=50");
 imageWin.document.open();
 imageWin.document.writeln("<body style='background-color:"+bgColor+"'>");
 imageWin.document.writeln("<img id='theImage' src='"+imageURL+"'>");
 imageWin.document.writeln("</body>");
 imageWin.document.close();
}
