function loadSouscat(value)
{
	if(value == '...')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 1;
			lmt.options[0].value = '...';
			lmt.options[0].text = '...';
		}
	}
	if(value == 'Animaux')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 8;
			lmt.options[0].value = 'Animaux de la ferme';
			lmt.options[0].text = 'Animaux de la ferme';
			lmt.options[1].value = 'Chiens et chats';
			lmt.options[1].text = 'Chiens et chats';
			lmt.options[2].value = 'Divers';
			lmt.options[2].text = 'Divers';
			lmt.options[3].value = 'Insectes';
			lmt.options[3].text = 'Insectes';
			lmt.options[4].value = 'Mammifères';
			lmt.options[4].text = 'Mammifères';
			lmt.options[5].value = 'Oiseaux';
			lmt.options[5].text = 'Oiseaux';
			lmt.options[6].value = 'Poissons';
			lmt.options[6].text = 'Poissons';
			lmt.options[7].value = 'Reptiles';
			lmt.options[7].text = 'Reptiles';
		}
	}
	if(value == 'Arts et Architecture')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 9;
			lmt.options[0].value = 'Art de rue';
			lmt.options[0].text = 'Art de rue';
			lmt.options[1].value = 'Autoroute';
			lmt.options[1].text = 'Autoroute';
			lmt.options[2].value = 'Détails';
			lmt.options[2].text = 'Détails';
			lmt.options[3].value = 'Divers';
			lmt.options[3].text = 'Divers';
			lmt.options[4].value = 'Habitations';
			lmt.options[4].text = 'Habitations';
			lmt.options[5].value = 'Lieux de culte';
			lmt.options[5].text = 'Lieux de culte';
			lmt.options[6].value = 'Ponts';
			lmt.options[6].text = 'Ponts';
			lmt.options[7].value = 'Sculpture';
			lmt.options[7].text = 'Sculpture';
			lmt.options[8].value = 'Urbanisme';
			lmt.options[8].text = 'Urbanisme';
		}
	}
	if(value == 'Carnets de voyage')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
