var whichImage1 = 0;
var whichImage2 = 0;
var whichImage3 = 0;
var whichImage4 = 0;
var rannum = 0;
var imglength = 0;
var theImages = new Array()
  theImages[0] = '/index/randomimages/01.jpg'
  theImages[1] = '/index/randomimages/02.jpg'
  theImages[2] = '/index/randomimages/03.jpg'
  theImages[3] = '/index/randomimages/04.jpg'
  theImages[4] = '/index/randomimages/05.jpg'
  theImages[5] = '/index/randomimages/06.jpg'
  theImages[6] = '/index/randomimages/07.jpg'
  theImages[7] = '/index/randomimages/08.jpg'
  theImages[8] = '/index/randomimages/09.jpg'
  theImages[9] = '/index/randomimages/10.jpg'
  theImages[10] = '/index/randomimages/11.jpg'
  theImages[11] = '/index/randomimages/12.jpg'


rannum = Math.random();
imglength = theImages.length;

var rannum1 = Math.floor(Math.random() * imglength)
var rannum2;
do
{
rannum2 = Math.floor(Math.random() * imglength)
}
while (rannum2 == rannum1)
var rannum3;
do
{
rannum3 = Math.floor(Math.random() * imglength)
}
while ((rannum3 == rannum1) || (rannum3 == rannum2))
var rannum4;
do
{
rannum4 = Math.floor(Math.random() * imglength)
}
while ((rannum4 == rannum1) || (rannum4 == rannum2) || (rannum4 == rannum3))

whichImage1 = rannum1;
whichImage2 = rannum2;
whichImage3 = rannum3;
whichImage4 = rannum4;



function showImage1(){
  document.write('<img src="'+theImages[whichImage1]+'" width="120" height="90">');
}
function showImage2(){
  document.write('<img src="'+theImages[whichImage2]+'" width="120" height="90">');
}
function showImage3(){
  document.write('<img src="'+theImages[whichImage3]+'" width="120" height="90">');
}
function showImage4(){
  document.write('<img src="'+theImages[whichImage4]+'" width="120" height="90">');
}
