function stampadiv() {
var testo= "<html><head><title>Comune di Prata - Il Comune al servizio del Cittadino</title><link rel='stylesheet' type='text/css' href='/templates/vivere_citta/css/ie.css'  title=Prata' /></head><body>";
testo+= document.getElementById('pagina').innerHTML+"<hr>Copyright © 2005 - Comune di Prata di Pordenone<br> Via Roma, 33 - 30080 - (PN) - Telefono 0434.425111</body></html>";
var ident_finestra = window.open("","finestra_stampa","height=400,width=400");
ident_finestra.document.write(testo);
//ident_finestra.open();
//ident_finestra.document.write(testo);
ident_finestra.document.close();
ident_finestra.print();
ident_finestra.close();
}


function fotopop(str,str1) {
    var outparam = null;
	outparam={
	   testo1: str,
	   testo2:str1

}

    manager="inc/ingrandimento_foto.php";
	
	
	Dialog(manager, function(param) {
		if (!param) {	// user must have pressed Cancel
			alert("sssss");
			return false;
		}
		//alert(param["prova"]);
	}, outparam);
	return false;

/*var testo= "<html><head><link rel='stylesheet' type='text/css' href='templates/mose_interno/css/ie.css' media='screen' title='Alisea'></head><body bgcolor=#5582B9><table cellpadding=0 cellspacing=0 border=0 width=100% height=99%><tr><td align=center valign=middle>";
testo+="<img src="+str+" border=0></td></tr></table></body></html>";*/



//ident_finestra.document.write(testo);
}



function fotopop1(ii) {
    var outparam = null;
	outparam={
	   testo1: immagini,
	   testo2:didascalie,
	   indice:ii

}

    manager="inc/ingrandimento_foto.php";
	
	
	Dialog(manager, function(param) {
		if (!param) {	// user must have pressed Cancel
			alert("sssss");
			return false;
		}
		//alert(param["prova"]);
	}, outparam);
	return false;

}



function popup(str)
{ 
window.open(str, "popup", "status=no,menubar=no,width=500,height=325,resizable=no,scrollbars=yes");
}
