var region_departments = Array();

region_departments[1] = Array(); 
	region_departments[1][67] = "Bas-Rhin"; 
	region_departments[1][68] = "Haut-Rhin"; 

region_departments[2] = Array(); 
        region_departments[2][24] = "Dordogne"; 
	region_departments[2][33] = "Gironde"; 
	region_departments[2][40] = "Landes"; 
	region_departments[2][47] = "Lot-et-Garonne"; 
	region_departments[2][64] = "Pyr&eacute;n&eacute;es-Atlantiques"; 

region_departments[3] = Array(); 
        region_departments[3][3] = "Allier"; 
	region_departments[3][15] = "Cantal"; 
	region_departments[3][43] = "Haute-Loire"; 
	region_departments[3][63] = "Puy-de-D&ocirc;me"; 

region_departments[4] = Array(); 
        region_departments[4][14] = "Calvados"; 
	region_departments[4][50] = "Manche"; 
	region_departments[4][61] = "Orne"; 

region_departments[5] = Array(); 
        region_departments[5][21] = "C&ocirc;te-d'Or"; 
	region_departments[5][58] = "Ni&egrave;vre"; 
	region_departments[5][71] = "Sa&ocirc;ne-et-Loire"; 
	region_departments[5][89] = "Yonne"; 

region_departments[6] = Array(); 
        region_departments[6][22] = "C&ocirc;tes-d'Armor"; 
	region_departments[6][29] = "Finist&egrave;re"; 
	region_departments[6][35] = "Ille-et-Vilaine"; 
	region_departments[6][56] = "Morbihan"; 

region_departments[7] = Array(); 
        region_departments[7][18] = "Cher"; 
region_departments[7][28] = "Eure-et-Loir"; 
region_departments[7][36] = "Indre"; 
region_departments[7][37] = "Indre-et-Loire"; 
region_departments[7][41] = "Loir-et-Cher"; 
region_departments[7][45] = "Loiret"; 

region_departments[8] = Array(); 

        region_departments[8][8] = "Ardennes"; 
region_departments[8][10] = "Aube"; 
region_departments[8][51] = "Marne"; 
region_departments[8][52] = "Haute-Marne"; 

region_departments[10] = Array(); 

        region_departments[10][25] = "Doubs"; 
region_departments[10][39] = "Jura"; 
region_departments[10][70] = "Haute-Sa&ocirc;ne"; 
region_departments[10][90] = "Territoire de Belfort"; 

region_departments[11] = Array(); 

        region_departments[11][27] = "Eure"; 
region_departments[11][76] = "Seine-Maritime"; 

region_departments[12] = Array(); 

        region_departments[12][75] = "Paris"; 
region_departments[12][77] = "Seine-et-Marne"; 
region_departments[12][78] = "Yvelines"; 
region_departments[12][91] = "Essonne"; 
region_departments[12][92] = "Hauts-de-Seine"; 
region_departments[12][93] = "Seine-Saint-Denis"; 
region_departments[12][94] = "Val-de-Marne"; 
region_departments[12][95] = "Val-d'Oise"; 

region_departments[13] = Array(); 

        region_departments[13][11] = "Aude"; 
region_departments[13][30] = "Gard"; 
region_departments[13][34] = "H&eacute;rault"; 
region_departments[13][48] = "Loz&egrave;re"; 
region_departments[13][66] = "Pyr&eacute;n&eacute;es-Orientales"; 

region_departments[14] = Array(); 

        region_departments[14][19] = "Corr&egrave;ze"; 
region_departments[14][23] = "Creuse"; 
region_departments[14][87] = "Haute-Vienne"; 

region_departments[15] = Array(); 

        region_departments[15][54] = "Meurthe-et-Moselle"; 
region_departments[15][55] = "Meuse"; 
region_departments[15][57] = "Moselle"; 
region_departments[15][88] = "Vosges"; 

region_departments[16] = Array(); 

        region_departments[16][9] = "Ari&egrave;ge"; 
region_departments[16][12] = "Aveyron"; 
region_departments[16][31] = "Haute-Garonne"; 
region_departments[16][32] = "Gers"; 
region_departments[16][46] = "Lot"; 
region_departments[16][65] = "Hautes-Pyr&eacute;n&eacute;es"; 
region_departments[16][81] = "Tarn"; 
region_departments[16][82] = "Tarn-et-Garonne"; 

region_departments[17] = Array(); 

        region_departments[17][59] = "Nord"; 
region_departments[17][62] = "Pas-de-Calais"; 

region_departments[18] = Array(); 

        region_departments[18][44] = "Loire-Atlantique"; 
region_departments[18][49] = "Maine-et-Loire"; 
region_departments[18][53] = "Mayenne"; 
region_departments[18][72] = "Sarthe"; 
region_departments[18][85] = "Vend&eacute;e"; 

region_departments[19] = Array(); 

        region_departments[19][2] = "Aisne"; 
region_departments[19][60] = "Oise"; 
region_departments[19][80] = "Somme"; 

region_departments[20] = Array(); 

        region_departments[20][16] = "Charente"; 
