myImageCnt = 6;                           // 画像の数
myImage = new Array(
 "image/main_01.gif",
 "image/top01.jpg" ,
 "image/top02.jpg" ,
 "image/top03.jpg" ,
 "image/top04.jpg" ,
 "image/top05.jpg"
);

myRnd = Math.floor(Math.random()*myImageCnt);  // 0〜(myImageCnt-1)の乱数を求める
document.write("<img src='",myImage[myRnd],"' border='0'  width='628' height='197' alt='新宿区体育指導委員協議会メインイメージ'>");