function m_opacity (id_menu, classe) {
	document.getElementById(id_menu).className = classe;

}
function no_opacity (id_menu, classe) {
	document.getElementById(id_menu).className = classe;
}
function soumettre (emetteur) {
	var oCivilite = document.getElementById('civilite');
	var oNom = document.getElementById('nom');
	var oPrenom = document.getElementById('prenom');
	var oEmail = document.getElementById('email');
	var oPays = document.getElementById('pays');
	var oPortable = document.getElementById('portable');
	var oVille = document.getElementById('ville');
	var oHeure = document.getElementById('heure');
	var oReference_pi = document.getElementById('reference_pi');
	var oEmetteur = document.getElementById('emetteur');
	
	document.getElementById("main_form").submit();
	
	
	
	/*if (oNom.value == "" ||oPrenom.value == "" || oNom.value == "Votre nom" ||oPrenom.value == "Votre prenom") {
		alert('TOUS LES CHAMPS DOIVENT ETRE RENSEIGNES !');
		return;
	}*/
	//document.getElementById('main_form').submit();	
	//PopupCentrer('https://form-gic.altran.net/emploi/france_2008/salons_france2008_form.php?emetteur='+oEmetteur.value+'&civilite='+oCivilite.value+'&nom='+oNom.value+'&prenom='+oPrenom.value+'&email='+oEmail.value+'&pays='+oPays.value+'&portable='+oPortable.value+'&ville='+oVille.value+'&heure='+oHeure.value+'&reference_pi='+oReference_pi.value+'',700,768,'scrollbars=yes,resizable=yes,menubar=no,statusbar=no');
}

function popupWindow(url, largeur, hauteur)
{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(url, "popup","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",toolbar=no,location=no,scrollbar=no,status=no,menubar=no'");
}


function PopupCentrer(url, largeur, hauteur, option )
{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(url, "popup","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+option+"'");
}

var _lastClicked = ''; // Derniere rubrique allumee
function toggleZoneDisplay(id) {
   if (document.getElementById){
		// On eteint la derniere rubrique allumee 
		if (_lastClicked != '') {
			document.getElementById('btn-'+_lastClicked).className = 'btn-off';
			document.getElementById('rubrique-'+_lastClicked).style.display = 'none';
		}

		// On allume toute la rubrique et on sauvegarde le dernier clique
		document.getElementById('btn-'+id).className = 'btn-on';
		document.getElementById('rubrique-'+id).style.display = 'block';
		_lastClicked = id;
   }
}



function afficheId(baliseId)
  {
  if (document.getElementById && document.getElementById(baliseId) != null)
    {
    document.getElementById(baliseId).style.visibility='visible';
    document.getElementById(baliseId).style.display='block';
    }
  }

function cacheId(baliseId)
  {
  if (document.getElementById && document.getElementById(baliseId) != null)
    {
    document.getElementById(baliseId).style.visibility='hidden';
    document.getElementById(baliseId).style.display='none';
    }
  }
  
  
 function setCurrentPage(pageNbr) {
	 if (pageNbr == -1)
	 	return;
	 
	 var tdMenu = document.getElementById('menu-'+pageNbr);	 
	 tdMenu.style.borderBottom='2px solid #ff1679';
	 tdMenu.style.height='25';
 }

function onMenuToggle(elt, on) {
	if (elt.id.indexOf(pageNbr) > 0) {
		return;
	}
	if (on) {
		elt.style.borderBottom='2px solid #ff1679';
	}
	else {
		elt.style.borderBottom='';
	}
}


