Image1= new Image(184,146) Image1.src = "images/random1.jpg" Image2= new Image(184,146) Image2.src = "images/random2.jpg" Image3= new Image(184,146) Image3.src = "images/random3.jpg" Image3= new Image(184,146) Image3.src = "images/random4.jpg" myPix = new Array("images/random1.jpg","images/random2.jpg","images/random3.jpg","images/random4.jpg") imgCt = myPix.length function choosePic(){if (document.images) {randomNum = Math.floor((Math.random() * imgCt)) document.myPicture.src = myPix[randomNum]}}