
function clsProduttori(codice, descrizione, paese, nome, foto, prodMese)
{
 this.codice        = codice;
 this.descrizione	= descrizione;
 this.paese			= paese;
 this.nome			= nome;
 this.foto			= foto;
 this.prodMese		= prodMese;
 
};


//-------------------------------------------------------------------------------


function caricaProduttori()
{
// funzione che carica gli eventi del tipo selezionato
var strHTML="";		//stringa html
var strImg="";		//path immagine


strHTML += "<table align=center width=100%>"

//preparazione riga di intestazione
			strHTML += "<tr>";
			strHTML +=		"<td background='img/menuscuro3.gif' class=tableitem width=150 align=center>";
			strHTML +=			"<b>paese</b>";
			strHTML +=		"</td>";
			strHTML +=		"<td background='img/menuscuro3.gif' class=tableitem align=center>";
			strHTML +=			"<b>produttore</b>";
			strHTML +=		"</td>";
			strHTML += "</tr>";

for (var i=0; i<aProduttori.length; i++)
	{

			if (i%2==0)
				{
				 strImg='img/menuscuro4.gif'
				}
			else
				{
				 strImg='img/menuchiaro4.gif'
				}
			
			strHTML += "<tr>";
			strHTML +=		"<td background='" + strImg + "' class=tableitem align=center>";
			strHTML +=			"<b>" + aProduttori[i].paese + "</b>";
			strHTML +=		"</td>";
			strHTML +=		"<td background='" + strImg + "' class=tableitem>";
			strHTML +=			"<b>"; 
			strHTML +=				"<a href=# onclick=\"scheda(\'" + aProduttori[i].codice + "\')\">";
			strHTML +=					aProduttori[i].descrizione;
			strHTML +=				"</a>";
			strHTML +=			"</b>";
			if (aProduttori[i].prodMese == 'True')
				{
				 strHTML +=			"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='img/new.gif' border=0>";
				}
			strHTML +=		"</td>";
			strHTML += "</tr>";
	};
	
strHTML += "</table>"	

document.all.divResult.innerHTML = strHTML;

};

//-------------------------------------------------------------------------------

function scheda(strCodice)
{

window.navigate("schedaProd.php?cod=" + strCodice)


};
//-------------------------------------------------------------------------------

