window.onload = choosePic;

var myPix = new Array("test/banner_1.jpg","test/banner_2.jpg","test/banner_3.jpg");

function choosePic() {
	randomNum = Math.floor((Math.random() * myPix.length));
	document.getElementById("topBanner").src = myPix[randomNum];
}