// JavaScript Document

//Change the src attribute of the image placeholder. Use setAttribute.



/*whichpic represents an element, in this case an a tag that leads to the path of an image.
  I can extract this path using getAtrribute
*/


function showPic(whichpic){
	//grab the href attribute of the a tag to grab the image paths
	var source = whichpic.getAttribute("href");
	//grab the image called placeholder
	var placeholder = document.getElementById("placeholder");
	placeholder.setAttribute("src",source);

}