lmt.options.length = 238; lmt.options[0].value = 'Afghanistan'; lmt.options[0].text = 'Afghanistan'; lmt.options[1].value = 'Afrique du Sud'; lmt.options[1].text = 'Afrique du Sud'; lmt.options[2].value = 'Albanie'; lmt.options[2].text = 'Albanie'; lmt.options[3].value = 'Algérie'; lmt.options[3].text = 'Algérie'; lmt.options[4].value = 'Allemagne'; lmt.options[4].text = 'Allemagne'; lmt.options[5].value = 'Andorre'; lmt.options[5].text = 'Andorre'; lmt.options[6].value = 'Angola'; lmt.options[6].text = 'Angola'; lmt.options[7].value = 'Anguilla'; lmt.options[7].text = 'Anguilla'; lmt.options[8].value = 'Antarctique'; lmt.options[8].text = 'Antarctique'; lmt.options[9].value = 'Antigua-et-Barbuda'; lmt.options[9].text = 'Antigua-et-Barbuda'; lmt.options[10].value = 'Antilles néerlandaises'; lmt.options[10].text = 'Antilles néerlandaises'; lmt.options[11].value = 'Arabie saoudite'; lmt.options[11].text = 'Arabie saoudite'; lmt.options[12].value = 'Argentine'; lmt.options[12].text = 'Argentine'; lmt.options[13].value = 'Arménie'; lmt.options[13].text = 'Arménie'; lmt.options[14].value = 'Aruba'; lmt.options[14].text = 'Aruba'; lmt.options[15].value = 'Australie'; lmt.options[15].text = 'Australie'; lmt.options[16].value = 'Autriche'; lmt.options[16].text = 'Autriche'; lmt.options[17].value = 'Azerbaïdjan'; lmt.options[17].text = 'Azerbaïdjan'; lmt.options[18].value = 'Bénin'; lmt.options[18].text = 'Bénin'; lmt.options[19].value = 'Bahamas'; lmt.options[19].text = 'Bahamas'; lmt.options[20].value = 'Bahreïn'; lmt.options[20].text = 'Bahreïn'; lmt.options[21].value = 'Bangladesh'; lmt.options[21].text = 'Bangladesh'; lmt.options[22].value = 'Barbade'; lmt.options[22].text = 'Barbade'; lmt.options[23].value = 'Belau'; lmt.options[23].text = 'Belau'; lmt.options[24].value = 'Belgique'; lmt.options[24].text = 'Belgique'; lmt.options[25].value = 'Belize'; lmt.options[25].text = 'Belize'; lmt.options[26].value = 'Bermudes'; lmt.options[26].text = 'Bermudes'; lmt.options[27].value = 'Bhoutan'; lmt.options[27].text = 'Bhoutan'; lmt.options[28].value = 'Biélorussie'; lmt.options[28].text = 'Biélorussie'; lmt.options[29].value = 'Birmanie'; lmt.options[29].text = 'Birmanie'; lmt.options[30].value = 'Bolivie'; lmt.options[30].text = 'Bolivie'; lmt.options[31].value = 'Bosnie-Herzégovine'; lmt.options[31].text = 'Bosnie-Herzégovine'; lmt.options[32].value = 'Botswana'; lmt.options[32].text = 'Botswana'; lmt.options[33].value = 'Brésil'; lmt.options[33].text = 'Brésil'; lmt.options[34].value = 'Brunei'; lmt.options[34].text = 'Brunei'; lmt.options[35].value = 'Bulgarie'; lmt.options[35].text = 'Bulgarie'; lmt.options[36].value = 'Burkina Faso'; lmt.options[36].text = 'Burkina Faso'; lmt.options[37].value = 'Burundi'; lmt.options[37].text = 'Burundi'; lmt.options[38].value = 'Côte d Ivoire'; lmt.options[38].text = 'Côte d Ivoire'; lmt.options[39].value = 'Cambodge'; lmt.options[39].text = 'Cambodge'; lmt.options[40].value = 'Cameroun'; lmt.options[40].text = 'Cameroun'; lmt.options[41].value = 'Canada'; lmt.options[41].text = 'Canada'; lmt.options[42].value = 'Cap-Vert'; lmt.options[42].text = 'Cap-Vert'; lmt.options[43].value = 'Chili'; lmt.options[43].text = 'Chili'; lmt.options[44].value = 'Chine'; lmt.options[44].text = 'Chine'; lmt.options[45].value = 'Chypre'; lmt.options[45].text = 'Chypre'; lmt.options[46].value = 'Colombie'; lmt.options[46].text = 'Colombie'; lmt.options[47].value = 'Comores'; lmt.options[47].text = 'Comores'; lmt.options[48].value = 'Congo'; lmt.options[48].text = 'Congo'; lmt.options[49].value = 'Corée du Nord'; lmt.options[49].text = 'Corée du Nord'; lmt.options[50].value = 'Corée du Sud'; lmt.options[50].text = 'Corée du Sud'; lmt.options[51].value = 'Costa Rica'; lmt.options[51].text = 'Costa Rica'; lmt.options[52].value = 'Croatie'; lmt.options[52].text = 'Croatie'; lmt.options[53].value = 'Cuba'; lmt.options[53].text = 'Cuba'; lmt.options[54].value = 'Danemark'; lmt.options[54].text = 'Danemark'; lmt.options[55].value = 'Djibouti'; lmt.options[55].text = 'Djibouti'; lmt.options[56].value = 'Dominique'; lmt.options[56].text = 'Dominique'; lmt.options[57].value = 'Égypte'; lmt.options[57].text = 'Égypte'; lmt.options[58].value = 'Émirats arabes unis'; lmt.options[58].text = 'Émirats arabes unis'; lmt.options[59].value = 'Équateur'; lmt.options[59].text = 'Équateur'; lmt.options[60].value = 'Érythrée'; lmt.options[60].text = 'Érythrée'; lmt.options[61].value = 'Espagne'; lmt.options[61].text = 'Espagne'; lmt.options[62].value = 'Estonie'; lmt.options[62].text = 'Estonie'; lmt.options[63].value = 'États-Unis'; lmt.options[63].text = 'États-Unis'; lmt.options[64].value = 'Éthiopie'; lmt.options[64].text = 'Éthiopie'; lmt.options[65].value = 'Finlande'; lmt.options[65].text = 'Finlande'; lmt.options[66].value = 'France'; lmt.options[66].text = 'France'; lmt.options[67].value = 'Géorgie'; lmt.options[67].text = 'Géorgie'; lmt.options[68].value = 'Gabon'; lmt.options[68].text = 'Gabon'; lmt.options[69].value = 'Gambie'; lmt.options[69].text = 'Gambie'; lmt.options[70].value = 'Ghana'; lmt.options[70].text = 'Ghana'; lmt.options[71].value = 'Gibraltar'; lmt.options[71].text = 'Gibraltar'; lmt.options[72].value = 'Grèce'; lmt.options[72].text = 'Grèce'; lmt.options[73].value = 'Grenade'; lmt.options[73].text = 'Grenade'; lmt.options[74].value = 'Groenland'; lmt.options[74].text = 'Groenland'; lmt.options[75].value = 'Guadeloupe'; lmt.options[75].text = 'Guadeloupe'; lmt.options[76].value = 'Guam'; lmt.options[76].text = 'Guam'; lmt.options[77].value = 'Guatemala'; lmt.options[77].text = 'Guatemala'; lmt.options[78].value = 'Guinée'; lmt.options[78].text = 'Guinée'; lmt.options[79].value = 'Guinée équatoriale'; lmt.options[79].text = 'Guinée équatoriale'; lmt.options[80].value = 'Guinée-Bissao'; lmt.options[80].text = 'Guinée-Bissao'; lmt.options[81].value = 'Guyana'; lmt.options[81].text = 'Guyana'; lmt.options[82].value = 'Guyane française'; lmt.options[82].text = 'Guyane française'; lmt.options[83].value = 'Haïti'; lmt.options[83].text = 'Haïti'; lmt.options[84].value = 'Honduras'; lmt.options[84].text = 'Honduras'; lmt.options[85].value = 'Hong Kong'; lmt.options[85].text = 'Hong Kong'; lmt.options[86].value = 'Hongrie'; lmt.options[86].text = 'Hongrie'; lmt.options[87].value = 'Ile Bouvet'; lmt.options[87].text = 'Ile Bouvet'; lmt.options[88].value = 'Ile Christmas'; lmt.options[88].text = 'Ile Christmas'; lmt.options[89].value = 'Ile Norfolk'; lmt.options[89].text = 'Ile Norfolk'; lmt.options[90].value = 'Iles Cayman'; lmt.options[90].text = 'Iles Cayman'; lmt.options[91].value = 'Iles Cook'; lmt.options[91].text = 'Iles Cook'; lmt.options[92].value = 'Iles Féroé'; lmt.options[92].text = 'Iles Féroé'; lmt.options[93].value = 'Iles Falkland'; lmt.options[93].text = 'Iles Falkland'; lmt.options[94].value = 'Iles Fidji'; lmt.options[94].text = 'Iles Fidji'; lmt.options[95].value = 'Iles Géorgie du Sud et Sandwich du Sud'; lmt.options[95].text = 'Iles Géorgie du Sud et Sandwich du Sud'; lmt.options[96].value = 'Iles Heard et McDonald'; lmt.options[96].text = 'Iles Heard et McDonald'; lmt.options[97].value = 'Iles Marshall'; lmt.options[97].text = 'Iles Marshall'; lmt.options[98].value = 'Iles Pitcairn'; lmt.options[98].text = 'Iles Pitcairn'; lmt.options[99].value = 'Iles Salomon'; lmt.options[99].text = 'Iles Salomon'; lmt.options[100].value = 'Iles Svalbard et Jan Mayen'; lmt.options[100].text = 'Iles Svalbard et Jan Mayen'; lmt.options[101].value = 'Iles Turks-et-Caicos'; lmt.options[101].text = 'Iles Turks-et-Caicos'; lmt.options[102].value = 'Iles Vierges américaines'; lmt.options[102].text = 'Iles Vierges américaines'; lmt.options[103].value = 'Iles Vierges britanniques'; lmt.options[103].text = 'Iles Vierges britanniques'; lmt.options[104].value = 'Iles des Cocos (Keeling)'; lmt.options[104].text = 'Iles des Cocos (Keeling)'; lmt.options[105].value = 'Iles mineures éloignées des États-Unis'; lmt.options[105].text = 'Iles mineures éloignées des États-Unis'; lmt.options[106].value = 'Inde'; lmt.options[106].text = 'Inde'; lmt.options[107].value = 'Indonésie'; lmt.options[107].text = 'Indonésie'; lmt.options[108].value = 'Iran'; lmt.options[108].text = 'Iran'; lmt.options[109].value = 'Iraq'; lmt.options[109].text = 'Iraq'; lmt.options[110].value = 'Irlande'; lmt.options[110].text = 'Irlande'; lmt.options[111].value = 'Islande'; lmt.options[111].text = 'Islande'; lmt.options[112].value = 'Israël'; lmt.options[112].text = 'Israël'; lmt.options[113].value = 'Italie'; lmt.options[113].text = 'Italie'; lmt.options[114].value = 'Jamaïque'; lmt.options[114].text = 'Jamaïque'; lmt.options[115].value = 'Japon'; lmt.options[115].text = 'Japon'; lmt.options[116].value = 'Jordanie'; lmt.options[116].text = 'Jordanie'; lmt.options[117].value = 'Kazakhstan'; lmt.options[117].text = 'Kazakhstan'; lmt.options[118].value = 'Kenya'; lmt.options[118].text = 'Kenya'; lmt.options[119].value = 'Kirghizistan'; lmt.options[119].text = 'Kirghizistan'; lmt.options[120].value = 'Kiribati'; lmt.options[120].text = 'Kiribati'; lmt.options[121].value = 'Koweït'; lmt.options[121].text = 'Koweït'; lmt.options[122].value = 'Laos'; lmt.options[122].text = 'Laos'; lmt.options[123].value = 'Lesotho'; lmt.options[123].text = 'Lesotho'; lmt.options[124].value = 'Lettonie'; lmt.options[124].text = 'Lettonie'; lmt.options[125].value = 'Liban'; lmt.options[125].text = 'Liban'; lmt.options[126].value = 'Liberia'; lmt.options[126].text = 'Liberia'; lmt.options[127].value = 'Libye'; lmt.options[127].text = 'Libye'; lmt.options[128].value = 'Liechtenstein'; lmt.options[128].text = 'Liechtenstein'; lmt.options[129].value = 'Lituanie'; lmt.options[129].text = 'Lituanie'; lmt.options[130].value = 'Luxembourg'; lmt.options[130].text = 'Luxembourg'; lmt.options[131].value = 'Macao'; lmt.options[131].text = 'Macao'; lmt.options[132].value = 'Madagascar'; lmt.options[132].text = 'Madagascar'; lmt.options[133].value = 'Malaisie'; lmt.options[133].text = 'Malaisie'; lmt.options[134].value = 'Malawi'; lmt.options[134].text = 'Malawi'; lmt.options[135].value = 'Maldives'; lmt.options[135].text = 'Maldives'; lmt.options[136].value = 'Mali'; lmt.options[136].text = 'Mali'; lmt.options[137].value = 'Malte'; lmt.options[137].text = 'Malte'; lmt.options[138].value = 'Mariannes du Nord'; lmt.options[138].text = 'Mariannes du Nord'; lmt.options[139].value = 'Maroc'; lmt.options[139].text = 'Maroc'; lmt.options[140].value = 'Martinique'; lmt.options[140].text = 'Martinique'; lmt.options[141].value = 'Maurice'; lmt.options[141].text = 'Maurice'; lmt.options[142].value = 'Mauritanie'; lmt.options[142].text = 'Mauritanie'; lmt.options[143].value = 'Mayotte'; lmt.options[143].text = 'Mayotte'; lmt.options[144].value = 'Mexique'; lmt.options[144].text = 'Mexique'; lmt.options[145].value = 'Micronésie'; lmt.options[145].text = 'Micronésie'; lmt.options[146].value = 'Moldavie'; lmt.options[146].text = 'Moldavie'; lmt.options[147].value = 'Monaco'; lmt.options[147].text = 'Monaco'; lmt.options[148].value = 'Mongolie'; lmt.options[148].text = 'Mongolie'; lmt.options[149].value = 'Montserrat'; lmt.options[149].text = 'Montserrat'; lmt.options[150].value = 'Mozambique'; lmt.options[150].text = 'Mozambique'; lmt.options[151].value = 'Népal'; lmt.options[151].text = 'Népal'; lmt.options[152].value = 'Namibie'; lmt.options[152].text = 'Namibie'; lmt.options[153].value = 'Nauru'; lmt.options[153].text = 'Nauru'; lmt.options[154].value = 'Nicaragua'; lmt.options[154].text = 'Nicaragua'; lmt.options[155].value = 'Niger'; lmt.options[155].text = 'Niger'; lmt.options[156].value = 'Nigeria'; lmt.options[156].text = 'Nigeria'; lmt.options[157].value = 'Nioué'; lmt.options[157].text = 'Nioué'; lmt.options[158].value = 'Norvège'; lmt.options[158].text = 'Norvège'; lmt.options[159].value = 'Nouvelle-Calédonie'; lmt.options[159].text = 'Nouvelle-Calédonie'; lmt.options[160].value = 'Nouvelle-Zélande'; lmt.options[160].text = 'Nouvelle-Zélande'; lmt.options[161].value = 'Oman'; lmt.options[161].text = 'Oman'; lmt.options[162].value = 'Ouganda'; lmt.options[162].text = 'Ouganda'; lmt.options[163].value = 'Ouzbékistan'; lmt.options[163].text = 'Ouzbékistan'; lmt.options[164].value = 'Pérou'; lmt.options[164].text = 'Pérou'; lmt.options[165].value = 'Pakistan'; lmt.options[165].text = 'Pakistan'; lmt.options[166].value = 'Panama'; lmt.options[166].text = 'Panama'; lmt.options[167].value = 'Papouasie-Nouvelle-Guinée'; lmt.options[167].text = 'Papouasie-Nouvelle-Guinée'; lmt.options[168].value = 'Paraguay'; lmt.options[168].text = 'Paraguay'; lmt.options[169].value = 'Pays-Bas'; lmt.options[169].text = 'Pays-Bas'; lmt.options[170].value = 'Philippines'; lmt.options[170].text = 'Philippines'; lmt.options[171].value = 'Pologne'; lmt.options[171].text = 'Pologne'; lmt.options[172].value = 'Polynésie française'; lmt.options[172].text = 'Polynésie française'; lmt.options[173].value = 'Porto Rico'; lmt.options[173].text = 'Porto Rico'; lmt.options[174].value = 'Portugal'; lmt.options[174].text = 'Portugal'; lmt.options[175].value = 'Qatar'; lmt.options[175].text = 'Qatar'; lmt.options[176].value = 'République centrafricaine'; lmt.options[176].text = 'République centrafricaine'; lmt.options[177].value = 'République démocratique du Congo'; lmt.options[177].text = 'République démocratique du Congo'; lmt.options[178].value = 'République dominicaine'; lmt.options[178].text = 'République dominicaine'; lmt.options[179].value = 'République tchèque'; lmt.options[179].text = 'République tchèque'; lmt.options[180].value = 'Réunion'; lmt.options[180].text = 'Réunion'; lmt.options[181].value = 'Roumanie'; lmt.options[181].text = 'Roumanie'; lmt.options[182].value = 'Royaume-Uni'; lmt.options[182].text = 'Royaume-Uni'; lmt.options[183].value = 'Russie'; lmt.options[183].text = 'Russie'; lmt.options[184].value = 'Rwanda'; lmt.options[184].text = 'Rwanda'; lmt.options[185].value = 'Sénégal'; lmt.options[185].text = 'Sénégal'; lmt.options[186].value = 'Sahara occidental'; lmt.options[186].text = 'Sahara occidental'; lmt.options[187].value = 'Saint-Christophe-et-Niévès'; lmt.options[187].text = 'Saint-Christophe-et-Niévès'; lmt.options[188].value = 'Saint-Marin'; lmt.options[188].text = 'Saint-Marin'; lmt.options[189].value = 'Saint-Pierre-et-Miquelon'; lmt.options[189].text = 'Saint-Pierre-et-Miquelon'; lmt.options[190].value = 'Saint-Siège '; lmt.options[190].text = 'Saint-Siège '; lmt.options[191].value = 'Saint-Vincent-et-les-Grenadines'; lmt.options[191].text = 'Saint-Vincent-et-les-Grenadines'; lmt.options[192].value = 'Sainte-Hélène'; lmt.options[192].text = 'Sainte-Hélène'; lmt.options[193].value = 'Sainte-Lucie'; lmt.options[193].text = 'Sainte-Lucie'; lmt.options[194].value = 'Salvador'; lmt.options[194].text = 'Salvador'; lmt.options[195].value = 'Samoa'; lmt.options[195].text = 'Samoa'; lmt.options[196].value = 'Samoa américaines'; lmt.options[196].text = 'Samoa américaines'; lmt.options[197].value = 'Sao Tomé-et-Principe'; lmt.options[197].text = 'Sao Tomé-et-Principe'; lmt.options[198].value = 'Seychelles'; lmt.options[198].text = 'Seychelles'; lmt.options[199].value = 'Sierra Leone'; lmt.options[199].text = 'Sierra Leone'; lmt.options[200].value = 'Singapour'; lmt.options[200].text = 'Singapour'; lmt.options[201].value = 'Slovénie'; lmt.options[201].text = 'Slovénie'; lmt.options[202].value = 'Slovaquie'; lmt.options[202].text = 'Slovaquie'; lmt.options[203].value = 'Somalie'; lmt.options[203].text = 'Somalie'; lmt.options[204].value = 'Soudan'; lmt.options[204].text = 'Soudan'; lmt.options[205].value = 'Sri Lanka'; lmt.options[205].text = 'Sri Lanka'; lmt.options[206].value = 'Suède'; lmt.options[206].text = 'Suède'; lmt.options[207].value = 'Suisse'; lmt.options[207].text = 'Suisse'; lmt.options[208].value = 'Suriname'; lmt.options[208].text = 'Suriname'; lmt.options[209].value = 'Swaziland'; lmt.options[209].text = 'Swaziland'; lmt.options[210].value = 'Syrie'; lmt.options[210].text = 'Syrie'; lmt.options[211].value = 'Taïwan'; lmt.options[211].text = 'Taïwan'; lmt.options[212].value = 'Tadjikistan'; lmt.options[212].text = 'Tadjikistan'; lmt.options[213].value = 'Tanzanie'; lmt.options[213].text = 'Tanzanie'; lmt.options[214].value = 'Tchad'; lmt.options[214].text = 'Tchad'; lmt.options[215].value = 'Terres australes françaises'; lmt.options[215].text = 'Terres australes françaises'; lmt.options[216].value = 'Territoire britannique de l Océan Indien'; lmt.options[216].text = 'Territoire britannique de l Océan Indien'; lmt.options[217].value = 'Thaïlande'; lmt.options[217].text = 'Thaïlande'; lmt.options[218].value = 'Timor Oriental'; lmt.options[218].text = 'Timor Oriental'; lmt.options[219].value = 'Togo'; lmt.options[219].text = 'Togo'; lmt.options[220].value = 'Tokélaou'; lmt.options[220].text = 'Tokélaou'; lmt.options[221].value = 'Tonga'; lmt.options[221].text = 'Tonga'; lmt.options[222].value = 'Trinité-et-Tobago'; lmt.options[222].text = 'Trinité-et-Tobago'; lmt.options[223].value = 'Tunisie'; lmt.options[223].text = 'Tunisie'; lmt.options[224].value = 'Turkménistan'; lmt.options[224].text = 'Turkménistan'; lmt.options[225].value = 'Turquie'; lmt.options[225].text = 'Turquie'; lmt.options[226].value = 'Tuvalu'; lmt.options[226].text = 'Tuvalu'; lmt.options[227].value = 'Ukraine'; lmt.options[227].text = 'Ukraine'; lmt.options[228].value = 'Uruguay'; lmt.options[228].text = 'Uruguay'; lmt.options[229].value = 'Vanuatu'; lmt.options[229].text = 'Vanuatu'; lmt.options[230].value = 'Venezuela'; lmt.options[230].text = 'Venezuela'; lmt.options[231].value = 'Viêt Nam'; lmt.options[231].text = 'Viêt Nam'; lmt.options[232].value = 'Wallis-et-Futuna'; lmt.options[232].text = 'Wallis-et-Futuna'; lmt.options[233].value = 'Yémen'; lmt.options[233].text = 'Yémen'; lmt.options[234].value = 'Yougoslavie'; lmt.options[234].text = 'Yougoslavie'; lmt.options[235].value = 'Zambie'; lmt.options[235].text = 'Zambie'; lmt.options[236].value = 'Zimbabwe'; lmt.options[236].text = 'Zimbabwe'; lmt.options[237].value = 'ex-République yougoslave de Macédoine'; lmt.options[237].text = 'ex-République yougoslave de Macédoine'; 
		}
	}
	if(value == 'Divers')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 13;
			lmt.options[0].value = 'Alimentation';
			lmt.options[0].text = 'Alimentation';
			lmt.options[1].value = 'Appareils Photo';
			lmt.options[1].text = 'Appareils Photo';
			lmt.options[2].value = 'Divers';
			lmt.options[2].text = 'Divers';
			lmt.options[3].value = 'Effets de Style';
			lmt.options[3].text = 'Effets de Style';
			lmt.options[4].value = 'Hightech';
			lmt.options[4].text = 'Hightech';
			lmt.options[5].value = 'Inclassable';
			lmt.options[5].text = 'Inclassable';
			lmt.options[6].value = 'Insolite';
			lmt.options[6].text = 'Insolite';
			lmt.options[7].value = 'Jeux d\'enfants';
			lmt.options[7].text = 'Jeux d\'enfants';
			lmt.options[8].value = 'Objets';
			lmt.options[8].text = 'Objets';
			lmt.options[9].value = 'Portraits';
			lmt.options[9].text = 'Portraits';
			lmt.options[10].value = 'Scènes de vie';
			lmt.options[10].text = 'Scènes de vie';
			lmt.options[11].value = 'Sport';
			lmt.options[11].text = 'Sport';
			lmt.options[12].value = 'Textures';
			lmt.options[12].text = 'Textures';
		}
	}
	if(value == 'En France')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 22;
			lmt.options[0].value = 'Alsace';
			lmt.options[0].text = 'Alsace';
			lmt.options[1].value = 'Aquitaine';
			lmt.options[1].text = 'Aquitaine';
			lmt.options[2].value = 'Auvergne';
			lmt.options[2].text = 'Auvergne';
			lmt.options[3].value = 'Basse Normandie';
			lmt.options[3].text = 'Basse Normandie';
			lmt.options[4].value = 'Bourgogne';
			lmt.options[4].text = 'Bourgogne';
			lmt.options[5].value = 'Bretagne';
			lmt.options[5].text = 'Bretagne';
			lmt.options[6].value = 'Centre';
			lmt.options[6].text = 'Centre';
			lmt.options[7].value = 'Champagne Ardenne';
			lmt.options[7].text = 'Champagne Ardenne';
			lmt.options[8].value = 'Corse';
			lmt.options[8].text = 'Corse';
			lmt.options[9].value = 'Franche Comte';
			lmt.options[9].text = 'Franche Comte';
			lmt.options[10].value = 'Haute Normandie';
			lmt.options[10].text = 'Haute Normandie';
			lmt.options[11].value = 'Ile de France';
			lmt.options[11].text = 'Ile de France';
			lmt.options[12].value = 'Languedoc Roussillon';
			lmt.options[12].text = 'Languedoc Roussillon';
			lmt.options[13].value = 'Limousin';
			lmt.options[13].text = 'Limousin';
			lmt.options[14].value = 'Lorraine';
			lmt.options[14].text = 'Lorraine';
			lmt.options[15].value = 'Midi-Pyrénées';
			lmt.options[15].text = 'Midi-Pyrénées';
			lmt.options[16].value = 'Nord Pas de Calais';
			lmt.options[16].text = 'Nord Pas de Calais';
			lmt.options[17].value = 'P.A.C.A';
			lmt.options[17].text = 'P.A.C.A';
			lmt.options[18].value = 'Pays de la Loire';
			lmt.options[18].text = 'Pays de la Loire';
			lmt.options[19].value = 'Picardie';
			lmt.options[19].text = 'Picardie';
			lmt.options[20].value = 'Poitou Charente';
			lmt.options[20].text = 'Poitou Charente';
			lmt.options[21].value = 'Rhone Alpes';
			lmt.options[21].text = 'Rhone Alpes';	
			
		}
	}
	if(value == 'Evènements divers')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 1;
			lmt.options[0].value = 'A préciser dans votre commentaire';
			lmt.options[0].text = 'A préciser dans votre commentaire';
		}
	}
	if(value == 'Flore et Paysage')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 7;
			lmt.options[0].value = 'Allées et Chemins';
			lmt.options[0].text = 'Allées et Chemins';
			lmt.options[1].value = 'Arbres et Arbustes';
			lmt.options[1].text = 'Arbres et Arbustes';
			lmt.options[2].value = 'Divers';
			lmt.options[2].text = 'Divers';
			lmt.options[3].value = 'Fleurs';
			lmt.options[3].text = 'Fleurs';
			lmt.options[4].value = 'Fruits et Légumes';
			lmt.options[4].text = 'Fruits et Légumes';
			lmt.options[5].value = 'Lacs';
			lmt.options[5].text = 'Lacs';
			lmt.options[6].value = 'Paysages';
			lmt.options[6].text = 'Paysages';
		}
	}
	if(value == 'Monde de la Musique')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 3;
			lmt.options[0].value = 'Concerts';
			lmt.options[0].text = 'Concerts';
			lmt.options[1].value = 'Instruments';
			lmt.options[1].text = 'Instruments';
			lmt.options[2].value = 'Divers';
			lmt.options[2].text = 'Divers';
		}
	}
	if(value == 'Noir et blanc')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 7;
			lmt.options[0].value = 'Divers';
			lmt.options[0].text = 'Divers';
			lmt.options[1].value = 'Luminaire';
			lmt.options[1].text = 'Luminaire';
			lmt.options[2].value = 'Paysage';
			lmt.options[2].text = 'Paysage';
			lmt.options[3].value = 'Portraits';
			lmt.options[3].text = 'Portraits';
			lmt.options[4].value = 'Scènes de vie';
			lmt.options[4].text = 'Scènes de vie';
			lmt.options[5].value = 'Transports';
			lmt.options[5].text = 'Transports';
			lmt.options[6].value = 'Urbanisme';
			lmt.options[6].text = 'Urbanisme';
		}
	}
	if(value == 'Photos de nuit')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 8;
			lmt.options[0].value = 'Ciel du matin';
			lmt.options[0].text = 'Ciel du matin';
			lmt.options[1].value = 'Ciel du soir';
			lmt.options[1].text = 'Ciel du soir';
			lmt.options[2].value = 'Divers';
			lmt.options[2].text = 'Divers';
			lmt.options[3].value = 'En voiture';
			lmt.options[3].text = 'En voiture';
			lmt.options[4].value = 'Inclassable';
			lmt.options[4].text = 'Inclassable';
			lmt.options[5].value = 'On The Floor';
			lmt.options[5].text = 'On The Floor';
			lmt.options[6].value = 'Paysage';
			lmt.options[6].text = 'Paysage';
			lmt.options[7].value = 'Périphérique';
			lmt.options[7].text = 'Périphérique';
		}
	}
	if(value == 'Signalétique')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 5;
			lmt.options[0].value = 'Code de la route';
			lmt.options[0].text = 'Code de la route';
			lmt.options[1].value = 'Divers';
			lmt.options[1].text = 'Divers';
			lmt.options[2].value = 'Enseignes';
			lmt.options[2].text = 'Enseignes';
			lmt.options[3].value = 'Logos';
			lmt.options[3].text = 'Logos';
			lmt.options[4].value = 'Panneaux de rue';
			lmt.options[4].text = 'Panneaux de rue';
		}
	}
	if(value == 'Transports')
	{
		lmt = document.getElementById('souscat');
		if(lmt)
		{
			lmt.options.length = 8;
			lmt.options[0].value = '2 Roues';
			lmt.options[0].text = '2 Roues';
			lmt.options[1].value = 'Automobiles';
			lmt.options[1].text = 'Automobiles';
			lmt.options[2].value = 'Aviation';
			lmt.options[2].text = 'Aviation';
			lmt.options[3].value = 'Bateaux';
			lmt.options[3].text = 'Bateaux';
			lmt.options[4].value = 'Camions';
			lmt.options[4].text = 'Camions';
			lmt.options[5].value = 'Divers';
			lmt.options[5].text = 'Divers';
			lmt.options[6].value = 'Sport Automobile';
			lmt.options[6].text = 'Sport Automobile';
			lmt.options[7].value = 'Trains';
			lmt.options[7].text = 'Trains';
		}
	}
}

