function hide(id) {
	zone = document.getElementById(id);
	if (zone.style.display = 'block') {
		zone.style.display = 'none';
	}
}
function show(id) {
	zone = document.getElementById(id);
	if (zone.style.display = 'none') {
		zone.style.display = 'block';
	}
}
function InsFormation(formation,url,color) {
	if (formation.length != 0) {
		document.write('<p><a href="'+url+'" style="color:'+color+';">'+formation+'<\/a><\/p>');
	}
}
function InsEnSavoirPlus(id,lien,contenu) {
	if (contenu.length != 0) {
		document.write('<a href="en-savoir-plus.php?n='+id+'">En savoir plus<\/a>');
	} else if (lien.length != 0) {
		document.write('<a href="'+lien+'">En savoir plus<\/a>');
	}
}
function InsTitre(id,titre,lien,contenu) {
	if (contenu.length != 0) {
		document.write('<a href="en-savoir-plus.php?n='+id+'">'+titre+'<\/a>');
	} else if (lien.length != 0) {
		document.write('<a href="'+lien+'">'+titre+'<\/a>');
	} else {
		document.write(titre);
	}
}
function AjoutFavoris() {
	Navigateur = navigator.appName;
	Version = parseInt(navigator.appVersion);
	if (Navigateur == "Microsoft Internet Explorer" && Version >= 4) {
		window.external.AddFavorite(location.href, document.title);
	} else {
		alert('Faites Ctrl+D pour ajouter ce site à vos favoris.');
	}
}

function commander(idFormation,idTheme) {
	document.location.href = 'achat-en-ligne.php?mewg_template_me_1_formation='+idFormation+'&mewg_template_me_1_theme='+idTheme;
}