	function pickRandom(range) {
	if (Math.random)
                return Math.floor(Math.random()*range-0.0001);
	else {
		var now = new Date();
		return (now.getTime() / 1000) % range;
		}
	};

function genBanner(range,dir)
	{
	var choice=pickRandom(range);

	document.writeln('<a href="'+ dir+'/topBBB/'+choice+'.html" target="_blank">');
	document.writeln('<img src="'+ dir+'/topBBB/'+choice+'.gif" width="600" height="100" border="0" alt="topBBB" />');
	document.writeln('</a>');
	}

