//Create an array of images.
var ads = new Array('http://www.crfh.net/shoutboxcrfhes.jpg','http://www.doomies.com/cajita.jpg','http://www.moco-comics.com/wp-content/uploads/2010/07/banner-patote-maritza-ingles.jpg','http://www.catscratchcomic.com/img/caja_catscratch.jpg','http://www.kimecan.com/shoutbox/shoutbox-tdk-ENG.jpg','http://www.atomiclaundromat.com/wp-content/uploads/2010/07/cajamaricza.jpg','http://www.trevinoart.com/imagenes/shoutbox-TOW.jpg','http://www.crfh.net/other/pben.jpg','http://www.littleteacup.net/fallonme_caja.jpg','http://www.wyliman.com/wp-content/uploads/2010/11/caja.jpg','http://www.powernapcomic.com/images/pnapbox.jpg','http://himyf.com/files/himyf.gif','http://dl.dropbox.com/u/5568837/RobotMonsterBox.png');
var links = new Array('http://www.crfh.net','http://www.doomies.com','http://www.en.moco-comics.com/','http://www.catscratchcomic.com','http://www.kimecan.com','http://www.atomiclaundromat.com','http://www.coolchickens.com/en/','http://www.balazo.net','http://www.littleteacup.net/fallonme','http://www.wyliman.com','http://www.powernapcomic.com','http://himyf.com','http://www.roplusmo.com');

//Get the max length.
var max = ads.length;

//Get the random number between 1 and max length.
var num = Math.floor((Math.random() * max));

//Create variable for displaying the image.
var DisplayAd = "<table border=0 cellspacing=0 cellpadding=0><tr><td><a href='" + links[num] + "'><img src='" + ads[num] + "' border=0></a></td></tr></table>";

//Display the image where the javascript is located in the html file.
document.write(DisplayAd);