function monVote(vote, filevote, photo)
{
	var url = 'func/aff_photo.php';
	var parvote = 'vote='+vote;
	var parfilevote = '&filevote='+filevote;
	var parphoto = '&photo='+photo;
	var pars = parvote + parfilevote + parphoto;
	
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function monVoteAlb(vote, filevote, photo)
{
	var url = 'func/aff_photo_ssid.php';
	var parvote = 'vote='+vote;
	var parfilevote = '&filevote='+filevote;
	var parphoto = '&photo='+photo;
	var pars = parvote + parfilevote + parphoto;
	
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function nousAvertir(avertirpix, photo)
{
	var url = 'func/aff_photo.php';
	var paravertir = 'avertirpix='+avertirpix;
	var parphoto = '&photo='+photo;
	var pars = paravertir + parphoto;

	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}


function nextPage(page, recherche, categorie, souscategorie)
{
	var url = 'func/aff_galerie.php';
	
	var parpage = 'page='+page;
	var parrecherche = '&recherche='+recherche;
	var parcategorie = '&categorie='+categorie;
	var parsouscategorie = '&souscategorie='+souscategorie;
	var pars = parpage + parrecherche + parcategorie + parsouscategorie;
	
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function nextPageAlb(page, ssid)
{
	var url = 'func/aff_galerie_ssid.php';
	
	var parpage = 'page='+page;
	var parssid = '&ssid='+ssid;
	var pars = parpage + parssid;
	
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function nextPageModAlb(page)
{
	var url = 'func/aff_modphotos.php';
	
	var pars = 'page='+page;
	
	var target = 'modPhotos';
	document.getElementById('modPhotos').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function nextPageModPix(page)
{
	var url = 'func/aff_modphotos_v2.php';
	
	var pars = 'page='+page;
	
	var target = 'modPhotos';
	document.getElementById('modPhotos').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function nextPageRestorePix(page)
{
	var url = 'func/aff_restorephotos_v2.php';
	
	var pars = 'page='+page;
	
	var target = 'modPhotos';
	document.getElementById('modPhotos').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function nextPageSupprPix(page)
{
	var url = 'func/aff_supprphotos_v2.php';
	
	var pars = 'page='+page;
	
	var target = 'modPhotos';
	document.getElementById('modPhotos').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function affPhoto(photo)
{
	var url = 'func/aff_photo.php';
	var pars = 'photo='+photo;
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function affPhotoAlb(photo)
{
	var url = 'func/aff_photo_ssid.php';
	var pars = 'photo='+photo;
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function maRecherche(form)
{
	var url = 'func/aff_galerie.php';
	var pars = 'recherche='+form.nomrecherche.value;
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function monFiltre(form)
{
	var url = 'func/aff_galerie.php';
	var pars = 'categorie='+form.selectsection.value+'&souscategorie='+form.souscat.value;
	var target = 'cadre_galerie';
	document.getElementById('cadre_galerie').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function verifjs_hexa() 
{
	hexa =  document.getElementById("codehexa").value ;
	
	if (hexa.length<6)
	{
		alert("Saisie invalide : Il faut 6 caractères hexadécimal.");
		return false;
	}
	
	if (hexa.length>6)
	{
		alert("Saisie invalide : Il faut 6 caractères hexadécimal.");
		return false;
	}
	
	var reg_login = /^[-a-fA-F0-9]{1,}$/; 
 
	if(!(reg_login.test(hexa)))
	{
		alert("Saisie invalide : caractères hexadécimal uniquement.");
		return false;
	}
	
	if (hexa=='') { alert ("Saisie invalide : Il faut 6 caractères hexadécimal.");  return false;}
	
	if ((hexa.indexOf(".")>=0)||(hexa.indexOf("'")>=0)) 
	{
		alert("Saisie invalide : Il faut 6 caractères hexadécimal.");
		return false;
	} 
}

function verifjs_alb() 
{
	alb =  document.getElementById("nomalb").value ;
	
	if (alb.length<=3)
	{
		alert("Nom de cet Album invalide : Il doit comporter plus de 3 caractères.");
		return false;
	}
	
	if (alb.length>30)
	{
		alert("Nom de cet Album invalide : Il doit comporter moins de 30 caractères.");
		return false;
	}
	
	var reg_login = /^[-a-zA-Z0-9_ ]{1,}$/; 
 
	if(!(reg_login.test(alb)))
	{
		alert("Nom de cet Album invalide : Le nom ne doit comporter que des lettres de l'alphabet non accentuées et/ou des chiffres.");
		return false;
	}
	
	if (alb=='') { alert ("Vous devez choisir un nom pour votre Album.");  return false;}
	
	if ((alb.indexOf(".")>=0)||(alb.indexOf("'")>=0)) 
	{
		alert("Nom de cet Album invalide : La ponctuation n'est pas autorisé.");
		return false;
	} 
}

function verifjs_pix() 
{
	flip =  document.getElementById("selectalbum").value ;
	if (flip=='...') 
	{ 
		alert ("Vous devez choisir un album dans lequel vos photos seront insérés.");  return false;
	}

	fac =  document.getElementById("selectsection").value ;
	if (fac=='...') 
	{ 
		alert ("Vous devez choisir une catégorie.");  return false;
	}

	low = fic.toLowerCase();
	ext1 = low.substring((low.length)-4,low.length);
	ext2 = low.substring((low.length)-5,low.length);
	
	if (ext1=='.jpg' || ext2=='.jpeg') 
	{
		document.getElementById("loading_h").innerHTML = '<img src="loading.gif"/><p>Chargement en cours ..</p>';
		document.getElementById("go").value='Patientez';
		document.forms["form_upload"].submit();
		return true;
	}
	else alert ("Seuls les photos aux formats JPEG sont acceptés !"); return false;
	
	return false;
}

function verifjs_movpix() 
{
	flip =  document.getElementById("selectalbum").value ;
	if (flip=='...') 
	{ 
		alert ("Vous devez choisir un album dans lequel vos photos seront déplacés.");  return false;
	}

	fac =  document.getElementById("checkbox").value ;
	if (fac=='...') 
	{ 
		alert ("Vous devez choisir une catégorie.");  return false;
	}
	
	return false;
}

function listeAlbPage(page)
{
	var url = 'func/aff_listealbum.php';
	
	var pars = 'page='+page;
	
	var target = 'listealbum';
	document.getElementById('listealbum').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function creerMonAlbum(form)
{
		alert("Validation de votre album effectué.");
		return false;
}

function maConfiguration(name)
{
	var url = 'func/aff_maconfiguration.php';
	var pars = 'recherche='+name;
	var target = 'maconfig';
	document.getElementById('maconfig').innerHTML = "";
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
}

function checkSelect(elmId)
{
	var checkit = elmId;
	alert('checkit='+checkit);
}

function Agree(Terms) {
	
	if(document.inscription.save_pass.checked == true) {
		document.inscription.register.disabled = false;
	} else {
		document.inscription.register.disabled = true;
	} 
}

function gereCheckbox()
{ 
   var taille = document.forms['modifpix'].elements.length; 
   var element = null; 
   for(i=0; i < taille; i++)
    { 
      element = document.forms['modifpix'].elements[i]; 
      if(element.type == "checkbox") 
       {
        if(!element.checked)
        {
        element.checked = true; 
        }else{
        element.checked = false; 
        }
       }
    } 
       
} 