//Created by: Edgar Soto
//Random Image Generator

//Initialize the onload event without having to have it on the HTML/XHTML
window.onload = showImage;

function showImage(){
	
	//Please enter the total number of Images below
	
	var totalImages = 15;
	
	//declare and generate the random number
	
	var ran_unrounded=Math.random()*totalImages;
	var ran_number=Math.floor(ran_unrounded);

	//display the random image
	
	var randImage = document.randImage;
	randImage.src = 'images/randImages/randImage' +ran_number+ '.jpg';
	

}