if( typeof(POMC_nbmc)=="undefined" )
 var POMC_nbmc = 1;
else POMC_nbmc++;
// Arobase
if( typeof(POMC_clignotetxt)=="undefined" )
POMC_clignotetxt = function() {
 var lesinputs = document.getElementsByTagName("INPUT");
 for( i=0; i<lesinputs.length; i++ ) {
  if( lesinputs[i].className.indexOf("POMC_inputmail")>-1 )
   POMC_clignotetxtevent(lesinputs[i]);
 }
}
if( typeof(POMC_clignotetxtevent)=="undefined" )
POMC_clignotetxtevent = function(ob) {
 var delai1=500; // temps d'affichage du texte exprimé en millisecondes (ici 0.5 seconde)
 var delai2=200; // temps d'affichage du bouton vide
 var texte="@"; // Texte à afficher
 if( ob.value==" " || ob.value==texte ) {
  if ( ob.value==" " ) {
   ob.value=texte;
   delai=delai1;
  } else {
   ob.value=" ";
   delai=delai2;
  }
  setTimeout( function() { POMC_clignotetxtevent(ob) }, delai );
 }
 else
  return false;

}
// champ
if( typeof(POMC_clignotechp)=="undefined" )
POMC_clignotechp = function() {

 var numchp = ( POMC_clignotechp.arguments.length>1 ) ? POMC_clignotechp.arguments[0] : 0;
 var lesinputs = document.getElementsByTagName("INPUT");
 var chp_courant = 0;
 for( i=0; i<lesinputs.length; i++ ) {
  if( lesinputs[i].className.indexOf("POMC_inputmail")>-1 ) {
   chp_courant++;
   if( numchp==0 || numchp==chp_courant )
    POMC_clignotechpevent(lesinputs[i]);
  }
 }
}
if( typeof(POMC_clignotechpevent)=="undefined" )
POMC_clignotechpevent = function(ob) {
 var delai1=500; // temps d'affichage de la couleur mise en valeur
 var delai2=200; // temps d'affichage de la couleur initiale du champ
 var couleurfd1="#ffffff"; // Couleur de fond initiale
 var couleurfd2="#ff0000"; // Couleur de fond mise en valeur
 var couleurtxt1="#000000"; // Couleur de fond initiale
 var couleurtxt2="#ffffff"; // Couleur de fond mise en valeur
 var nb_iteration = ( POMC_clignotechpevent.arguments.length>1 ) ? POMC_clignotechpevent.arguments[1] : 1;
 ob.style.backgroundColor = ( nb_iteration%2 ) ? couleurfd1 : couleurfd2;
 ob.style.color = ( nb_iteration%2 ) ? couleurtxt1 : couleurtxt2;
 if( nb_iteration < 7 )
  setTimeout( function() { POMC_clignotechpevent(ob, (nb_iteration+1) ) }, 200 );
}

// verif mail
if( typeof(POMC_verifmail)=="undefined" )
POMC_verifmail = function(ob) {
 var verifsyntaxe = true; // si on demande de verifier la syntaxe on passe la regexp sinon on test que le mail est pas vide
 var Expression = new RegExp("^[A-Za-z0-9\.\_\-]+\@[A-Za-z0-9\.\_\-]{1,}\.[A-Za-z]{2,4}$");
 var lesinputs = ob.getElementsByTagName("INPUT");
 for( i=0; i<lesinputs.length; i++ ) {
  if( lesinputs[i].className.indexOf("POMC_inputmail")>-1 ) {
   var mail = lesinputs[i].value;
   if( !verifsyntaxe ) {
    if( mail=="" || mail==" " || mail=="@" ){
     alert("L'adresse email doit avoir un format valide! nom@fournisseur.com");
     lesinputs[i].focus();
     return false;
    }
   }
   else if(!Expression.test(mail)){
    alert("L'adresse email doit avoir un format valide! nom@fournisseur.com");
    lesinputs[i].focus();
    return false;
   }
  }
 }
 return true;
}

// popunder
if( typeof(POMC_getpopunder)=="undefined" )
POMC_getpopunder = function(url) {
 if( navigator.userAgent.indexOf("Firefox") != -1 ||
  navigator.userAgent.indexOf("MSIE 8") != -1 ) {
  
  exit_win = window.open( url, '_blank', 'width='+screen.width+', height='+screen.height+' , toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1, menuBar=1');
  if (exit_win != null)
   exit_win.blur();
 }
 else {
  window.open( url, '_blank', 'width='+screen.width+', height='+screen.height+' , toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1, menuBar=1');
  self.focus();
 }
}
if( typeof(POMC_popunder)=="undefined" )
POMC_popunder = function() {
 POMC_getpopunder('http://www.porn.fr/');
}

if( typeof(POMC_addLoadListener)=="undefined" )
POMC_addLoadListener = function(func) {
 if (window.addEventListener)
  window.addEventListener("load", func, false); 
 else if (document.addEventListener)
  document.addEventListener("load", func, false); 
 else if (window.attachEvent)
     window.attachEvent("onload", func); 
 else if (typeof window.onload != "function")
  window.onload = func; 
 else {
  var oldonload = window.onload; 
  window.onload = function() { 
   oldonload(); 
   func(); 
  }; 
 }
}

POMC_addLoadListener( POMC_clignotetxt );

if( typeof(POMC_ie6)=="undefined" )
 var POMC_ie6 = /MSIE 6/i.test(navigator.userAgent);

if( typeof(POMC_fixIE6PNG)=="undefined" )
POMC_fixIE6PNG = function(ob) {
 if(POMC_ie6) {
  var pngsrc = ob.style.backgroundImage;
  pngsrc = pngsrc.substring(4, pngsrc.length-1);
  ob.style.background='none';
  ob.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+pngsrc+"', sizingMethod='scale')";
 }
}