var locationId_Array = new Array("(Indifférent)|0", new Array("EUROPE|268435456", new Array("Tous les Pays|268435456", new Array("FRANCE|272629760", new Array("Toutes les Régions|272629760", new Array("Alsace|272695296", new Array("Tous les Départements|272695296", "Bas Rhin (67)|272699392", "Haut Rhin (68)|272703488")), new Array("Aquitaine|272760832", new Array("Tous les Départements|272760832", "Dordogne (24)|272764928", "Gironde (33)|272769024", "Landes (40)|272773120", "Lot et Garonne (47)|272777216", "Pyrénées Atlantiques (64)|272781312")), new Array("Auvergne|272826368", new Array("Tous les Départements|272826368", "Allier (03)|272830464", "Cantal (15)|272834560", "Haute Loire (43)|272838656", "Puy de Dôme (63)|272842752")), new Array("Basse Normandie|272891904", new Array("Tous les Départements|272891904", "Calvados (14)|272896000", "Manche (50)|272900096", "Orne (61)|272904192")), new Array("Bourgogne|272957440", new Array("Tous les Départements|272957440", "Côte d'Or (21)|272961536", "Nièvre (58)|272965632", "Saône et Loire (71)|272969728", "Yonne (89)|272973824")), new Array("Bretagne|273022976", new Array("Tous les Départements|273022976", "Côtes d'Armor (22)|273027072", "Finistère (29)|273031168", "Ille et Vilaine (35)|273035264", "Morbihan (56)|273039360")), new Array("Centre|273088512", new Array("Tous les Départements|273088512", "Cher (18)|273092608", "Eure et Loir (28)|273096704", "Indre (36)|273100800", "Indre et Loire (37)|273104896", "Loir et Cher (41)|273108992", "Loiret (45)|273113088")), new Array("Champagne / Ardennes|273154048", new Array("Tous les Départements|273154048", "Ardennes (08)|273158144", "Aube (10)|273162240", "Haute Marne (52)|273166336", "Marne (51)|273170432")), new Array("Corse|273219584", new Array("Tous les Départements|273219584", "Corse du Sud (2A)|273223680", "Haute Corse (2b)|273227776")), new Array("Dom Tom|273285120", new Array("Tous les Départements|273285120", "Guadeloupe|273289216", "Guyane|273293312", "Martinique|273297408", "Réunion|273301504", "Nouvelle Calédonie|273305600")), new Array("Franche Comté|273350656", new Array("Tous les Départements|273350656", "Doubs (25)|273354752", "Haute Saône (70)|273358848", "Jura (39)|273362944", "Territoire de Belfort (90)|273367040")), new Array("Haute Normandie|273416192", new Array("Tous les Départements|273416192", "Eure (27)|273420288", "Seine Maritime (76)|273424384")), new Array("Ile de France|273481728", new Array("Tous les Départements|273481728", "Paris (75)|273485824", "Essonne (91)|273489920", "Hauts de Seine (92)|273494016", "Seine et Marne (77)|273498112", "Seine St Denis (93)|273502208", "Val de Marne (94)|273506304", "Val d'Oise (95)|273510400", "Yvelines (78)|273514496")), new Array("Languedoc Roussillon|273547264", new Array("Tous les Départements|273547264", "Aude (11)|273551360", "Gard (30)|273555456", "Hérault (34)|273559552", "Lozère (48)|273563648", "Pyrénées Orientales (66)|273567744")), new Array("Limousin|273612800", new Array("Tous les Départements|273612800", "Creuse (23)|273616896", "Corrèze (19)|273620992", "Haute Vienne (87)|273625088")), new Array("Lorraine|273678336", new Array("Tous les Départements|273678336", "Meurthe et Moselle (54)|273682432", "Meuse (55)|273686528", "Moselle (57)|273690624", "Vosges (88)|273694720")), new Array("Midi Pyrénées|273743872", new Array("Tous les Départements|273743872", "Ariège (09)|273747968", "Aveyron (12)|273752064", "Haute Garonne (31)|273756160", "Gers (32)|273760256", "Lot (46)|273764352", "Hautes Pyrénées (65)|273768448", "Tarn (81)|273772544", "Tarn et Garonne (82)|273776640")), new Array("Nord Pas de Calais|273809408", new Array("Tous les Départements|273809408", "Nord (59)|273813504", "Pas de Calais (62)|273817600")), new Array("Pays de la Loire|273874944", new Array("Tous les Départements|273874944", "Loire Atlantique (44)|273879040", "Maine et Loire (49)|273883136", "Mayenne (53)|273887232", "Sarthe (72)|273891328", "Vendée (85)|273895424")), new Array("Picardie|273940480", new Array("Tous les Départements|273940480", "Aisne (02)|273944576", "Oise (60)|273948672", "Somme (80)|273952768")), new Array("Poitou Charentes|274006016", new Array("Tous les Départements|274006016", "Charente (16)|274010112", "Charente Maritime (17)|274014208", "Deux Sèvres (79)|274018304", "Vienne (86)|274022400")), new Array("Provence Alpes Côte d'Azur|274071552", new Array("Tous les Départements|274071552", "Alpes de Haute Provence (04)|274075648", "Alpes Maritimes (06)|274079744", "Bouches du Rhône (13)|274083840", "Hautes Alpes (05)|274087936", "Var (83)|274092032", "Vaucluse (84)|274096128")), new Array("Rhône Alpes|274137088", new Array("Tous les Départements|274137088", "Ain (01)|274141184", "Ardèche (07)|274145280", "Drôme (26)|274149376", "Haute Savoie (74)|274153472", "Isère (38)|274157568", "Loire (42)|274161664", "Rhône (69)|274165760", "Savoie (73)|274169856")))), new Array("ALLEMAGNE|276824064", new Array("Tous les Länder|276824064", "Bade Wurtemberg|276889600", "Basse Saxe|276955136", "Bavière|277020672", "Berlin|277086208", "Brandebourg|277151744", "Brême|277217280", "Hambourg|277282816", "Hesse|277348352", "Mecklembourg Porémanie|277413888", "Rhénanie du Nord Westphalie|277479424", "Rhénanie Palatinat|277544960", "Sarre|277610496", "Saxe|277676032", "Saxe Anhalt|277741568", "Schleswig Holstein|277807104", "Thuringe|277872640")), new Array("AUTRICHE|281018368", new Array("Tous les Länder|281018368", "Basse Autriche|281083904", "Burgenland|281149440", "Carinthie|281214976", "Haute Autriche|281280512", "Salzbourg|281346048", "Styrie|281411584", "Tyrol|281477120", "Tyrol Oriental|281542656", "Vienne|281608192", "Vorarlberg|281673728")), new Array("BELGIQUE|285212672", new Array("Toutes les Régions|285212672", "Bruxelles|285278208", new Array("Flandres|285343744", new Array("Toutes les Sous-Régions|285343744", "Anvers|285347840", "Brabant Flamand|285351936", "Flandre Occidentale|285356032", "Flandre Orientale|285360128", "Limbourg|285364224")), new Array("Wallonie|285409280", new Array("Toutes les Sous-Régions|285409280", "Brabant Wallon|285413376", "Hainaut|285417472", "Liège|285421568", "Luxembourg|285425664", "Namur|285429760")))), new Array("ESPAGNE|289406976", new Array("Toutes les Régions|289406976", "Andalousie|289472512", "Aragon|289538048", "Asturies|289603584", "Baléares|289669120", "Cantabrie|289734656", "Castille et Léon|289800192", "Castille la Manche|289865728", "Catalogne|289931264", "Estrémadure|289996800", "Galice|290062336", "Iles Canaries|290127872", "Madrid|290193408", "Murcie|290258944", "Navarre|290324480", "Pays Basque|290390016", "Rioja|290455552", "Valence|290521088")), new Array("FINLANDE|293601280", new Array("Toutes les Régions|293601280", "Etelä Suomi|293666816", "Länsi Suomi|293732352", "Itä Suomi|293797888", "Oulu|293863424", "Laponie|293928960")), new Array("GRECE|297795584", new Array("Toutes les Régions|297795584", "Anatolie Macédoine Thrace|297861120", "Crète|297926656", "Egée nord|297992192", "Egée sud|298057728", "Epire|298123264", "Grand Athènes|298188800", "Grèce centrale et Eubée|298254336", "Grèce occidentale|298319872", "Iles Ioniennes|298385408", "Macédoine occidentale|298450944", "Macédoine centrale|298516480", "Péloponnèse|298582016", "Thessalie|298647552")), new Array("IRLANDE|301989888", new Array("Toutes les Régions|301989888", "Connaught|302055424", "Leinster|302120960", "Munster|302186496", "Ulster|302252032")), new Array("ITALIE|306184192", new Array("Toutes les Régions|306184192", "Abruzzes|306249728", "Basilicate|306315264", "Calabre|306380800", "Campanie|306446336", "Emilie Romane|306511872", "Frioul Vénétie Julienne|306577408", "Latium|306642944", "Ligurie|306708480", "Lombardie|306774016", "Marches|306839552", "Molise|306905088", "Ombrie|306970624", "Piémont|307036160", "Pouilles|307101696", "Sardaigne|307167232", "Sicile|307232768", "Toscane|307298304", "Trentin Haut Adige|307363840", "Val d'Aoste|307429376", "Vénétie|307494912")), new Array("PORTUGAL|310378496", new Array("Toutes les Régions|310378496", "Alentejo|310444032", "Algarve|310509568", "Centre|310575104", "Lisbonne Vallée du Tage|310640640", "Nord|310706176")), new Array("ROYAUME UNI|314572800", new Array("Toutes les Régions|314572800", new Array("Angleterre|314638336", new Array("Toutes les Sous Régions|314638336", "Est Anglie|314642432", "Midlands de l'Est|314646528", "Midlands de l'Ouest|314650624", "Nord|314654720", "Nord Ouest|314658816", "Sud Est|314662912", "Sud Ouest|314667008", "Yorkshire et Humberside|314671104")), "Ecosse|314703872", "Pays de Galle|314769408", "Irlande du Nord|314834944")), new Array("SUEDE|318767104", new Array("Toutes les Régions|318767104", "Alvsborg|318832640", "Blekinge|318898176", "Gävleborg|318963712", "Göteborg et Bohus|319029248", "Gotland|319094784", "Halland|319160320", "Jämtland|319225856", "Jönköping|319291392", "Kalmar|319356928", "Kopparberg|319422464", "Kristianstad|319488000", "Kronoberg|319553536", "Malmöhus|319619072", "Norrbotten|319684608", "Orebro|319750144", "Ostergötland|319815680", "Skaraborg|319881216", "Södermanland|319946752", "Stockholm|320012288", "Uppsala|320077824", "Värmland|320143360", "Västerbotten|320208896", "Västernorrland|320274432", "Västmanland|320339968")), "SUISSE|322961408", "ALBANIE|327155712", "ANDORRE|331350016", "BIELORUSSIE|335544320", "BOSNIE HERZ.|339738624", "BULGARIE|343932928", "CROATIE|348127232", "DANEMARK|352321536", "ESTONIE|356515840", "HONGRIE|360710144", "ISLANDE|364904448", "KOSOVO|369098752", "LETTONIE|373293056", "LIECHTENSTEIN|377487360", "LITUANIE|381681664", "LUXEMBOURG|385875968", "MACEDOINE|390070272", "MOLDAVIE|394264576", "MONACO|398458880", "NORVEGE|402653184", "PAYS BAS|406847488", "POLOGNE|411041792", "REP. TCHEQUE|415236096", "ROUMANIE|419430400", "SLOVAQUIE|423624704", "SLOVENIE|427819008", "UKRAINE|432013312", "YOUGOSLAVIE|436207616")), new Array("AMERIQUE DU NORD|536870912", new Array("Tous les Pays|536870912", "CANADA|541065216", "ETATS UNIS|545259520", "MEXIQUE|549453824")), new Array("AMERIQUE DU SUD|805306368", new Array("Tous les Pays|805306368", "ARGENTINE|809500672", "BOLIVIE|813694976", "BRESIL|817889280", "CHILI|822083584", "COLOMBIE|826277888", "EQUATEUR|830472192", "GUYANA|834666496", "PEROU|838860800", "SURINAM|843055104", "URUGUAY|847249408", "VENEZUELA|851443712")), new Array("AMERIQUE CENTRALE|1073741824", new Array("Tous les Pays|1073741824", new Array("CARAIBES|1077936128", new Array("Toutes les régions|1077936128", "HAITI|1078001664", "REP.DOMINICAINE|1078067200")), "COSTA RICA|1082130432", "GUATEMALA|1086324736", "HONDURAS|1090519040", "NICARAGUA|1094713344", "PANAMA|1098907648", "PARAGUAY|1103101952", "SALVADOR|1107296256")), new Array("OCEANIE|1342177280", new Array("Tous les Pays|1342177280", "AUSTRALIE|1346371584", "NOUVELLE ZELANDE|1350565888", "PAPOUASIE|1354760192")), new Array("AFRIQUE|1610612736", new Array("Tous les Pays|1610612736", "AFRIQUE DU SUD|1614807040", "ALGERIE|1619001344", "ANGOLA|1623195648", "BENIN|1627389952", "BURKINA FASO|1631584256", "BURUNDI|1635778560", "BOTSWANA|1639972864", "CAMEROUN|1644167168", "CONGO|1648361472", "COTE D'IVOIRE|1652555776", "DJIBOUTI|1656750080", "EGYPTE|1660944384", "ERYTHREE|1665138688", "ETHIOPIE|1669332992", "GABON|1673527296", "GAMBIE|1677721600", "GHANA|1681915904", "GUINEE|1686110208", "GUINEE BISSAU|1690304512", "KENYA|1694498816", "LIBERIA|1698693120", "LIBYE|1702887424", "MADAGASCAR|1707081728", "MALAWIE|1711276032", "MALI|1715470336", "MAROC|1719664640", "MAURITANIE|1723858944", "MOZAMBIQUE|1728053248", "NAMIBIE|1732247552", "NIGER|1736441856", "NIGERIA|1740636160", "OUGANDA|1744830464", "REP.CENTRAFRICAINE|1749024768", "REP.DEM.DU CONGO|1753219072", "RWANDA|1757413376", "SENEGAL|1761607680", "SIERRA LEONE|1765801984", "SOMALIE|1769996288", "SOUDAN|1774190592", "SWAZILAND|1778384896", "TANZANIE|1782579200", "TCHAD|1786773504", "TUNISIE|1790967808", "TOGO|1795162112", "ZAMBIE|1799356416", "CAP-VERT|1803550720", "COMORES|1807745024", "MAURICE|1811939328", "SEYCHELLES|1816133632")), new Array("ASIE|1879048192", new Array("Tous les Pays|1879048192", "AFGHANISTAN|1883242496", "ARABIE SAOUDITE|1887436800", "ARMENIE|1891631104", "AZERBAIDJAN|1895825408", "BANGLADESH|1900019712", "BIRMANIE|1904214016", "BOUTHAN|1908408320", "CAMBODGE|1912602624", "CHINE|1916796928", "COREE DU NORD|1920991232", "COREE DU SUD|1925185536", "EMIRATS ARABES UNIS|1929379840", "GEORGIE|1933574144", "HONG KONG|1937768448", "INDE|1941962752", "INDONESIE|1946157056", "IRAN|1950351360", "IRAK|1954545664", "ISRAEL|1958739968", "JAPON|1962934272", "JORDANIE|1967128576", "KAZAKHSTAN|1971322880", "KIRGHIZSTAN|1975517184", "KOWEIT|1979711488", "LAOS|1983905792", "LIBAN|1988100096", "MALAISIE|1992294400", "MONGOLIE|1996488704", "NEPAL|2000683008", "OMAN|2004877312", "OUZBEKISTAN|2009071616", "PAKISTAN|2013265920", "PHILIPINES|2017460224", "QATAR|2021654528", "RUSSIE|2025848832", "TADJIKISTAN|2030043136", "TAIWAN|2034237440", "THAILANDE|2038431744", "TURKMENISTAN|2042626048", "TURQUIE|2046820352", "VIETNAM|2051014656", "YEMEN|2055208960")));
var g_ns4 = (document.layers)? true:false;
var g_sAgent=navigator.userAgent.toLowerCase();
var g_ie = (g_sAgent.indexOf("msie") != -1);
var g_mac = (g_sAgent.indexOf("mac") != -1);
var g_bPosteInvalidate = false;
var g_bPosteSelect = false;
function KeChangeTreeSelect(select, treeArray)
{
var underscoreIndex = select.name.lastIndexOf('_');
var nIndex = select.options.selectedIndex;
if (underscoreIndex != -1)
{
var selectName = select.name.substr(0, underscoreIndex);
var depth = parseInt(select.name.substr(underscoreIndex + 1));
document.getElementById(selectName.replace('__', '.')).value=select.options[nIndex].value;
for (i = depth + 1 ; i <= 9 + 1; i++)
{
var sName = selectName + '_' + i.toString();
if (document.getElementById(sName))
KeDocument_GetElement_SetVisibility(sName, 'hidden');
}
if (nIndex >0)
{
var index = document.getElementById(selectName + '_0').options.selectedIndex;
var child = treeArray[index];
for(i = 1; i <= depth; i++)
{
var sName = selectName + '_' + i.toString();
var index = document.getElementById(sName).options.selectedIndex;
child = child[1][index];
}
KeSelectFillTreeOptions(selectName + '_' + (depth + 1), child[1]);
}
}
}
function KeSelectFillTreeOptions(sName, anArray)
{
if(anArray)
{
var aSelect = document.getElementById(sName);
KeSelect_ClearAll(aSelect);
for (i = 0; i< anArray.length;i++)
{
var element = anArray[i];
if (typeof(element) == "string")
{
var nIndex = element.indexOf("|");
if (nIndex > 0)
aSelect.options[i]=new Option(element.substr(0, nIndex), element.substr(nIndex + 1));
else
aSelect.options[i]=new Option(element, 0);
}
else
{
var nIndex = element[0].indexOf("|");
if (nIndex > 0)
aSelect.options[i]=new Option(element[0].substr(0, nIndex), element[0].substr(nIndex + 1));
else
aSelect.options[i]=new Option(element[0], 0);
}
}
if (g_ns4)
{
aSelect.length= anArray.length;
}
if (aSelect.length > 2)
{
KeDocument_GetElement_SetVisibility(sName, 'visible');
aSelect.options.selectedIndex = 0;
aSelect.focus();
}
else
{
KeDocument_GetElement_SetVisibility(sName, 'hidden');
}
}
}
function KePoste_LaiusAddLi(sLaius, sAdd)
{
var sRtn = "";
if (sAdd.length > 0)
{
if (sLaius.length > 0)
{
sRtn += "
";
}
sRtn += ((g_ns4)? " " : " ");
sRtn += sAdd;
}
return sRtn;
}
function KePoste_SpecialChar(sPoste)
{
var sRtn = "";
var nLength = g_sSpecialChars.length;
var sUnexpected = "";
for (n = g_sSpecialChars.length - 1; n >= 0; n--)
{
var nChar = g_sSpecialChars.charAt(n);
if (sPoste.indexOf(nChar) != -1)
{
if (sUnexpected.length > 0)
sUnexpected += " ";
sUnexpected += nChar;
}
}
if (sUnexpected.length > 1)
{
sRtn += g_sSpecialChars2a;
sRtn += " ";
sRtn += sUnexpected;
sRtn += " ";
sRtn += g_sSpecialChars2b;
}
else
{
if (sUnexpected.length > 0)
{
sRtn += g_sSpecialChars1a;
sRtn += "";
sRtn += sUnexpected;
sRtn += "";
sRtn += g_sSpecialChars1b;
}
}
return sRtn;
}
function KePoste_Female(sPoste)
{
var sRtn = "";
sPoste += " " ;
for (n=0; n < g_aFemale.length; n++)
{
var sSuffixe = g_aFemale[n];
if (sPoste.indexOf(sSuffixe) != -1)
{
sRtn += g_sFemale;
break;
}
}
return sRtn;
}
function KePoste_Article(sPoste)
{
var sRtn = "";
if (!KePoste_IsExpression(sPoste))
{
sPoste += " " ;
var sTempo = " " + sPoste;
for (n=0; n < g_aArticle.length; n++)
{
var sArticle = " " + g_aArticle[n] + " ";
if (sTempo.indexOf(sArticle) != -1)
{
sRtn += g_sArticle;
break;
}
}
}
return sRtn;
}
function KePoste_Words(sPoste)
{
var sRtn = "";
sRtn += g_sWord1;
if (g_mac)
sRtn += "
";
return sRtn;
}
function KePoste_IsExpression(sPoste)
{
var bRtn = false;
return bRtn;
}
function KePoste_GetIndexFromKeyValue()
{
var sKey = KeDocument_GetElement('keywordsOperande').value;
var nRtn = 0;
if (sKey == "OR")
nRtn = 1;
if (sKey == "STRING")
nRtn = 2;
return nRtn;
}
function KePoste_UpdateHelpMore(nIndex)
{
var sValue = document.getElementById('keywordsField').value;
var oKeyCompatibility = KeDocument_GetElement('keywordsOperande');
var oLayerHelpMore = KeDocument_GetElement('layerHelpMore');
if (nIndex != -1)
{
if (nIndex == 0)
{
oKeyCompatibility.value = "AND";
KeLayer_SetInnerHTML(oLayerHelpMore,KeHtml_SetCompatibleStyle(g_sWord2,'KeHelpMore'));
}
if (nIndex == 1)
{
oKeyCompatibility.value = "OR";
KeLayer_SetInnerHTML(oLayerHelpMore,KeHtml_SetCompatibleStyle(g_sWord3,'KeHelpMore'));
}
if (nIndex == 2)
{
oKeyCompatibility.value = "STRING";
KeLayer_SetInnerHTML(oLayerHelpMore,KeHtml_SetCompatibleStyle(g_sWord4a,'KeHelpMore'));
}
}
else
{
oKeyCompatibility.value = "AND";
KeLayer_SetInnerHTML(oLayerHelpMore,"");
}
}
function KePoste_InvalidateChange(bInvalidate)
{
g_bPosteInvalidate = bInvalidate;
}
function KePoste_Select(nIndex)
{
KeDocument_GetElement('selectPoste').options.selectedIndex = nIndex;
KePoste_UpdateHelpMore(nIndex);
}
function KePoste_GetDeclarationString(bWithClass)
{
var sSelect = " ";
return sSelect;
}
function KePoste_SelectShow(bShow)
{
if (!g_ns4)
{
var sSelect = "";
if (bShow == true)
sSelect = KePoste_GetDeclarationString(true);
KeLayer_SetInnerHTML(KeDocument_GetElement('layerHelpSelect'),sSelect);
}
if (bShow == true)
{
var nIndex = KePoste_GetIndexFromKeyValue();
KePoste_Select(nIndex)
}
g_bPosteSelect = bShow;
}
function KePoste_OnSelectChange()
{
var nIndex = KeDocument_GetElement('selectPoste').options.selectedIndex;
var sText = KeDocument_GetElement('selectPoste').options[nIndex].text;
var sPoste = document.getElementById('keywordsField').value;
sPoste = String_Trim(sPoste);
document.getElementById('keywordsField').value = sPoste;
KePoste_UpdateHelpMore(nIndex);
}
function String_Trim(str)
{
while (str.charAt(0) == ' ')
str = str.substring(1);
while (str.charAt(str.length - 1) == ' ')
str = str.substring(0, str.length - 1);
return str;
}
function KeHtml_SetCompatibleStyle(sString, sStyle)
{
if (g_ns4)
return ("
" + sString + "
"); else return sString; } function KePoste_OnKeyupHelp(sPoste, bWord) { var sLaius = ""; //var sLaius = "Vous venez de taper: '" + sPoste + "'