function so_clearInnerHTML(obj) {
	// so long as obj has children, remove them
	while(obj.firstChild) obj.removeChild(obj.firstChild);
}

function show(image)
{
  	eDIV = document.createElement("img");
	//use the setAttribute method to assign it an id
	eDIV.setAttribute("src","images/"+image);
	// append your newly created DIV element to an already existing element.
	obj = document.getElementById("images");
	so_clearInnerHTML(obj);
	obj.appendChild(eDIV);
}