function randImg() {
	var theImage = new Array(10)
	theImage[0] = "marathonwedding";
	theImage[1] = "pirate";
	theImage[2] = "junglebirthdaywater";
	theImage[3] = "vegas";
	theImage[4] = "jr";
	theImage[5] = "stockings";
	theImage[6] = "scooter";
	theImage[7] = "beach";
	theImage[8] = "zoo";
	theImage[9] = "maxcard";

	var theCaption = new Array(10)
	theCaption[0] = "couple who were getting married at a rock 'n roll themed marathon.";
	theCaption[1] = "pirate themed birthday party.";
	theCaption[2] = "jungle themed first birthday.";
	theCaption[3] = "couple getting married at Caesar's Palace in Las Vegas.";
	theCaption[4] = "wife who wanted to commemorate her husband's 40th birthday in somewhat outrageous style.";
	theCaption[5] = "family Christmas card.";
	theCaption[6] = "60th birthday party. The customer supplied the fun verse.";
	theCaption[7] = "couple who wanted a fun beach wedding scene.";
	theCaption[8] = "large family that was celebrating their dad's 40th birthday.";
	theCaption[9] = "birthday/Bar Mitzvah celebration and dance.";

	var randNum = Math.floor(Math.random() * theImage.length);

	var wrapper = document.getElementById("image_wrapper");

	var new_p = document.createElement("p");
	var new_img = document.createElement("img");

	var p_text = document.createTextNode("Jeff created this card for a "+theCaption[randNum]);
	new_img.src = "examples/images/"+theImage[randNum]+".jpg";

	wrapper.appendChild(new_img);
	new_p.appendChild(p_text);
	wrapper.appendChild(new_p);
}

window.onload = randImg;
