function nuvoletta6(
	_nome,
	_via,
	_numero,
	_citta,
	_provincia,
	_telefono,
	_OID,
	_color1,
	_color2,
	_logo,
	_prenota,
	_scheda,
	_link,
	w,
	h,
	_stelle,
	_latpdo,
	_lonpdo,
	_altpdo,
	_distanza,
	lenpcollegati
	)
	{
		//alert("nuvoletta6");
		if (_via=="null")
			_via=""; 
		if (_numero=="null")
			_numero=""; 
		else
			_numero=", "+_numero;; 
		if (_citta=="null")
			_citta=""; 
		if (_provincia=="null")
			_provincia=""; 
		else
			_provincia=" ("+_provincia+")"; 
		if (_telefono=="null")
			_telefono=""; 
		else
			_telefono="Tel. "+_telefono; 
		if (_scheda!="null")
			_scheda=onflyscheda(_scheda); 
		
		var empty="`";
		var vuoto="";
		var testofumetto="";
		testofumetto = testofumetto+"<html>";
		testofumetto = testofumetto+"<head>";
		testofumetto = testofumetto+"  <style type=\"text/css\">";
		testofumetto = testofumetto+"   .nome {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF;}";
		testofumetto = testofumetto+"	.scheda {font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; }";
		testofumetto = testofumetto+"	.indirizzo {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif;}";
		testofumetto = testofumetto+"  </style>";
		testofumetto = testofumetto+"</head>";
		testofumetto = testofumetto+"<body>";
		testofumetto = testofumetto+"<table width=\"248\" height=\"96\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		testofumetto = testofumetto+"  <tr>";
		testofumetto = testofumetto+"    <td height=\"20\" background=\"img/sfondo_verde.jpg\">";
		testofumetto = testofumetto+"    	<span style=\"font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF;\">";
		testofumetto = testofumetto+"			<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		testofumetto = testofumetto+"  				<tr>";
		testofumetto = testofumetto + "					<TD width='15' ALIGN='left' valign='bottom'>";
		testofumetto = testofumetto+"    					<A HREF='#' onClick=\"window.open('segnalazioneerrore.jsp?oid="+_OID+"&nome="+_nome.replace(/'/g,empty).replace(/\n/g,vuoto)+"&color1=40A020&color2=006060','','width=700, height=580,scrollbars=yes,resizable=yes');\">";
		testofumetto = testofumetto+"    						<IMG SRC='img/pericolo.png' width='15' height='15' alt='Segnalazione Errore'/>";
		testofumetto = testofumetto+"    					</A>";
		testofumetto = testofumetto + "					</TD>";
		if (_latpdo!=0) {
		testofumetto = testofumetto + "					<TD width='15' ALIGN='right' valign='middle'>";
		testofumetto = testofumetto + "						<A HREF='#' onClick=\"centraPDO();\"><IMG SRC='img/google/ico_macchina_foto.gif' width='15' height='10' alt='Centra la mappa sul punto di osservazione'/></A>";
		testofumetto = testofumetto + "					</TD>";
		}
		testofumetto = testofumetto + "					<TD>";
		testofumetto = testofumetto+"    					&nbsp;&nbsp;"+_nome;
		testofumetto = testofumetto + "					</TD>";
		testofumetto = testofumetto+"  				</tr>";
		testofumetto = testofumetto+"			</table>";
		testofumetto = testofumetto+"    	</span>";
		testofumetto = testofumetto+"    </td>";
		testofumetto = testofumetto+"  </tr>";
		testofumetto = testofumetto+"  <tr>";
		testofumetto = testofumetto+"    <td height=\"65\" valign=\"top\" background=\"img/sfondo_centro.jpg\"><span style=\"font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif;\"><br>"+_via+_numero+"<br>"+_citta+_provincia+"<br><br>"+_telefono+"</span></td>";
		testofumetto = testofumetto+"  </tr>";
		testofumetto = testofumetto+"  <tr>";
		if (_scheda!="null") 
			testofumetto = testofumetto+"    <td height=\"11\" background=\"img/sfondo_sotto.jpg\"><A style=\"font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF;\" href=\""+_scheda+"\" target=\"_blank\">&nbsp;&nbsp;SCHEDA</A></td>";
		testofumetto = testofumetto+"  </tr>";
		testofumetto = testofumetto+"</table>";
		testofumetto = testofumetto+"</body>";
		testofumetto = testofumetto+"</html>";
		//alert(testofumetto);
		return testofumetto;
	}

	function onflyscheda(scheda) {
		var index = scheda.indexOf("/poi/scheda.asp");
		if (index>-1) {
			//scheda = scheda.substring(0,index)+"/ulisse/scheda_diving.jsp"+scheda.substring(index+15);
			scheda = "http://localhost:8081"+"/ulisse/scheda_diving.jsp"+scheda.substring(index+15);
		} else {
			index = scheda.indexOf("/p/scheda.asp");
			if (index>-1) {
				scheda = scheda.substring(0,index)+"/diving/scheda_diving.jsp"+scheda.substring(index+13);
			}
			//alert(index+" "+scheda);
		}
		//alert(index+" "+scheda);
		return scheda;
	}
