//Returns a random number between 0 and 1
function getRandom( num ) {
   return Math.ceil( Math.random() * num );
}
document.write('<img src="images/icons/icon' + getRandom(8) + '.gif" width="40" height="40" border="0">');
