function jsand(actif) {
	var a = new Array('upload','sub','conseils','about');
	for(var i=0; i<4; i++) {
		if(a[i] == actif) {
			var display = 'block';
			var color = '#f7b4b4';
			var gras = 'bold';
		} else {
			var display = 'none';
			var color = '#f7dfdf';
			var gras = '400';
		}
		document.getElementById(a[i]).style.display=display;
		document.getElementById('a'+a[i]).style.fontWeight=gras;
		document.getElementById('a'+a[i]).style.backgroundColor=color;
	}
}
function nopublic_c(check) {
	if(check.checked===true)  {
		if(confirm('Vous allez avoir la possibilité de modifier/supprimer des liens.\nVoulez-vous vraiment cacher toute votre page ŕ la communauté ?'))
			return true;
		else
			check.checked=0;
	}
}
function del(id,mode) {
	if(mode==1) {
		document.getElementById('l'+id).style.backgroundColor='#E7373B';
		if(confirm('Ne pas faire apparaitre ce lien dans mes marque-pages,')) {
			document.getElementById('p'+id).value=0;
			document.getElementById('li'+id).style.display='none';
		} else
			document.getElementById('l'+id).style.backgroundColor='#FFF2E3';
	}
	else if(mode==2) {
		var input = document.getElementsByTagName('input');
		document.getElementById('t'+id).style.color='#F00';
		document.getElementById('t'+id).style.fontStyle='italic';
		for(var i=0; i<input.length; ++i)  {
			if(input[i].value == id && input[i].name.substring(0,9) == 'categorie')
				document.getElementById('l'+input[i].id.substring(1)).style.backgroundColor='#E7373B';
		}
		if(confirm('Ne pas faire apparaitre l\'ensemble de ce dossier dans mes marque-pages,')) {
			for(var i=0; i<input.length; ++i)  {
				if(input[i].value == id && input[i].name.substring(0,9) == 'categorie') {
					var numid = input[i].id.substring(1);
					document.getElementById('p'+numid).value='0';
				}
			}
			document.getElementById('ul'+id).style.display='none';
			document.getElementById('pc'+id).value='0';
			document.getElementById('h'+id).style.display='none';
		} else {
			for(var i=0; i<input.length; ++i)  {
				if(input[i].value == id && input[i].name.substring(0,9) == 'categorie')
					document.getElementById('l'+input[i].id.substring(1)).style.backgroundColor='#FFF2E3';
			}
			document.getElementById('t'+id).style.color='#000';
			document.getElementById('t'+id).style.fontStyle='normal';
		}
	}
}