var path_to_thumbb='2/'; 
var num_of_thumbb=6;
var code_numb=num_of_thumbb-1;
thumbsb = new Array(code_numb);
<!-- Script writed by Doctor, 2003, for questions knock ICQ 171114296 :o)) -->
function genb(n){return (Math.round(Math.random()*n)+1);}
function check_numb(num){
for (j=0;j<=code_numb;j++){if (thumbsb[j]==num) return false};
return true;}

ex=genb(code_numb);
for (k=0;k<=code_numb;k++){
if (check_numb(ex)) {thumbsb[k]=ex;}
	else {
		while (check_numb(ex)==false) {ex=genb(num_of_thumbb-1)};
		thumbsb[k]=ex;
		}
}
var tb=0;
function thumb_viewb(){
document.writeln('<IMG SRC="'+path_to_thumbb+thumbsb[tb]+'.jpg">');
t++;
}

