<!--
function popupwin(codigo,source,t,w,h) {
var screenH = 600;
var screenW = 800;
ns4 = (document.layers)? true:false
ie5=(document.getElementById)? true:false
ns6=(document.getElementById)? true:false
ie4=(document.all && !(document.getElementById))? true:false
if(ns4||ie4||ie5||ns6){
	var screenH = screen.height;
	var screenW = screen.width;
}
var hw = h+20;
var ww = w;
if (hw > screenH-60) {
   hw = screenH-60;
   ww = w+16;
}
winpopup = window.open('',codigo,'height='+hw+',width='+ww+',menubar=no,scrollbars=yes,status=no,toolbar=no,screenX=100,screenY=0,left=100,top=0');
winpopup.document.write('<HTML>\n<HEAD>\n');
winpopup.document.write('<TITLE>'+t+'</TITLE>\n');
winpopup.document.write('<style type="text/css">\n');
winpopup.document.write('body {margin: 0px; padding: 0px; scrollbar-face-color:#B57DAD; scrollbar-arrow-color:#FFF; scrollbar-track-color:#ccc; }\n');
winpopup.document.write('img {margin: 0px; padding: 0px; border: 0px;}\n');
winpopup.document.write('input {border: solid 1px #333; margin: 0px; padding: 0px; width: '+w+'px; height: 20px; font: 10px Verdana, Arial, Geneva, sans-serif;}\n');
winpopup.document.write('</style>\n');
winpopup.document.write('</HEAD>\n');
winpopup.document.write('<BODY>\n');
winpopup.document.bgColor = "#666666";
winpopup.document.fgColor = "black";
winpopup.document.write('<DIV>\n');
winpopup.document.write('<form action="javascript:self.close();">\n');
winpopup.document.write('<a href="javascript:self.close();"><img src="'+source+'" width="'+w+'" height="'+h+'"></a>\n');
//winpopup.document.write('</DIV>\n');
//winpopup.document.write('<DIV style="position: absolute; top: '+h+'px; left:0px;">\n');
//winpopup.document.write('<form action="javascript:self.close();">\n');
winpopup.document.write('<input type="submit" name="submit" value="Clique aqui para fechar esta janela !">\n');
winpopup.document.write('</form>\n');
winpopup.document.write('</DIV>\n');
winpopup.document.write('</BODY>\n');
winpopup.document.close(); //Close the Window to additional writes
} //end function popupwin()

<!-- hide from old browsers
// Written & created by Shivaji Basu
// Copyright www.shivbasu.com
// Use this script at your own risk
// To use his script, you MUST leave this disclaimer & credit as it is

// the following lines are to sniff out older browsers

// It has now become necessary to sniff out ns4 separately from ns6.
// For ease of understanding, I've sniffed out ie4 & ie5 separately
// Although these could have stayed together
// Or ie5 could have been clubbed with ns6

ns4 = (document.layers)? true:false
ie5=(document.getElementById)? true:false
ns6=(document.getElementById)? true:false
ie4=(document.all && !(document.getElementById))? true:false

//--end hide>
-->
