var newWindow;
function newWindow1(fileToOpen) 
{
   newWindow = window.open(fileToOpen,
   'indexWin', 'status=yes, resizable=yes, scrollbars=yes, width=550, height=500');
}

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://www.sharefest.net/random_images/image1.jpg'
theImages[1] = 'http://www.sharefest.net/random_images/image2.jpg'
theImages[2] = 'http://www.sharefest.net/random_images/image3.jpg'
theImages[3] = 'http://www.sharefest.net/random_images/image4.jpg'
theImages[4] = 'http://www.sharefest.net/random_images/image5.jpg'
theImages[5] = 'http://www.sharefest.net/random_images/image6.jpg'
theImages[6] = 'http://www.sharefest.net/random_images/image7.jpg'
theImages[7] = 'http://www.sharefest.net/random_images/image8.jpg'
theImages[8] = 'http://www.sharefest.net/random_images/image9.jpg'
theImages[9] = 'http://www.sharefest.net/random_images/image10.jpg'
theImages[10] = 'http://www.sharefest.net/random_images/image11.jpg'
theImages[11] = 'http://www.sharefest.net/random_images/image12.jpg'
theImages[12] = 'http://www.sharefest.net/random_images/image13.jpg'
theImages[13] = 'http://www.sharefest.net/random_images/image14.jpg'
theImages[14] = 'http://www.sharefest.net/random_images/image15.jpg'
theImages[15] = 'http://www.sharefest.net/random_images/image16.jpg'
theImages[16] = 'http://www.sharefest.net/random_images/image17.jpg'
theImages[17] = 'http://www.sharefest.net/random_images/image18.jpg'
theImages[18] = 'http://www.sharefest.net/random_images/image19.jpg'
theImages[19] = 'http://www.sharefest.net/random_images/image20.jpg'

// do not edit anything below this line

var j = 0;
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.RotatingImage.src = theImages[whichImage];
}

//  End -->