var cookieinfo
function CookieExist(CookieName) {
	cookieinfo = document.cookie;
	if (cookieinfo.indexOf(CookieName) == -1) {
		return false;
	}
	else {
		return true;
	}
}

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 GetCookie(CookieName) {

	if ( CookieExist(CookieName) ){

		d = cookieinfo.indexOf(CookieName) + CookieName.length + 1;

		f = cookieinfo.indexOf(";",d);

		if ( f == -1) {

			f = cookieinfo.length;

		}

		return (cookieinfo.substring(d,f));

	}

	else {

		return ("0");

}

}

if (GetCookie("OKadulte1")!=1) 

{

okoupas=confirm("*********** Attenzione, sito vietato ai minori ! ***********\n Questo sito è riservato ad un pubblico maggiorenne ed avvertito, esso è conforme a tutti i regolamenti italiani.\n Questo sito contiene dei testi, delle foto e dei video a carattere pornografico che possono essere scioccanti per certe sensibilità.");

var pathname=location.pathname;
var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(2*24*3600*1000));
if (okoupas==false){

SetCookie("OKadulte1","0",date_exp,"/",".annuaireporno.com");


document.location="http://www.google.fr";


}

else {

SetCookie("OKadulte1","1",date_exp,"/",".annuaireporno.com");

}

}