region_departments[20][17] = "Charente-Maritime"; 
region_departments[20][79] = "Deux-S&egrave;vres"; 
region_departments[20][86] = "Vienne"; 

region_departments[21] = Array(); 

        region_departments[21][4] = "Alpes-de-Haute-Provence"; 
region_departments[21][5] = "Hautes-Alpes"; 
region_departments[21][6] = "Alpes-Maritimes"; 
region_departments[21][13] = "Bouches-du-Rh&ocirc;ne"; 
region_departments[21][83] = "Var"; 
region_departments[21][84] = "Vaucluse"; 

region_departments[22] = Array(); 

        region_departments[22][1] = "Ain"; 
region_departments[22][7] = "Ard&egrave;che"; 
region_departments[22][26] = "Dr&ocirc;me"; 
region_departments[22][38] = "Is&egrave;re"; 
region_departments[22][42] = "Loire"; 
region_departments[22][69] = "Rh&ocirc;ne"; 
region_departments[22][73] = "Savoie"; 
region_departments[22][74] = "Haute-Savoie"; 

function showDepartment () {
	//
	var region = document.getElementById('region');
	
	var departement = document.getElementById('departement');
	
	departement.options.length=1;

	if (typeof(region_departments[region.value]) == "undefined") {
	
		return;
	}

  	
	var count = 1;
	for (var i in region_departments[region.value]) {
		//departement.options[count] = new Option(region_departments[region.value][i], region_departments[region.value][i]);
		   departement.options[count] = new Option();
                   departement.options[count].value=region_departments[region.value][i];
                   departement.options[count].innerHTML=region_departments[region.value][i];
		count++;
	}
	departement.focus();
	
}

function regionList(){

     var text ="<select name='region' onchange='showDepartment();' id='region'>";
            	text +="<option value='0'>&laquo;Choisissez la r&eacute;gion&raquo;</option>";
             	text +="<option value='1'>Alsace</option>";
                text +="<option value='2'>Aquitaine</option>";
                text +="<option value='3'>Auvergne</option>";
                text +="<option value='4'>Basse-Normandie</option>";
                text +="<option value='5'>Bourgogne</option>";
                text +="<option value='6'>Bretagne</option>";
 		text +="<option value='7'>Centre</option>";
                text +="<option value='8'>Champagne-Ardenne</option>";
                text +="<option value='9'>Corse</option>";
		text +="<option value='10'>Franche-Comt&eacute;</option>";
		text +="<option value='11'>Haute-Normandie</option>";
		text +="<option value='12'>Ile-de-France</option>";
		text +="<option value='13'>Languedoc-Roussillon</option>";
		text +="<option value='14'>Limousin</option>";
		text +="<option value='15'>Lorraine</option>";
		text +="<option value='16'>Midi-Pyr&eacute;n&eacute;es</option>";
		text +="<option value='17'>Nord-Pas-de-Calais</option>";
		text +="<option value='18'>Pays de la Loire</option>";
		text +="<option value='19'>Picardie</option>";
		text +="<option value='20'>Poitou-Charentes</option>";
		text +="<option value='21'>Provence-Alpes-C&ocirc;te d'Azur</option>";
		text +="<option value='22'>Rh&ocirc;ne-Alpes</option>";
		text +="<option value='23'>Guadeloupe</option>";
		text +="<option value='24'>Martinique</option>";
		text +="<option value='25'>Guyane</option>";
		text +="<option value='26'>R&eacute;union</option>";
             text +="</select>";

	return (text);
}

function pieceMinList(){
 var text ="<select name='piecesMin' id='piecesMin'>";
     text +="<option value='0' id='piecesMin0'>Pieces min</option>";
     for(var i=1; i<=10; i++)
     	text +="<option value='"+i+"' id='piecesMin"+i+"'>"+i+"</option>";
     text +="</select>";
 return(text);
}

function pieceMaxList(){
 var text ="<select name='piecesMax' id='piecesMax'>";
     text +="<option value='0' id='piecesMax0'>Pieces max</option>";
     for(var i=1; i<=10; i++)
     	text +="<option value='"+i+"' id='piecesMax"+i+"'>"+i+"</option>";
     text +="<option value='11' id='piecesMax11'>Plus de 10</option>";
     text +="</select>";
 return(text);
}
function surfaceMinList(){
 var text ="<select name='surfaceMin' id='surfaceMin'>";
     text +="<option value='0' id='surfaceMin0'>Surface min</option>";
     for(var i=20; i<=100; i+=10)
     	text +="<option value='"+i+"' id='surfaceMin"+i+"'>"+i+"</option>";
     text +="</select>";
 return(text);
}

function surfaceMaxList(){
 var text ="<select name='surfaceMax' id='surfaceMax'>";
     text +="<option value='0' id='surfaceMax0'>Surface max</option>";
     for(var i=20; i<=100; i+=10)
     	text +="<option value='"+i+"' id='surfaceMax"+i+"'>"+i+"</option>";
     text +="<option value='11' id='surfaceMax11'>Plus de 100</option>";
     text +="</select>";
 return(text);
}




