window.onload = choosePic;

var myPix = new Array("hd01","hd02","hd03","hd04","hd05","hd06","hd07","hd08","hd09","hd10","hd11","hd12","hd13");

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