function switch_image(id,img)
{

document.getElementById(id).src=img;

}