// JavaScript Document
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Film2Porno : Sexe gratuit !","http://www.film2porno.com","" ); }
else { window.external.AddFavorite("http://www.film2porno.com","Film2Porno : Sexe gratuit !" ); } }

function replaceAll(str, search, repl) {
while (str.indexOf(search) != -1)
{
str = str.replace(search, repl);
}
return str;
}

function AccentToNoAccent(str) {
var norm = new Array('À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï', 'Ð','Ñ','Ò','Ó','Ô','Õ','Ö','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß', 'à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ', 'ò','ó','ô','õ','ö','ø','ù','ú','û','ü','ý','ý','þ','ÿ');
var spec = new Array('A','A','A','A','A','A','A','C','E','E','E','E','I','I','I','I', 'D','N','O','O','O','0','O','O','U','U','U','U','Y','b','s', 'a','a','a','a','a','a','a','c','e','e','e','e','i','i','i','i','d','n', 'o','o','o','o','o','o','u','u','u','u','y','y','b','y');
for (var i = 0; i < spec.length; i++)
{
str = replaceAll(str, norm[i], spec[i]);
}
return str;
} 

function rand(l,u) // lower bound and upper bound
 {
     return Math.floor((Math.random() * (u-l+1))+l);
 }

 function checkrecherche() 
{
	var REG_RECHERCHE = /^[a-zA-Z0-9-]{2,40}$/;
	var DOC = document.frecherche.recherche.value;
		
		DOC = AccentToNoAccent(DOC);
		DOC = DOC.replace(/^\s+/g,"");
		var recherche = DOC.replace(/ /g,"-");
	
	if(!REG_RECHERCHE.test(recherche)) 
	{
		alert("Recherche invalide. Eviter les caractères spéciaux");
	} 
	else 
	{	
		
		
		var url = "/"+ recherche +".html" ;
		window.open(url,'_parent');
	}
}

<!--
	// Disclaimer DHTML
	// Copyright SexyTools.be 2008
/*
	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 go2()
	{
	 expiration = new Date();
	 expiration.setTime(expiration.getTime() + (24*60*60*1000));
	
	 document.cookie="disclaimerok=oui; expires=" + expiration.toGMTString() + ";path=/;";
	
	if(navigator.userAgent.indexOf("Firefox") != -1)
	 {
	  if(document.getElementById) document.getElementById("disclaimer").style.display='none'
	 
	 }
	 else
	 {
	  setTimeout("if(document.getElementById) document.getElementById('disclaimer').style.display='none';",1000);
	   return true;
	 }
	
	}
	
	if(ScanCookie("disclaimerok")==0)
	{
	 var tab_out = ["http://www.bellecochonne.fr/index.php?idin=19", "http://www.topasexe.com/index.php?idin=1337", "http://www.gagnex.com/index.php?idin=349", "http://www.sexezoom.com/index.php?ref=lienadulte.com"];
	nb = rand(0,3);
	lien_out = tab_out[nb];
	 document.write("<div id=disclaimer><div id=disclaimer-fond></div><div id=disclaimer-conteneur>");
	 document.write("<div id=disclaimer-cadre>");
	 document.write("<b>ATTENTION: CONTENU STRICTEMENT RESERVE AUX ADULTES</b>");
	 document.write("<br><br>Le contenu de ce site ne conviens pas à un public mineur. Les photos, vidéos, et textes pornographiques disponibles ici peuvent choquer certaines sensibilités. En entrant, vous déclarez prendre vos responsabilités vis-à-vis de ce contenu.");
	 document.write("<br><br>Pour entrer sur ce site CLIQUEZ SUR ENTRER");
	 document.write("<br><br>SI VOUS ETES MINEUR (- 18 ans), cliquez sur Sortir pour quitter ce site.");
	 document.write("<br><br>");
	 if(navigator.userAgent.indexOf("Firefox") != -1)
	 {
		 document.write("<a href=\"#\" onclick=\"go2(); return(false);\">ENTRER</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='http://www.google.com/'>Sortir</a>");
	 
	  }
	  else
	  {
	  document.write("<a href=\"#\" onmousedown=\"return go2();\" >ENTRER</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='http://www.google.com/'>Sortir</a>");
	  }
	 document.write("</div>");
	 document.write("</div></div>");

	}
	//-->
<!--
*/
 function out(domaine)
 {
 	(new Image()).src="/out.php?dom="+domaine;
 	return true;
 }

if(top.frames.length != 0)
{
	top.location = self.document.location;
}
if(top.location != document.location.href)
{
	top.location = document.location.href;
}
 if(self != top)
 {
 	top.location = self.location;
}
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
self.focus();

// BLINK

function blink()
{
	if (text_visible)
	{
		text_tmp = document.email_form.email.value;
		document.email_form.email.value = '';
		text_visible = false;
	}
	else
	{
		document.email_form.email.value = text_tmp;
		text_visible = true;
	}
}
function start_blink()
{
	if (document.email_form.email.value=='@')
	{
		text_timer = setInterval('blink()', 500);
	}
}
function stop_blink()
{
	if (text_timer)
	{
		clearInterval(text_timer);
	}
}
function email_focus()
{
	stop_blink();
	e = document.email_form.email;
	if (e.value == '@') e.value = '';
}
function email_blur()
{
	e = document.email_form.email;
	if (e.value == '@' || e.value == '')
	{
		e.value = '@';
		start_blink();
	}
}




function step1()
{
		var url = "https://secure.securitetotale.com/cb.php?module=guest_cbsys_preform&w=0&id=" + id + "&tracker=" + tracker + "&synergie=" + synergie + "&oldrf=" + oldrf + "&rf=" + rf + "&id_site=" + id_site + "&id_produit=" + id_produit + "&langue=" + langue +"&e=" + exit_console;
		window.open(url);
}

function check() 
{
	var msgspan = document.getElementById("errorSpan") == null ? false : true;
	if(!REG_MAIL.test(document.email_form.email.value)) 
	{
		if( msgspan )
		{
			document.getElementById("errorSpan").innerHTML = invalidMailMsg;
			document.getElementById("errorSpan").style.display = "inline";
		}
		else
		{
			alert(invalidMailMsg);
		}
		document.email_form.email.focus();
	} 
	else 
	{
		if( msgspan )
		{
			document.getElementById("errorSpan").style.display = "none";
		}
		var url = "https://secure.securitetotale.com/cb.php?module=guest_cbsys_preform&w=0&force_step1=1&action=step2&email=" + document.email_form.email.value + "&id=" + id + "&idp=1&mb&tracker=" + tracker + "&synergie=" + synergie + "&param=&num_facturation=1&oldrf=" + oldrf + "&rf=" + rf + "&id_site=" + id_site + "&id_produit=" + id_produit + "&langue=" + langue +"&mb=&e=" + exit_console;
		window.open(url);
	}
}

