<!--
window.onload=onloadsite;

function montre(id,idmenu) {

var d = document.getElementById(id);
var e = document.getElementById(idmenu);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
		if (document.getElementById('lienMenu'+i)) {document.getElementById('lienMenu'+i).style.color='#005AA9';}
		
	}
if (d) {d.style.display='block';}
if (e) {e.style.color='#fff';}
}

function changeInput(idSelect){
	document.getElementById(idSelect).value = '';
}

function pop()
{
    var myAs = document.getElementsByTagName('a');
    for (var a = 0; a < myAs.length; ++a) {
	// Si le lien a une classe de type pop
        if (myAs[a].className == 'pop') {
	// on extrait l'id de la popup à partir du href
            var pop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));

	// si la popup existe on l'affiche (display block)
            if (pop) {       
                pop.style.display = 'none';
                myAs[a].onclick = function() {
                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
                    thisPopup.style.display = (thisPopup.style.display == 'none') ? 'block' : 'none';
                    return false;
                };
		// on efface la popup en cliquant dessus
                pop.onclick = function()
                {
                    this.style.display = 'none';
                };
            }
        }
    }
}

function onloadsite(){
	pop();
	montre();
}

function envoi_form(id){
	var d = document.getElementById(id);
	document.getElementById(id).submit();
	
}
//-->
