function cGenColeccion(strID)
{
this.strID = strID;
this.aoColeccion = new Array();
this.Anadir = cGenColeccion__Anadir;
this.Existe = cGenColeccion__Existe;
this.ObtIndice = cGenColeccion__ObtIndice;
this.ObtValor = cGenColeccion__ObtValor;
this.ObtValIndizado = cGenColeccion__ObtValIndizado;
this.NumElems = cGenColeccion__NumElems;
}
function cGenColeccion__Anadir(vClave, vValor)
{
var oPar = new cGenAsoc(vClave, vValor);			
genAnadirElemento(oPar, this.aoColeccion);
}
function cGenColeccion__Existe(vClave)
{
cGenColeccion__Existe = (this.ObtIndice(vClave) > -1);
}
function cGenColeccion__NumElems()
{
return this.aoColeccion.length;
}
function cGenColeccion__ObtValor(vClave)
{
var vValor = null;			
var lIndice;				
lIndice = this.ObtIndice(vClave);
if (lIndice > -1)
{
vValor = this.aoColeccion[lIndice].vValor;
}
return vValor;
}
function cGenColeccion__Quitar(vClave)
{
var	lIndice;			
lIndice = this.ObtIndice(vClave);
if (lIndice > -1)
{
}
}
function cGenColeccion__ObtIndice(vClave)
{
var	lNum;				
var i;					
var lIndice = -1;		
lNum = this.aoColeccion.length;
for (i=0; i<lNum; i++)
{
if (this.aoColeccion[i].vClave == vClave)
{
lIndice = i;
break;
}
}
return lIndice;
}
function cGenColeccion__ObtValIndizado(i)
{
var vValor = null;			
if (this.aoColeccion[i] != null)
{
vValor = this.aoColeccion[i].vValor;
}
return vValor;
}
depuArchivoCargado("cGenColeccion.js");		

