/* Fichier Javascript pour Mempo*/

/* Affiche / Cache un élément */
function toggle( targetId )
{
    target = document.getElementById( targetId );
    if (target.style.display == "block")
    {
        target.style.display = "none";
    } else {
        target.style.display = "block";			 
    } 
}

/* Permet de switcher du mode affichage au mode d'édition */
function switchMode(e)
{

if(!e)
	{
	    e=window.event;
	}
if(e.shiftKey && e.keyCode==27){

    if (location.search.indexOf("?mode=edit") == 0)
	{
        location.href = location.pathname;
    } else {
		location.href = location.pathname + '?mode=edit';
    }
}
}



