function get_random()
{

// random()*X) is the number of images
var ranNum= Math.floor(Math.random()*2);
return ranNum;
}
var whichImg=get_random();

function show_image() {

// Array(X) is the number of images
var img=new Array(2)
img[0]="homepageImages/Ur/50/mainBanner1.jpg";
img[1]="homepageImages/Ur/50/mainBanner2.jpg";

document.write("<table background='");
document.write(img[whichImg]);
document.write("'>");
}