var itemObj;

ItemXML = function() 
{
	var id;
	var idSubCategory;
	var titolo;
	var testolancio;
	var link;	
	var datapubblicazione;	
	var img;
	var categoriaView;
	var type;

	this.id;
	this.idSubCategory;
	this.titolo;
	this.testolancio;
	this.link;	
	this.datapubblicazione = "";	
	this.img;
	this.categoriaView;
	this.type;
}

ItemXML.prototype =
{
	/** SET ****************************************************************************************************************/
	setId : function(id)
	{
		this.id = id;	
	}
	,	
	setTitolo : function(titolo)
	{
		this.titolo = titolo;	
	}
	,
	setLink : function(link)
	{
		this.link = link;	
	}
	,
	setTestoLancio : function(testolancio)
	{
		this.testolancio = testolancio;	
	}
	,
	setIdSubCategory : function(subcat)
	{
		this.idSubCategory = subcat;	
	}	
	,
	setDate : function(datapubblicazione,formatterFrom,formatterTo)
	{

		if(datapubblicazione != "") 
			this.datapubblicazione = formatDate(new Date(getDateFromFormat(datapubblicazione,formatterFrom)),formatterTo);
		else
			this.datapubblicazione = "";
	}	
	,
	setImg : function(img)
	{
		this.img = img;	
	}
	,
	setCategoriaView : function(categoriaView)
	{
		this.categoriaView = categoriaView;	
	}	
	,
	setType : function(type)
	{
		this.type = type;	
	}	
}