prova così:

codice:
function cambia_immagine(nome) {
if(document.getElementById && document.createElement) {
var realName="img/"+nome;
immagine = document.getElementById("maps_img");
immagine.setAttribute("src",realName)
}
}
ciao