/***********************************************************************************/
//productFace
/***********************************************************************************/
function productFace(id, desc)
{
	this.id = id;
	this.description = desc;
}

/***********************************************************************************/
//productAttribItem
/***********************************************************************************/
function productAttribItem(id, desc, abbr, attribId, attribDesc)
{
	this.id = id;
	this.description = desc;
	this.abbr = abbr;
	this.attribId = attribId;
	this.attribDescription = attribDesc;
}

/***********************************************************************************/
//attribPack
/***********************************************************************************/
function attribPack(packId)
{
	this.id = packId;
	this.prodAttribItens = null;
}

function insertProductAttribItem(prodAttribItem)
{
	if(this.prodAttribItens == null)
	{
		newArray = new Array(0);
		newArray[0] = prodAttribItem;
	}
	else
	{
		newArray = new Array(this.prodAttribItens.length);
		
		for(i=0;i<this.prodAttribItens.length;i++)
		{
			newArray[i] = this.prodAttribItens[i];
		}
		
		newArray[this.prodAttribItens.length] = prodAttribItem
	}
	
	this.prodAttribItens = newArray;
}
attribPack.prototype.insert = insertProductAttribItem

/***********************************************************************************/
//stockPack
/***********************************************************************************/
function stockPack(pack, prodFace)
{
	this.pack = pack;
	this.prodFace = prodFace;
}

