function genereateNewListFromXml(xml,itemname,formname,listname,itemDefault){
	var	items = xml.getElementsByTagName(itemname),
		risultato = "",
		i=0;

	var list = eval('document.' + formname + '.' + listname);

	for (i in list.options.length) {
		list.options[i] = null;
	}
	i = 0;	
	if (itemDefault==1){
			opt = new Option();
			opt.value = "";
			opt.text = "Selezionare un valore";
			list.options[i++] = opt;
		
	}
	for(var a = 0, b = items.length; a < b; a++) {
			opt = new Option();
			opt.value = leggiContenuto(items[a], "id");
			opt.text = leggiContenuto(items[a], "valore");
			list.options[i++] = opt;
	};
		list.length = i;
	return "";
}
