ads = new Array(); ads[0]=""; index = Math.floor(Math.random() * ads.length); document.write(ads[index]);