var hauteur = "840";
	var largeur="554";
	if (document.all) {
		hauteur="860";
		largeur="570";
	}
	function afficheFenetre(val) {
		if (screen.availHeight < hauteur) {
			hauteur = screen.availHeight;
		} 
		window.open(val, 'Guide_du_TRI', 'channelmode=no, toolbar=no, status=no, scrollbars=yes, resizable=yes, menubar=no, location=no, directories=no, top=0, left=0, width='+largeur+', height='+hauteur);
	}
 	function chargeVille(ville) {
        	// Nombre d'éléments
                var nbElems = 1
                if (ville.value == 'Illzach' || ville.value == 'Lutterbach' || ville.value == 'Pfastatt' || ville.value == 'Rixheim' || ville.value == 'Sausheim') {
                	nbElems = 2;
                } else if (ville.value == 'Mulhouse') {
                        nbElems = 4;
                }
                if (ville.value != "") {
                	if (screen.availHeight < hauteur) {
                        	window.open('http://www.sivom-mulhouse.fr/ficheCommune.php?ville='+ville.value+'&nbElems='+nbElems, 'AfficheVille', 'toolbar=no, status=no, scrollbars=yes, resizable=yes, menubar=no, location=no, directories=no, top=0, left=0, width='+largeur+', height=screen.availHeight');
                        } else {
                        	window.open('http://www.sivom-mulhouse.fr/ficheCommune.php?ville='+ville.value+'&nbElems='+nbElems, 'AfficheVille', 'toolbar=no, status=no, scrollbars=yes, resizable=yes, menubar=no, location=no, directories=no, top=0, left=0, width='+largeur+', height='+hauteur);
                        }
                }
 	}