function affiche_jobs(element) {
	document.getElementById('zoom_ent_1_jobs_1').style.display = "none";
	/*document.getElementById('zoom_ent_1').style.background = 'url("images/detail_entreprise_1-big.jpg")';
	document.getElementById('zoom_ent_1').style.height = '100%';
	document.getElementById('zoom_ent_1_jobs_cadre_2').style.height = '100%';*/
	new Effect.BlindDown('zoom_ent_1_jobs_2', { duration: 1.0, scaleFrom: 20, scaleTo: 100 });
	document.getElementById('zoom_ent_1_jobs_2-end').style.display = "block";	
}

function fermer_jobs(element) {
	document.getElementById('zoom_ent_1_jobs_2-end').style.display = "none";
	//document.getElementById('zoom_ent_1_jobs_cadre_2').style.height = '35px';
	document.getElementById('zoom_ent_1_jobs_2').style.display = "none";
	//document.getElementById('zoom_ent_1').style.height = '260px';
	//document.getElementById('zoom_ent_1').style.background = 'url("images/detail_entreprise_1.jpg")';
	document.getElementById('zoom_ent_1_jobs_1').style.display = "block";
}

function suppr_sugg(id_sugg) {
if(auth = file('run/suppr_sugg_run.php?id_sugg='+escape(id_sugg)))
					 {
          if(auth == 1)
				{
				 //alert('bug');
				 window.location.reload();
				}
		  else if(auth == 2)
               {
				//alert('ca devrait rafraichir maintenant!');
				window.location.reload();
			   }
          else {
			  //alert('bug');
			  window.location.reload();
               open_error('Erreur! Veuillez rapporter cette erreur:, merci.');
		  		}
               		}
}

function signaler_comm(id_comm) {
if(auth = file('run/signaler_comm_run.php?id_comm='+escape(id_comm)))
					 {
          if(auth == 1)
				{
				}
		  else if(auth == 2)
               {
				window.location.reload();
			   }
          else
               open_error('<span style="color:#cc0000"><b>Erreur! Veuillez rapporter cette erreur:, merci.</b></span>');
               	}
}

function ecosysteme(question, reponse, entreprise) {
if(eco = file('run/ecosysteme_run.php?question='+escape(question)+'&reponse='+escape(reponse)+'&entreprise='+escape(entreprise)))
	    {
          if(eco  == 1)
				{
				window.location.reload();
				}
		  else if(eco  == 2)
               {
				if (question == "1" && reponse == "1")
					window.location.href = "http://www.nosentreprises.com/postuler.php?id="+entreprise;
				else
					window.location.reload();
			   }
          else
		  		{
                window.location.reload();
               	}
		}
}



// Fonction qui remplace le texte d'un conteneur 'id' (div, p, span, ...) par 'texte'
function write_id(id,texte)
     {
     document.getElementById(id).innerHTML = texte;
     }

