<img id="myMap" src="pics/My-CARTE.gif" name="Mappp" usemap="#map1"/>
document.getElementById("myMap").setAttribute("usemap", "#map2");