//Pick random background image.
//Edit this line to list all background images 
var backgroundSrcs = new Array("v1/pix/bgs/bg1.jpg","v1/pix/bgs/bg2.jpg","v1/pix/bgs/bg3.jpg","v1/pix/bgs/bg4.jpg","v1/pix/bgs/bg5.jpg","v1/pix/bgs/bg6.jpg") 

function pickimage() 
{ 
//This line picks an image at random from the list entered above 
var bgimage=backgroundSrcs[(Math.round(Math.random()*(backgroundSrcs.length-1)))] 

//This line applies the background image to the specified ID 
document.getElementById("bgbd").style.backgroundImage = "url('" + bgimage + "')"; 
}
