// JavaScript Document
//The array which is going to hold the image information. Store the image info along with their correct path; I've omitted the path here as I've stored the images in the same folder where my web page resides.
var imageArray = new Array();

imageArray[0] = "/images/150w/01.jpg"; //You can replace these image file names with your own image names.
imageArray[1] = "/images/150w/02.jpg";
imageArray[2] = "/images/150w/03.jpg";
imageArray[3] = "/images/150w/04.jpg";
imageArray[4] = "/images/150w/05.gif";
imageArray[5] = "/images/150w/06.gif";
imageArray[6] = "/images/150w/07.jpg";
imageArray[7] = "/images/150w/08.jpg";
imageArray[8] = "/images/150w/09.jpg";
imageArray[9] = "/images/150w/10.jpg";
imageArray[10] = "/images/150w/11.jpg";
imageArray[11] = "/images/150w/12.jpg";
imageArray[12] = "/images/150w/13.jpg";
imageArray[13] = "/images/150w/14.jpg";
imageArray[14] = "/images/150w/15.jpg";
imageArray[15] = "/images/150w/16.jpg";
function doIt()
{
var rand = Math.floor(Math.random()*15); //Generating a random number between 0 and 3 here in your case you can replace 4 with 11 if you have 10 images

var imgPath = "<img src='"+imageArray[rand]+"' alt='heder' border='0' align='left' />";

document.getElementById("image").innerHTML = imgPath;

}
doIt();