window.onload = pickAPic;
function pickAPic() {
var randomNum;  // a variable to hold the random number
var picCount = 15; // the number of pictures to rotate
randomNum =  Math.floor(Math.random()*picCount)+1;
var mySrc="images/CawsandImages/Cawsand "+randomNum+".png"
var myImgEl = document.createElement("img");
myImgEl.setAttribute("src",mySrc);
myImgEl.setAttribute("alt","Cawsand");
var theDiv = document.getElementById("PagePicture");
theDiv.appendChild(myImgEl);}

