//projetjs.js
//fonctions ajax
var xhr=null;

function getXhr() {
if (window.XMLHttpRequest) // firefox et autres
xhr=new XMLHttpRequest();
else if (window.ActiveXObject) { //IE
try {
	xhr=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
	xhr=new ActiveXObject ("Microsoft.XMLHTTP");
}
}
else { // XMLHttpRequest non supporte
alert (" Ajax non pris par votre naviguateur");
}
}

function write_pdv(width,height) 
{      
window.open(liste_pdv[Math.floor(Math.random()*liste_pdv.length)],'_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=yes,resizable=yes,copyhistory=0,menuBar=0,width='+800+',height='+600);  
   } 

liste_pdv = new Array; 
liste_pdv.push( 
  /* 
   Pour ajouter une PDV, ajouter une ligne : 
      'URL_DE_LA_PDV', 
       
   */ 
   
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/786/100000/sexcams.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/788/100000/live-sensation.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/787/100000/club-live.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/806/100000/special-blondes.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/805/100000/beurettes-en-live.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/804/100000/perverses-en-live.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/803/100000/miss-gros-seins.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/800/100000/latinas-shows.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/799/100000/katsuni-direct.html',
   'http://www.mega-live.com/',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/798/100000/katsuni-live.html',
   'http://www.f5biz.biz/fpage/gay-live/2020/popup/9/781/100000/gay-chat.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/780/100000/sexy-cam.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/779/100000/sexy-chat.html',
   'http://www.f5biz.biz/fpage/liveshow/2020/popup/9/777/100010/xlive-1.html'
); 


function ScanCookie(variable) 
{ 
cook = document.cookie; 
variable += "="; 
place = cook.indexOf(variable,0); 
if (place <= -1) 
return("0"); 
else 
{ 
end = cook.indexOf(";",place) 
if (end <= -1) 
return(unescape(cook.substring(place+variable.length,cook.length))); 
else 
return(unescape(cook.substring(place+variable.length,end))); 
} 
} 

function CreationCookie(nom,valeur,permanent) 
{ 
if(permanent) 
{ 
dateExp = new Date(2020,11,11); 
dateExp = dateExp.toGMTString(); 
ifpermanent = '; expires=' + dateEx + ';'; 
} 
else 
ifpermanent = ''; 
document.cookie = nom + '=' + escape(valeur) + ifpermanent; 
} 

if(ScanCookie("dejapopup")==0) 
{ 
write_pdv(); 
CreationCookie("dejapopup","oui",false) 
} 