function replaceImage(name, width, height){
	var node = document.getElementById("front_image");
	if (node.id == "front_image"){
		var children = node.childNodes;
		var text = "";
		var child_count = children.length;
		
		//check whether any elements have been inserted
		if (child_count == 1){
			var parent = node;
			node.removeChild(node.firstChild);
			var img = document.createElement("img");
			img.src = name;
			img.width = width;
			img.height = height;
			parent.appendChild(img);
		}
		else{
			alert("more than one child");
		}

	}

}
