picNum=96;  //number of pics in the folder
thesePics=new Array(8); //number of pics to load
var tryAgain;
var nextImage;
function randomPicz(){
pst: for (i=0;i<thesePics.length;i++){
        newRand=Math.ceil(Math.random()*picNum);
        for(a=0;a<8;a++){if (newRand==thesePics[a]){tryAgain=1;break}else{tryAgain=0}; //test if image already chosen
        }
            if(tryAgain==1)
                {i--;newRand=Math.ceil(Math.random()*picNum);continue pst;} //try again
            else
                {thesePics[i]=newRand; //nope, that's fine, add it to the list
                nextImage="document.images.im"+(i+1);};
                eval(nextImage).src="http://cornwallfilmfestival.com/pix/"+thesePics[i]+".jpg"; //pop him in
                 if (eval(nextImage).complete) {continue pst};
                }
}