﻿// JScript File

    	function fAbreJanela(texFoto, intFotoAltura, intFotoLargura, texArq ) 
	{
		var texto1 = "<HTML><HEAD><TITLE>Foto Real<\/TITLE><style> .fotonomecred { width:380px; } .fototitulo { margin-left:00px; } .fechar      { font-family: Tahoma; color: #FF6600; font-size: 10pt; font-weight: bold; margin:6px; border: 1px solid #C0C0C0; padding: 4px; background-color: #EAEEEE }</style>"
		  + '<body bgcolor="#F4F4F4" >' 
		  + '<div align="center">'
		  + "<img align='center' border='0' src='" + texFoto + "'>"	
		  + '<p align="center" style="margin-top: 3px; margin-bottom: 3px"><font face="Tahoma" size="2" color="#008080"><b>' + texArq + '</b></font></p>'	
          + '<p class="fechar"><a onClick="javascript:window.close();" style="cursor: pointer; cursor:hand;">Fechar</a></p>'
          + '</div>'   // a divisão centradora termina aqui		  
		  + '<\/BODY><\/HTML>'
		delete newWindow
		var strQuote = '"'
		var intWindowAltura = Number(intFotoAltura) + Number("90")	
		var intWindowLargura = Number(intFotoLargura) + Number("40")	
		var strSpec = 'align="middle" width=' + intWindowLargura +  ', left=60, top=20, height=' + intWindowAltura + ", border=" + strQuote + "0" + strQuote	
		agora = new Date()
		segundos = agora.valueOf()
  		strNomeJanela = "janela" + segundos		
  	 	newWindow = window.open('', strNomeJanela , strSpec )
		newWindow.document.open()			
		newWindow.document.writeln(texto1)
		newWindow.document.close()
		newWindow.focus()	
	}

