function fotoA( imgName, imgCaption) {
	
	textColor = "#000000";
	bgColor = "#ffffff";
	chars = imgCaption.length*10;
		
	w = window.open('','BoxWin','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=666,height=555');
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<script language='JavaScript'>\n");
	//w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	//w.document.write( "else if(document.getElementById)NN6=true\n");
	//w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( " imgH=document.images[0].height\n");
	w.document.write( " imgW=document.images[0].width\n");
        w.document.write( "	if(IE5 && (imgH<600)) { \n");
	w.document.write( " if ("+chars+">imgW) test= 17+18*("+chars+"/imgW)\n");
	w.document.write( "	else if("+chars+"!=0) test=30\n");
	w.document.write( "	else test=0\n");
	w.document.write( " self.resizeTo(document.images[0].width+28,document.images[0].height+55+test)\n");
	w.document.write( " }\n");
	w.document.write( " else { \n");
	w.document.write( " document.all['imgBody'].scroll='yes'; \n");
	w.document.write( " self.resizeTo(document.images[0].width+40,600)\n");
	w.document.write( " }\n");
	// w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+55+test)\n");
	w.document.write( "	self.focus()\n");
        w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body id='imgBody' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=2 border=0 align='center' width='90%' height='99%'><tr><td colspan=2 align='center' valign='center'><a href='javascript:top.window.close();'><img src='"+imgName+"' border=0></a></td></tr>" );
	w.document.write( "<tr>" );
	w.document.write( "<td align='center' valign='center' colspan='2'><b><a>"+imgCaption+"</a></b></td>" );
	w.document.write( "</tr>" );
	w.document.write( "</table>");
        w.document.write( "</body></html>" );
	w.document.close();
}

function fotoB( imgName, imgCaption) {
	
	textColor = "#000000";
	bgColor = "#ffffff";
	chars = imgCaption.length*10;
		
	w = window.open('','BoxWin','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=530,height=720');
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<script language='JavaScript'>\n");
	//w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	//w.document.write( "else if(document.getElementById)NN6=true\n");
	//w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( " imgH=document.images[0].height\n");
	w.document.write( " imgW=document.images[0].width\n");
        w.document.write( "	if(IE5 && (imgH<600)) { \n");
	w.document.write( " if ("+chars+">imgW) test= 17+18*("+chars+"/imgW)\n");
	w.document.write( "	else if("+chars+"!=0) test=30\n");
	w.document.write( "	else test=0\n");
	w.document.write( " self.resizeTo(document.images[0].width+28,document.images[0].height+55+test)\n");
	w.document.write( " }\n");
	w.document.write( " else { \n");
	w.document.write( " document.all['imgBody'].scroll='yes'; \n");
	w.document.write( " self.resizeTo(document.images[0].width+40,600)\n");
	w.document.write( " }\n");
	// w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+55+test)\n");
	w.document.write( "	self.focus()\n");
        w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body id='imgBody' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=2 border=0 align='center' width='90%' height='99%'><tr><td colspan=2 align='center' valign='center'><a href='javascript:top.window.close();'><img src='"+imgName+"' border=0></a></td></tr>" );
	w.document.write( "<tr>" );
	w.document.write( "<td align='center' valign='center' colspan='2'><b><a>"+imgCaption+"</a></b></td>" );
	w.document.write( "</tr>" );
	w.document.write( "</table>");
        w.document.write( "</body></html>" );
	w.document.close();
}
