var theImages = new Array()

theImages[0] = 'images/comm_pic_01.jpg'
theImages[1] = 'images/comm_pic_02.jpg'
theImages[2] = 'images/comm_pic_03.jpg'
theImages[3] = 'images/comm_pic_04.jpg'
theImages[4] = 'images/comm_pic_05.jpg'
theImages[5] = 'images/comm_pic_06.jpg'
theImages[6] = 'images/comm_pic_07.jpg'
theImages[7] = 'images/comm_pic_08.jpg'
theImages[8] = 'images/comm_pic_09.jpg'
theImages[9] = 'images/comm_pic_10.jpg'
theImages[10] = 'images/comm_pic_11.jpg'
theImages[11] = 'images/comm_pic_12.jpg'
theImages[12] = 'images/comm_pic_13.jpg'
theImages[13] = 'images/comm_pic_14.jpg'
theImages[14] = 'images/comm_pic_15.jpg'
theImages[15] = 'images/comm_pic_16.jpg'


var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" width="367" height="298" />');
}