var imagenumber = 5 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "images/home1.jpg"
images[2] = "images/home2.jpg"
images[3] = "images/home3.jpg"
images[4] = "images/home4.jpg"
images[5] = "images/home5.jpg"
var image = images[rand1]

links = new Array
links[1] = "html\contact.htm"

var link = links[rand1]
document.write('<IMG SRC="' + image + '" border="0">')