/* ---------- Fonction de base --------- */
function ligne_over(id){
document.getElementById(id).style.backgroundColor = "#fcf284";
}
function ligne_out(id){
document.getElementById(id).style.backgroundColor = "";
}
function surligne(champ) {
champ.style.backgroundColor = "#304968";
}
function sansligne(champ) {
champ.style.backgroundColor = "";
}

/* ---------- Menu et Sous Menu --------- */
function clic_recherche() {
document.search_form.id_type_recherche.value = "";
document.search_form.id_secteur_recherche.value = "";
document.search_form.id_chambre_recherche.value = "";
document.search_form.id_surface_recherche.value = "";
document.search_form.id_prix_recherche.value = "";
document.search_form.id_zone_recherche.value = "";
}
function clic_critere() {
document.search_form.search_ref.value = "";
document.search_form.id_zone_recherche.value = "";
}
function clic_zone($truc) {
document.search_form.search_ref.value = "";
document.search_form.id_type_recherche.value = "";
document.search_form.id_secteur_recherche.value = "";
document.search_form.id_chambre_recherche.value = "";
document.search_form.id_surface_recherche.value = "";
document.search_form.id_prix_recherche.value = "";
document.search_form.id_zone_recherche.value = $truc;
}
function clic_zone2() {
document.search_form.id_zone_recherche.value = "";
}


/* ---------- Menu et Sous Menu --------- */
function affiche(obj){
	var id = obj.id;
	
	for(var i = 1; i <= 50; i++){
		if (document.getElementById('sousmenu'+i)) {document.getElementById('sousmenu'+i).style.display = "none";}
	}
	
	if(document.getElementById('sous'+id)){
		document.getElementById('sous'+id).style.display = "block";
	}
}


