function randomNum(max) {
var rNum=NaN
while (isNaN(rNum)) {
rNum=Math.floor(Math.random()*(max))
}
return rNum
}

var pic = new Array()
pic[0]="http://i2.tinypic.com/qqr4pe.gif"
pic[1]="http://i2.tinypic.com/qqr50i.gif"
pic[2]="http://i2.tinypic.com/qqr538.gif"
pic[3]="http://i2.tinypic.com/qqr577.gif"
pic[4]="http://i2.tinypic.com/qqr58j.gif"
pic[5]="http://i2.tinypic.com/qqr5a0.gif"
pic[6]="http://i2.tinypic.com/qqr5ds.gif"
pic[7]="http://i2.tinypic.com/qqr5f8.gif"
pic[8]="http://i2.tinypic.com/qqr5gh.gif"
pic[9]="http://i2.tinypic.com/qqr5hl.gif"
pic[10]="http://i2.tinypic.com/qqr5ll.gif"

imgTag='<a target="_blank" href="http://ddl2.com">'
imgTag+='<img border="0" src="'
imgTag+=pic[randomNum(pic.length)]
imgTag+='" width="92" height="32"></a>'
document.write (imgTag)
