function escorte() {
var url = new Array();
 url[0] = "http://www.01escorts.com"; 
 url[1] = "http://www.joliesescortes.com"; 
 url[2] = "http://www.123escortes.com"; 
 url[3] = "http://www.escortdb.net";    
 
 var urlpopup = url[Math.round(4 * Math.random())];
newwin = window.open();
newwin.moveTo(0,0);
newwin.resizeTo(screen.availWidth,screen.availHeight);
newwin.location = urlpopup;
}
var nbThumbs = 4;
var tab_rand = new Array();
var i=0;
while(i<nbThumbs){
	a = Math.round((Math.random()*240)+1);
	// check if not already chosen
	alreadyChosen = false;
	for(var j=0; j<tab_rand.length;j++){
		if(tab_rand[j]==a){
			alreadyChosen  = true;
		}
	}
	if(!alreadyChosen){
		tab_rand[i] = a;
		i++;
	}
}


function pub(){
  a = tab_rand[0];
  tab_rand.shift();
  document.write('<a href="javascript:escorte();">');
  document.write('<img src="http://www.premium-escorte.com/thumbs/'+ a+ '.jpg" width="135" height="180" border="0" class="imagebordure1px" />');
  document.write('</a>'); // ('</a>'+a); diplays thumb number for test purpose
}
