function random(quantity)      {

var links = new Array(quantity);
     for (i=0; i < quantity; i++) {
     links[i] = ""+i+".htm"  }
	 
var rand = Math.floor(Math.random() * quantity)

window.location = links[rand];

}
