Object.prototype.extend = function (objeto) { for (propiedad in objeto) { this[propiedad] = objeto[propiedad]; } } Object.prototype.define = function (nombre, valor) { if(!this[nombre.toUpperCase()]) this[nombre.toUpperCase()] = valor; else throw 'Constante ya definida'; } Array.prototype.search = function (texto) { retorno = -1; i=0; while(i