
function OuvreDisclaimer_en() 
{
	// Vérifie que le cookie "disclaimer1fois_en" n'est pas présent
	if (GetCookie("disclaimer1fois_en")==null) 
	{
		
		// Paramétrez ici le mode d'affichage du disclaimer
	var msg="CAUTION!! : PORNOGRAPHIC WEBSITE FOR ADULTS!\n\n"+
	"By entering this site I certify that I am 18 years of age or older, and that the following statements are true:\n\n"+
	"- I am an adult, being at least 18 years of age.\n"+
	"- I am not accessing this material to use against the site operator or any person whomsoever in any conceivable manner.\n"+
	"- It is legal to view pornographic material in my country. \n"+
	"- I will not let people under the age of 18 take a look at this site or it´s material.\n\n"+
	"(Please note all models in this site were 18 or over at the time of filming)\n\n"+
	"IF YOU'RE 18 YEAR OLD OR OVER, YOU CAN CLICK ON OK, ELSE QUIT\n\n";
if(!confirm(msg)){window.top.popup=0;window.top.location.replace("http://www.perdu.com/");};

		// Enregistre le cookie pour une durée de 1 heures
		var pathname=location.pathname;
		var myDomain='/';
		var date_exp = new Date();
		date_exp.setTime(date_exp.getTime()+(1*3600*1000)); // 1 heures
		SetCookie("disclaimer1fois_en","ok",date_exp,myDomain);


	}
}

function SetCookie (name, value) {
	var argv=SetCookie.arguments;
	var argc=SetCookie.arguments.length;
	var expires=(argc > 2) ? argv[2] : null;
	var path=(argc > 3) ? argv[3] : null;
	var domain=(argc > 4) ? argv[4] : null;
	var secure=(argc > 5) ? argv[5] : false;
	document.cookie=name+"="+escape(value)+
		((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
		((path==null) ? "" : ("; path="+path))+
		((domain==null) ? "" : ("; domain="+domain))+
		((secure==true) ? "; secure" : "");
}

function getCookieVal(offset) {
	var endstr=document.cookie.indexOf (";", offset);
	if (endstr==-1)
      		endstr=document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
	var arg=name+"=";
	var alen=arg.length;
	var clen=document.cookie.length;
	var i=0;
	while (i<clen) {
		var j=i+alen;
		if (document.cookie.substring(i, j)==arg)
                        return getCookieVal (j);
                i=document.cookie.indexOf(" ",i)+1;
                        if (i==0) break;}
	return null;
}

OuvreDisclaimer_en();
