function CreaArray(n) { 
this.length = n
for (var i = 1; i<=n; i++) {
this[i] = new Image()
}
return this
}
boton = new CreaArray(2) 
boton[1].src="imatges_generals/imatgeocell_b.gif"
boton[2].src="imatges_generals/imatgeocell_v.gif" 

function CambiarImagen(botonNuevo,deCualBoton) { 
deCualBoton.src=botonNuevo.src 
}