// REG EXP de base
function regExp(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP BAD GEOLOC
function regExpBadGeoloc(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.marque.value == ""){
        alert(ao_texts["regExp4"]);
        ao_form.marque.focus();
        return;
    }
    
    if(ao_form.rue.value == ""){
        alert(ao_texts["regExp5"]);
        ao_form.rue.focus();
        return;
    }
    
    /*if(ao_form.numero.value == ""){
        alert(ao_texts["regExp6"]);
        ao_form.numero.focus();
        return;
    }*/
    
    if(ao_form.cp.value == ""){
        alert(ao_texts["regExp7"]);
        ao_form.cp.focus();
        return;
    }
    
    if(ao_form.localite.value == ""){
        alert(ao_texts["regExp8"]);
        ao_form.localite.focus();
        return;
    }
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP EDIT SERVICES
function regExpEditServices(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(ao_form.marque.value == ""){
        alert(ao_texts["regExp4"]);
        ao_form.marque.focus();
        return;
    }
    
    if(ao_form.rue.value == ""){
        alert(ao_texts["regExp5"]);
        ao_form.rue.focus();
        return;
    }
    
    //if(ao_form.numero.value == ""){
     //   alert(ao_texts["regExp6"]);
      //  ao_form.numero.focus();
       // return;
   // }
    
    if(ao_form.cp.value == ""){
        alert(ao_texts["regExp7"]);
        ao_form.cp.focus();
        return;
    }
    
    if(ao_form.localite.value == ""){
        alert(ao_texts["regExp8"]);
        ao_form.localite.focus();
        return;
    }
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP CLOSED STATION
function regExpClosedStation(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(!ao_form.statutPompe[0].checked && !ao_form.statutPompe[1].checked){
        alert(ao_texts["regExp3"]);
        return;
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(ao_form.marque.value == ""){
        alert(ao_texts["regExp4"]);
        ao_form.marque.focus();
        return;
    }
    
    if(ao_form.rue.value == ""){
        alert(ao_texts["regExp5"]);
        ao_form.rue.focus();
        return;
    }
    /*
    if(ao_form.numero.value == ""){
        alert(ao_texts["regExp6"]);
        ao_form.numero.focus();
        return;
    }*/
    
    if(ao_form.cp.value == ""){
        alert(ao_texts["regExp7"]);
        ao_form.cp.focus();
        return;
    }
    
    if(ao_form.localite.value == ""){
        alert(ao_texts["regExp8"]);
        ao_form.localite.focus();
        return;
    }
    
    if(ao_form.statutPompe[0].checked){
        if(ao_form.carbu_3){ // cas France
            if(!ao_form.carbu_3.checked && !ao_form.carbu_8.checked && !ao_form.carbu_2.checked && !ao_form.carbu_5.checked && !ao_form.carbu_1.checked && !ao_form.carbu_4.checked && !ao_form.carbu_7.checked){
                alert(ao_texts["regExp10"]);
                return;
            }
        }
        else{
            if(!ao_form.carbu_diesel.checked && !ao_form.carbu_95.checked && !ao_form.carbu_98.checked && !ao_form.carbu_lpg.checked){
                alert(ao_texts["regExp10"]);
                return;
            }
        
            if(ao_form.prix_diesel.value != ""){    
                var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
                if (!filter.test(ao_form.prix_diesel.value)) {
                    alert(ao_texts["regExp12"]);
                    ao_form.prix_diesel.focus();
                    return;
                }
            }
            
            if(ao_form.prix_95.value != ""){    
                var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
                if (!filter.test(ao_form.prix_95.value)) {
                    alert(ao_texts["regExp13"]);
                    ao_form.prix_95.focus();
                    return;
                }
            }
            
            if(ao_form.prix_98.value != ""){    
                var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
                if (!filter.test(ao_form.prix_98.value)) {
                    alert(ao_texts["regExp14"]);
                    ao_form.prix_98.focus();
                    return;
                }
            }
            
            if(ao_form.prix_lpg.value != ""){    
                var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
                if (!filter.test(ao_form.prix_lpg.value)) {
                    alert(ao_texts["regExp15"]);
                    ao_form.prix_lpg.focus();
                    return;
                }
            }
        }
    }
    else if(ao_form.statutPompe[1].checked){
        if(ao_form.fermeture.value == ""){
            alert(ao_texts["regExp9"]);
            ao_form.fermeture.focus();
            return;
        }
    }
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP EDIT STATION
function regExpEditStation(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.concerne.value == ""){
        alert(ao_texts["regExp16"]);
        ao_form.concerne.focus();
        return;
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(ao_form.marque.value == ""){
        alert(ao_texts["regExp4"]);
        ao_form.marque.focus();
        return;
    }
    
    if(ao_form.rue.value == ""){
        alert(ao_texts["regExp5"]);
        ao_form.rue.focus();
        return;
    }
    
    /*if(ao_form.numero.value == ""){
        alert(ao_texts["regExp6"]);
        ao_form.numero.focus();
        return;
    }*/
    
    if(ao_form.cp.value == ""){
        alert(ao_texts["regExp7"]);
        ao_form.cp.focus();
        return;
    }
    
    if(ao_form.localite.value == ""){
        alert(ao_texts["regExp8"]);
        ao_form.localite.focus();
        return;
    }
    
    if(ao_form.concerne.value == "adresse"){
        if(ao_form.new_rue.value == ""){
            alert(ao_texts["regExp5"]);
            ao_form.new_rue.focus();
            return;
        }
        
        /*if(ao_form.new_numero.value == ""){
            alert(ao_texts["regExp6"]);
            ao_form.new_numero.focus();
            return;
        }*/
        
        if(ao_form.new_cp.value == ""){
            alert(ao_texts["regExp7"]);
            ao_form.new_cp.focus();
            return;
        }
        
        if(ao_form.new_localite.value == ""){
            alert(ao_texts["regExp8"]);
            ao_form.new_localite.focus();
            return;
        }
        
        if(ao_form.new_rue.value == ao_form.rue.value && ao_form.new_cp.value == ao_form.cp.value && ao_form.new_localite.value == ao_form.localite.value){
            alert(ao_texts["regExp19"]);
            return;
        }    
    }
    else if(ao_form.concerne.value == "carbus"){
        if(ao_form.carbu_3){ // cas France
            if(!ao_form.carbu_3.checked && !ao_form.carbu_8.checked && !ao_form.carbu_2.checked && !ao_form.carbu_5.checked && !ao_form.carbu_1.checked && !ao_form.carbu_4.checked && !ao_form.carbu_7.checked){
                alert(ao_texts["regExp10"]);
                return;
            }
        }
        else{
            if(!ao_form.carbu_diesel.checked && !ao_form.carbu_95.checked && !ao_form.carbu_98.checked && !ao_form.carbu_lpg.checked){
                alert(ao_texts["regExp10"]);
                return;
            }
        }   
    }
    else if(ao_form.concerne.value == "marque"){
       if(ao_form.new_marque.value == ""){
            alert(ao_texts["regExp4"]);
            ao_form.new_marque.focus();
            return;
        }
        else if(ao_form.new_marque.value == ao_form.marque.value){
            alert(ao_texts["regExp18"]);
            ao_form.new_marque.focus();
            return;        
        }
    }
    else if(ao_form.concerne.value == "autre"){
        if(ao_form.autre_modif.value == ""){
            alert(ao_texts["regExp17"]);
            ao_form.autre_modif.focus();
            return;
        }
    }
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP FORGOT CARBU
function regExpForgotCarbu(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(ao_form.marque.value == ""){
        alert(ao_texts["regExp4"]);
        ao_form.marque.focus();
        return;
    }
    
    if(ao_form.rue.value == ""){
        alert(ao_texts["regExp5"]);
        ao_form.rue.focus();
        return;
    }
    
    /*if(ao_form.numero.value == ""){
        alert(ao_texts["regExp6"]);
        ao_form.numero.focus();
        return;
    }*/
    
    if(ao_form.cp.value == ""){
        alert(ao_texts["regExp7"]);
        ao_form.cp.focus();
        return;
    }
    
    if(ao_form.localite.value == ""){
        alert(ao_texts["regExp8"]);
        ao_form.localite.focus();
        return;
    }
    
    if(ao_form.carbu_3){ // cas France
        if(!ao_form.carbu_3.checked && !ao_form.carbu_8.checked && !ao_form.carbu_2.checked && !ao_form.carbu_5.checked && !ao_form.carbu_1.checked && !ao_form.carbu_4.checked && !ao_form.carbu_7.checked){
            alert(ao_texts["regExp10"]);
            return;
        }
    }
    else{
        if(!ao_form.carbu_diesel.checked && !ao_form.carbu_95.checked && !ao_form.carbu_98.checked && !ao_form.carbu_lpg.checked){
            alert(ao_texts["regExp10"]);
            return;
        }
    }
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP SUP PO PRICE
function regExpSupPoPrice(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    /*if(ao_form.marque.value == ""){
        alert(ao_texts["regExp4"]);
        ao_form.marque.focus();
        return;
    }
    
    if(ao_form.rue.value == ""){
        alert(ao_texts["regExp5"]);
        ao_form.rue.focus();
        return;
    }
    
    if(ao_form.numero.value == ""){
        alert(ao_texts["regExp6"]);
        ao_form.numero.focus();
        return;
    }
    
    if(ao_form.cp.value == ""){
        alert(ao_texts["regExp7"]);
        ao_form.cp.focus();
        return;
    }
    
    if(ao_form.localite.value == ""){
        alert(ao_texts["regExp8"]);
        ao_form.localite.focus();
        return;
    }
    
    if(ao_form.prix_diesel.value == "" && ao_form.prix_95.value == "" && ao_form.prix_98.value == "" && ao_form.prix_lpg.value == ""){
        alert(ao_texts["regExp22"]);
        ao_form.prix_diesel.focus();
        return;
    }
    
    if(ao_form.prix_diesel.value != ""){    
        var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
        if (!filter.test(ao_form.prix_diesel.value)) {
            alert(ao_texts["regExp12"]);
            ao_form.prix_diesel.focus();
            return;
        }
    }
    
    if(ao_form.prix_95.value != ""){    
        var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
        if (!filter.test(ao_form.prix_95.value)) {
            alert(ao_texts["regExp13"]);
            ao_form.prix_95.focus();
            return;
        }
    }
    
    if(ao_form.prix_98.value != ""){    
        var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
        if (!filter.test(ao_form.prix_98.value)) {
            alert(ao_texts["regExp14"]);
            ao_form.prix_98.focus();
            return;
        }
    }
    
    if(ao_form.prix_lpg.value != ""){    
        var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
        if (!filter.test(ao_form.prix_lpg.value)) {
            alert(ao_texts["regExp15"]);
            ao_form.prix_lpg.focus();
            return;
        }
    }
    
    if(ao_form.date_releve.value == ""){
        alert(ao_texts["regExp20"]);
        ao_form.date_releve.focus();
        return;
    }
    if(ao_form.date_releve.value != ""){    
        var filter=/^(\d{2}\/{1}){2}\d{4}$/;
        if (!filter.test(ao_form.date_releve.value)) {
            alert(ao_texts["regExp21"]);
            ao_form.date_releve.focus();
            return;
        }
    }*/
    
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP ERROR PRICE
function regExpErrorPrice(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(!ao_form.error_prix[0].checked && !ao_form.error_prix[1].checked){
        alert(ao_texts["regExp23"]);
        return;
    }
    
    if(ao_form.error_prix[0].checked){
        if(!ao_form.encoded_by[0].checked && !ao_form.encoded_by[1].checked){
            alert(ao_texts["regExp36"]);
            return;
        }
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(ao_form.marque){
        if(ao_form.marque.value == ""){
            alert(ao_texts["regExp4"]);
            ao_form.marque.focus();
            return;
        }
        
        if(ao_form.rue.value == ""){
            alert(ao_texts["regExp5"]);
            ao_form.rue.focus();
            return;
        }
        
        /*if(ao_form.numero.value == ""){
            alert(ao_texts["regExp6"]);
            ao_form.numero.focus();
            return;
        }*/
        
        if(ao_form.cp.value == ""){
            alert(ao_texts["regExp7"]);
            ao_form.cp.focus();
            return;
        }
        
        if(ao_form.localite.value == ""){
            alert(ao_texts["regExp8"]);
            ao_form.localite.focus();
            return;
        }
    }
    
    /*if(ao_form.error_prix[1].checked){
        if(ao_form.prix_diesel.value == "" && ao_form.prix_95.value == "" && ao_form.prix_98.value == "" && ao_form.prix_lpg.value == ""){
            alert(ao_texts["regExp22"]);
            ao_form.prix_diesel.focus();
            return;
        }
        
        if(ao_form.prix_diesel.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_diesel.value)) {
                alert(ao_texts["regExp12"]);
                ao_form.prix_diesel.focus();
                return;
            }
        }
        
        if(ao_form.prix_95.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_95.value)) {
                alert(ao_texts["regExp13"]);
                ao_form.prix_95.focus();
                return;
            }
        }
        
        if(ao_form.prix_98.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_98.value)) {
                alert(ao_texts["regExp14"]);
                ao_form.prix_98.focus();
                return;
            }
        }
        
        if(ao_form.prix_lpg.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_lpg.value)) {
                alert(ao_texts["regExp15"]);
                ao_form.prix_lpg.focus();
                return;
            }
        }
        
        if(ao_form.date_releve.value == ""){
            alert(ao_texts["regExp20"]);
            ao_form.date_releve.focus();
            return;
        }
        if(ao_form.date_releve.value != ""){    
            var filter=/^(\d{2}\/{1}){2}\d{4}$/;
            if (!filter.test(ao_form.date_releve.value)) {
                alert(ao_texts["regExp21"]);
                ao_form.date_releve.focus();
                return;
            }
        }
    }
    else if(ao_form.error_prix[0].checked){
        if(ao_form.prix_diesel_correct.value == "" && ao_form.prix_95_correct.value == "" && ao_form.prix_98_correct.value == "" && ao_form.prix_lpg_correct.value == ""){
            alert(ao_texts["regExp22"]);
            ao_form.prix_diesel_correct.focus();
            return;
        }
        
        if(ao_form.prix_diesel_correct.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_diesel_correct.value)) {
                alert(ao_texts["regExp12"]);
                ao_form.prix_diesel_correct.focus();
                return;
            }
        }
        
        if(ao_form.prix_95_correct.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_95_correct.value)) {
                alert(ao_texts["regExp13"]);
                ao_form.prix_95_correct.focus();
                return;
            }
        }
        
        if(ao_form.prix_98_correct.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_98_correct.value)) {
                alert(ao_texts["regExp14"]);
                ao_form.prix_98_correct.focus();
                return;
            }
        }
        
        if(ao_form.prix_lpg_correct.value != ""){    
            var filter=/^\d{1}(\.|,){1}\d{1,3}$/;
            if (!filter.test(ao_form.prix_lpg_correct.value)) {
                alert(ao_texts["regExp15"]);
                ao_form.prix_lpg_correct.focus();
                return;
            }
        }
        
        if(ao_form.date_releve_correct.value == ""){
            alert(ao_texts["regExp20"]);
            ao_form.date_releve_correct.focus();
            return;
        }
        if(ao_form.date_releve_correct.value != ""){    
            var filter=/^(\d{2}\/{1}){2}\d{4}$/;
            if (!filter.test(ao_form.date_releve_correct.value)) {
                alert(ao_texts["regExp21"]);
                ao_form.date_releve_correct.focus();
                return;
            }
        }
    }*/
    
        
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP EDIT MAIL
function regExpEditEmail(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.old_email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.old_email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.old_email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.old_email.focus();
            return;
        }
    }
    
    if(ao_form.new_email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.new_email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.new_email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.new_email.focus();
            return;
        }
    }
    
    if(ao_form.new_email.value == ao_form.old_email.value){
        alert(ao_texts["regExp44"]);
        ao_form.new_email.focus();
        return;
    }    
        
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP OTHER INFO
function regExpOtherInfo(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(!ao_form.sujet[0].checked && !ao_form.sujet[1].checked){
        alert(ao_texts["regExp24"]);
        return;
    }
    
    if(ao_form.remarques.value == ""){
        alert(ao_texts["regExp25"]);
        ao_form.remarques.focus();
        return;
    }
    
        
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP ERROR CONNECTION
function regExpErrorConnection(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(!ao_form.contrib[0].checked && !ao_form.contrib[1].checked){
        alert(ao_texts["regExp26"]);
        return;
    }
    
    if(ao_form.contrib[0].checked){
        if(!ao_form.mail_recu[0].checked && !ao_form.mail_recu[1].checked){
            alert(ao_texts["regExp27"]);
            return;
        }
        
        if(!ao_form.message_erreur[0].checked && !ao_form.message_erreur[1].checked){
            alert(ao_texts["regExp28"]);
            return;
        }
    }
    else if(ao_form.contrib[1].checked){
        if(!ao_form.message_erreur[0].checked && !ao_form.message_erreur[1].checked){
            alert(ao_texts["regExp28"]);
            return;
        }
        
        if(ao_form.quand.value == ""){
            alert(ao_texts["regExp29"]);
            ao_form.quand.focus();
            return;
        }
        if(ao_form.quand.value != ""){    
            var filter=/^(\d{2}\/{1}){2}\d{4}$/;
            if (!filter.test(ao_form.quand.value)) {
                alert(ao_texts["regExp21"]);
                ao_form.quand.focus();
                return;
            }
        }
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(!ao_form.os[0].checked && !ao_form.os[1].checked && !ao_form.os[2].checked && !ao_form.os[3].checked){
        alert(ao_texts["regExp30"]);
        return;
    }
    
    if(!ao_form.browser[0].checked && !ao_form.browser[1].checked && !ao_form.browser[2].checked && !ao_form.browser[3].checked && !ao_form.browser[4].checked && !ao_form.browser[5].checked){
        alert(ao_texts["regExp31"]);
        return;
    }
    
    if(ao_form.browser[5].checked){
        if(ao_form.autre_browser.value == ""){
            alert(ao_texts["regExp32"]);
            ao_form.autre_browser.focus();
            return;
        }
    }
        
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP INFO BUG
function regExpInfoBug(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(ao_form.isPompiste[0].checked){
        if(ao_form.nom_pompiste.value == ""){
            alert(ao_texts["regExp37"]);
            ao_form.nom_pompiste.focus();
            return;
        }
        
        if(ao_form.tel_pompiste.value == ""){
            alert(ao_texts["regExp38"]);
            ao_form.tel_pompiste.focus();
            return;
        }
    }
    
    if(ao_form.section.value == ""){
        alert(ao_texts["regExp33"]);
        ao_form.section.focus();
        return;
    }
    
    if(ao_form.section.value == "autre" && ao_form.si_autre.value == ""){
        alert(ao_texts["regExp34"]);
        ao_form.si_autre.focus();
        return;
    }
    
    if(ao_form.quelle_erreur.value == ""){
        alert(ao_texts["regExp35"]);
        ao_form.quelle_erreur.focus();
        return;
    }
    
    if(ao_form.quand.value == ""){
        alert(ao_texts["regExp29"]);
        ao_form.quand.focus();
        return;
    }
    if(ao_form.quand.value != ""){    
        var filter=/^(\d{2}\/{1}){2}\d{4}$/;
        if (!filter.test(ao_form.quand.value)) {
            alert(ao_texts["regExp21"]);
            ao_form.quand.focus();
            return;
        }
    }
    
    if(!ao_form.os[0].checked && !ao_form.os[1].checked && !ao_form.os[2].checked && !ao_form.os[3].checked){
        alert(ao_texts["regExp30"]);
        return;
    }
    
    if(!ao_form.browser[0].checked && !ao_form.browser[1].checked && !ao_form.browser[2].checked && !ao_form.browser[3].checked && !ao_form.browser[4].checked && !ao_form.browser[5].checked){
        alert(ao_texts["regExp31"]);
        return;
    }
    
    if(ao_form.browser[5].checked){
        if(ao_form.autre_browser.value == ""){
            alert(ao_texts["regExp32"]);
            ao_form.autre_browser.focus();
            return;
        }
    }
        
    ao_form.action = "processContact.php";
    ao_form.submit();
}



// REG EXP IS POMPISTE
function regExpIsPompiste(ao_form){
    if(ao_form.email.value == ""){
        alert(ao_texts["regExp1"]);
        ao_form.email.focus();
        return;
    }
    else{    
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
        if (!filter.test(ao_form.email.value)) {
            alert(ao_texts["regExp11"]);
            ao_form.email.focus();
            return;
        }
    }
    
    if(ao_form.raison.value == ""){
        alert(ao_texts["regExp2"]);
        ao_form.raison.focus();
        return;
    }
    
    if(!ao_form.actionPompiste[0].checked && !ao_form.actionPompiste[1].checked && !ao_form.actionPompiste[2].checked && !ao_form.actionPompiste[3].checked && !ao_form.actionPompiste[4].checked){
        alert(ao_texts["regExp39"]);
        return;
    }
    
    if(ao_form.actionPompiste[0].checked){
        if(ao_form.pumpContact[1].checked && ao_form.pumpTel.value == ""){
            alert(ao_texts["regExp41"]);
            ao_form.pumpTel.focus();
            return;
        }
    }
    else if(ao_form.actionPompiste[1].checked){
        if(ao_form.fileConvertir.value == ""){
            alert(ao_texts["regExp42"]);
            return;
        }
    }
    else if(ao_form.actionPompiste[2].checked){
        if(ao_form.pumpNewEmail.value == ""){
            alert(ao_texts["regExp1"]);
            ao_form.pumpNewEmail.focus();
            return;
        }
        else{
            var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
            if (!filter.test(ao_form.pumpNewEmail.value)) {
                alert(ao_texts["regExp11"]);
                ao_form.pumpNewEmail.focus();
                return;
            }
        }
        
        if(ao_form.fileNewCompte.value == ""){
            alert(ao_texts["regExp42"]);
            return;
        }       
    }
    else if(ao_form.actionPompiste[3].checked){
        if(ao_form.pumpLogo.value == ""){
            alert(ao_texts["regExp43"]);
            return;
        }
        
        if(ao_form.fileLogo.value == ""){
            alert(ao_texts["regExp42"]);
            return;
        }
    }
    else if(ao_form.actionPompiste[4].checked){
        if(ao_form.autrePompiste.value == ""){
            alert(ao_texts["regExp40"]);
            ao_form.autrePompiste.focus();
            return;
        }
    }
        
    ao_form.action = "processContact.php";
    ao_form.submit();
}