// JavaScript Document

// imageName = ./fotos/foto01.jpg
// imageWidth = largura da foto
// imageHeight = altura da foto
// windowName = Nome da Janela -> PS: não pode conter espaços, senao dá erro!
function openPictureWindow(imageName,imageWidth,imageHeight,windowName)
{		
        newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left=0,top=0");
        newWindow.document.open();
        newWindow.document.write('<html><title>'+windowName+'</title><body bgcolor="#eaeaea" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
        newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+'>');
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}