/***************************************************/
// TABLEAU DE TRANSLATION FR EN
tab_translation_allin_script = new Array();

tab_translation_allin_script[0] = new Array();
tab_translation_allin_script[0]["fr"] = "Le format de l'adresse email saisie n'est pas correct. Veuillez vérifier la présence des symboles @ et .";
tab_translation_allin_script[0]["en"] = "The format of the e-mail address is not correct, Please check symbols @ and . (dot)";

tab_translation_allin_script[1] = new Array();
tab_translation_allin_script[1]["fr"] = "Le login est invalide.";
tab_translation_allin_script[1]["en"] = "Invalid login";

tab_translation_allin_script[2] = new Array();
tab_translation_allin_script[2]["fr"] = "Le format de l'adresse email saisie n'est pas correct";
tab_translation_allin_script[2]["en"] = "The format of the e-mail is not correct";

tab_translation_allin_script[3] = new Array();
tab_translation_allin_script[3]["fr"] = "Le nom de domaine est invalide.";
tab_translation_allin_script[3]["en"] = "The format of the e-mail is not correct";


tab_translation_allin_script[4] = new Array();
tab_translation_allin_script[4]["fr"] = "L'adresse doit se terminer par quatre lettres de domaine ou deux lettres du pays";
tab_translation_allin_script[4]["en"] = "The e-mail should end with four letters of domain or two letters of the country ";


/***************************************************/

//alert ('timeout = 2700000');
var d=0 ;
clearTimeout(d); 
var theurl = this.location.href;

//alert (theurl+' => http://www.frenchasyoulikeit.com/offres/gestion/js/allin_script.php');
myhost = theurl.substring(0,theurl.indexOf('/',7 ));
primeo = theurl.substring((theurl.indexOf('/',7 )+1),(theurl.indexOf('/',7 )+7));
//alert(primeo);
longueururl = theurl.length;
debut_testurl = theurl.lastIndexOf('index.php');
fin_testurl = debut_testurl+9;

debut_testurl2 = theurl.lastIndexOf('.php');
fin_testurl2 = debut_testurl2+4;

debut_testurl3 = theurl.lastIndexOf('/mailing/');
fin_testurl3 = debut_testurl3+9;
 
var page_accueil1 = theurl.substring((debut_testurl),fin_testurl);
var page_accueil2 = theurl.substring((longueururl-8),longueururl);
var page_accueil3 = theurl.substring((longueururl-9),longueururl);
var page_accueil4 = theurl.substring((longueururl-3),longueururl);
var page_accueil5 = theurl.substring((debut_testurl2),fin_testurl2);
var page_accueil6 = theurl.substring((debut_testurl3),fin_testurl3);

//alert (page_accueil1+'\n'+page_accueil2+'\n'+page_accueil3+'\n'+page_accueil4+'\n'+page_accueil5+'\n'+page_accueil6);
if((page_accueil1!='index.php') && (page_accueil2!='gestion/')&& (page_accueil2!='primeo')&& (page_accueil3!='allinweb/')&& (page_accueil5=='.php')&& (page_accueil6 !='/mailing/')){
  // alert('2700000');
   d = setTimeout("document.location = myhost+'/offres/gestion/index.php?page='+1",2700000); 
}
