function change_languedevise(lb) {

var langue = "";
var deviso = "";
  
selection = lb.value;
langue = selection.substring(0,2);
deviso = selection.substring(3,6);
 
query = "l=" + langue + "&d=" + deviso + "&f=" + document.__submitForm.f.value + "&h=" + document.__submitForm.h.value;  

if (window.location.pathname.indexOf("rechartdefcrit.jsp") != -1) query += "&mode=" + document.__submitForm.mode.value;

if (window.location.pathname.indexOf("inscript.jsp") != -1) 
  query += "&as_cliid=" + document.__submitForm.as_cliid.value + "&as_fouid=" + document.__submitForm.as_fouid.value;
  
if (window.location.pathname.indexOf("cmde_aff.jsp") != -1) 
  query += "&cdeid=" + document.__submitForm.cdeid.value + "&fouid=" + document.__submitForm.fouid.value + "&cdefull=" + document.__submitForm.cdefull.value + "&date=" + document.__submitForm.date.value;
  
if (window.location.pathname.indexOf("cmde_suivi.jsp") != -1) 
  query += "&tri=" + document.__submitForm.tri.value + 
  "&displivrencours=" + document.__submitForm.displivrencours.value + 
  "&displivrpartiel=" + document.__submitForm.displivrpartiel.value + 
  "&displivrfacturee=" + document.__submitForm.displivrfacturee.value +
  "&datemode=" + document.__submitForm.datemode.value +
  "&datedeb=" + document.__submitForm.datedeb.value +
  "&datefin=" + document.__submitForm.datefin.value +
  "&colsqlfiltre=" + document.__submitForm.colsqlfiltre.value +
  "&operateur=" + document.__submitForm.operateur.value +
  "&saisie=" + document.__submitForm.saisie.value +
  "&as_fouid=" + document.__submitForm.as_fouid.value;

if (window.location.pathname.indexOf("cmde_suivi_nom.jsp") != -1) 
  query += "&tri=" + document.__submitForm.tri.value + 
  "&displivrencours=" + document.__submitForm.displivrencours.value + 
  "&displivrpartiel=" + document.__submitForm.displivrpartiel.value + 
  "&displivrfacturee=" + document.__submitForm.displivrfacturee.value +
  "&dispfacencours=" + document.__submitForm.dispfacencours.value + 
  "&dispfacpartiel=" + document.__submitForm.dispfacpartiel.value + 
  "&dispfacfacturee=" + document.__submitForm.dispfacfacturee.value +
  "&datemode=" + document.__submitForm.datemode.value +
  "&datedeb=" + document.__submitForm.datedeb.value +
  "&datefin=" + document.__submitForm.datefin.value +
  "&colsqlfiltre=" + document.__submitForm.colsqlfiltre.value +
  "&operateur=" + document.__submitForm.operateur.value +
  "&saisie=" + document.__submitForm.saisie.value +
  "&display=" + document.__submitForm.display.value;
  
if (window.location.pathname.indexOf("cmde_aff_nom.jsp") != -1) 
  query += "&fouid=" + document.__submitForm.fouid.value + 
  "&cdeid=" + document.__submitForm.cdeid.value + 
  "&cliid=" + document.__submitForm.cliid.value + 
  "&date=" + document.__submitForm.date.value +
  "&ref=" + document.__submitForm.ref.value;
  
if (window.location.pathname.indexOf("fact_suivi.jsp") != -1) 
  query += "&tri=" + document.__submitForm.tri.value + 
  "&regle=" + document.__submitForm.regle.value + 
  "&nonregle=" + document.__submitForm.nonregle.value + 
  "&datemode=" + document.__submitForm.datemode.value +
  "&datedeb=" + document.__submitForm.datedeb.value +
  "&datefin=" + document.__submitForm.datefin.value +
  "&colsqlfiltre=" + document.__submitForm.colsqlfiltre.value +
  "&operateur=" + document.__submitForm.operateur.value +
  "&saisie=" + document.__submitForm.saisie.value +
  "&foudisp=" + document.__submitForm.foudisp.value +
  "&clidisp=" + document.__submitForm.clidisp.value;
  
if (window.location.pathname.indexOf("cliinfo.jsp") != -1) 
  query += "&fouid=" + document.__submitForm.fouid.value + 
  "&cliid=" + document.__submitForm.cliid.value; 
  
if (window.location.pathname.indexOf("cliliste.jsp") != -1) 
  query += "&colsqlfiltre=" + document.__submitForm.colsqlfiltre.value + 
  "&operateur=" + document.__submitForm.operateur.value + 
  "&saisie=" + document.__submitForm.saisie.value + 
  "&tri=" + document.__submitForm.tri.value +
  "&cliid=" + document.__submitForm.cliid.value +
  "&display=" + document.__submitForm.display.value;
  
if (window.location.pathname.indexOf("activites.jsp") != -1) 
  query += "&type=" + document.__submitForm.type.value + 
  "&region=" + document.__submitForm.region.value + 
  "&dept=" + document.__submitForm.dept.value + 
  "&ville=" + document.__submitForm.ville.value +
  "&cpos=" + document.__submitForm.cpos.value +
  "&mode=" + document.__submitForm.mode.value;
  
if (window.location.pathname.indexOf("produits.jsp") != -1) 
  query += "&type=" + document.__submitForm.type.value + 
  "&mode=" + document.__submitForm.mode.value + 
  "&region=" + document.__submitForm.region.value +
  "&dept=" + document.__submitForm.dept.value +  
  "&ville=" + document.__submitForm.ville.value +  
  "&cpos=" + document.__submitForm.cpos.value +  
  "&activite=" + document.__submitForm.activite.value + 
  "&details=" + document.__submitForm.details.value + 
  "&level=" + document.__submitForm.level.value + 
  "&select_act=" + document.__submitForm.select_act.value + 
  "&select_geo=" + document.__submitForm.select_geo.value +
  "&cbx=" + document.__submitForm.cbx.value +
  "&saisie=" + document.__submitForm.saisie.value;
  
if (window.location.pathname.indexOf("rf_ville.jsp") != -1) 
  query += "&type=" + document.__submitForm.type.value + 
  "&region=" + document.__submitForm.region.value +
  "&dept=" + document.__submitForm.dept.value +  
  "&saisie=" + document.__submitForm.saisie.value +  
  "&tri=" + document.__submitForm.tri.value +  
  "&display=" + document.__submitForm.display.value;
  
if (window.location.pathname.indexOf("rfc_rgio.jsp") != -1) 
  query += "&region=" + document.__submitForm.region.value;
  
if (window.location.pathname.indexOf("rfc_dept.jsp") != -1) 
  query += "&region=" + document.__submitForm.region.value +
  "&dept=" + document.__submitForm.dept.value;
  
if (window.location.pathname.indexOf("rechartresult.jsp") != -1) 
  query += "&saisie=" + document.__submitForm.saisie.value + 
  "&activite=" + document.__submitForm.activite.value + 
  "&details=" + document.__submitForm.details.value +
  "&region=" + document.__submitForm.region.value +  
  "&ville=" + document.__submitForm.ville.value +  
  "&dept=" + document.__submitForm.dept.value +  
  "&mode=" + document.__submitForm.mode.value +
  "&tri=" + document.__submitForm.tri.value +
  "&display=" + document.__submitForm.display.value +
  "&fouid=" + document.__submitForm.fouid.value;

if (window.location.pathname.indexOf("four_lstartfam.jsp") != -1) 
  query += "&fouid=" + document.__submitForm.fouid.value + 
  "&fam=" + document.__submitForm.fam.value + 
  "&g=" + document.__submitForm.g.value +
  "&t=" + document.__submitForm.t.value +
  "&tri=" + document.__submitForm.tri.value +
  "&display=" + document.__submitForm.display.value;
  
if (window.location.pathname.indexOf("af_article.jsp") != -1) 
  query += "&fouid=" + document.__submitForm.fouid.value + 
  "&artcode=" + document.__submitForm.artcode.value;

if (window.location.pathname.indexOf("af_familles.jsp") != -1) 
  query += "&fouid=" + document.__submitForm.fouid.value;

if (window.location.pathname.indexOf("adlivraison.jsp") != -1) 
  query += "&cde=" + document.__submitForm.cde.value +
  "&fouid=" + document.__submitForm.fouid.value;
  
if (window.location.pathname.indexOf("adlivraison_new.jsp") != -1) 
  query += "&cde=" + document.__submitForm.cde.value +
  "&fouid=" + document.__submitForm.fouid.value;
  
if (window.location.pathname.indexOf("confirmation.jsp") != -1) 
  query += "&cde=" + document.__submitForm.cde.value +
  "&fouid=" + document.__submitForm.fouid.value;
  
if (window.location.pathname.indexOf("renseignsoc.jsp") != -1) 
  query += "&mode=" + document.__submitForm.mode.value;
  
if (window.location.pathname.indexOf("renseigninterl.jsp") != -1) 
  query += "&mode=" + document.__submitForm.mode.value +
  "&pays=" + document.__submitForm.pays.value;
  
if (window.location.pathname.indexOf("enregproddist.jsp") != -1) 
  query += "&mode=" + document.__submitForm.mode.value +
  "&activite=" + document.__submitForm.activite.value +
  "&details=" + document.__submitForm.details.value +
  "&cbx=" + document.__submitForm.cbx.value;
  
if (window.location.pathname.indexOf("fichesoc_ann.jsp") != -1) 
  query += "&fouid=" + document.__submitForm.fouid.value;
  
if (window.location.pathname.indexOf("rf_nom.jsp") != -1) 
  query += "&saisie=" + document.__submitForm.saisie.value +
  "&mode=" + document.__submitForm.mode.value +
  "&activite=" + document.__submitForm.activite.value +
  "&details=" + document.__submitForm.details.value +
  "&region=" + document.__submitForm.region.value +
  "&dept=" + document.__submitForm.dept.value +
  "&ville=" + document.__submitForm.ville.value +
  "&tri=" + document.__submitForm.tri.value +
  "&display=" + document.__submitForm.display.value +
  "&cbx=" + document.__submitForm.cbx.value;
 
 if (window.location.pathname.indexOf("compte.jsp") != -1) 
  query += "&mode=" + document.__submitForm.mode.value;
 
 if (window.location.pathname.indexOf("password.jsp") != -1) 
  query += "&m=" + document.__submitForm.m.value;
  
  location.href= window.location.pathname + "?" + query;
}

