//Assembles and organizes the IMG element for random picture display:

window.onload = pickAPic; //brings it up!
function pickAPic() {
 
	var picCount=5; // the number of pictures available
	var randomNum =  Math.floor(Math.random()*picCount)+1; //choses a random number between 1 and picCount
	// alert (randomNum); //tests picCount with math
	var mySrc="quote"+randomNum+".jpg" //puts together the filename
	var myImgEl =document.createElement("img"); //creates a new image element
	myImgEl.setAttribute("src",mySrc); //adds the src attribute to the element
	myImgEl.setAttribute("alt","Quotes of Kevin"); //gotta have alt text
	var theDiv=document.getElementById("display"); //gets the target
	theDiv.appendChild(myImgEl); //adds the image into the div
}// JavaScript Document
