var posspics = 15;
var usedpics = "";
var x;
var y = new Date();

function getpic() {
	x = Math.ceil(Math.random(y.getSeconds()) * posspics);
	if (x == 0) {
		x = 1;
	}
	if (usedpics.indexOf('x' + x) == -1) {
		usedpics = usedpics + 'x' + x;
		document.open();
		document.write('<img src="images/sidepic_' + x + '.jpg" alt="" width="128" height="84" border="1">');
		document.close();
	} else {
		getpic();
	}
} 



