function affNote(idCritique) {
	critique=document.getElementById(idCritique);
	if(critique.style.display=="none"){
		critique.style.display="block";
	}
	else {
		critique.style.display="none";
	}
}

function focusNote() {
	cible=location.hash.substring(1);
	if (cible!="") {
		document.getElementById(cible).style.display='block';
		document.getElementById(cible).scrollIntoView();
		window.scrollBy(0,-30);
	}
}

function insere(ceci,nom) { // non utilisee mais fonctionne (a fignoler)
	if(ceci.className=="critique") {
		ceci.className=="lien";
	}
	else {
		ceci.className=="critique";
		
	  var req = false;
	  // For Safari, Firefox, and other non-MS browsers
	  if (window.XMLHttpRequest) {
	    try {
	      req = new XMLHttpRequest();
	    } catch (e) {
	      req = false;
	    }
	  } else if (window.ActiveXObject) {
	    // For Internet Explorer on Windows
	    try {
	      req = new ActiveXObject("Msxml2.XMLHTTP");
	    } catch (e) {
	      try {
	        req = new ActiveXObject("Microsoft.XMLHTTP");
	      } catch (e) {
	        req = false;
	      }
	    }
	  }
	  if (req) {
	    // Synchronous request, wait till we have it all
			nom=nom+".htm";
	    req.open('GET', nom, false);
	    req.send(null);
	    ceci.innerHTML = ceci.innerHTML+'<BR>'+req.responseText;
			ceci.className="critique";
	  } else {
	    ceci.innerHTML =
	   "Sorry, your browser does not support " +
	      "XMLHTTPRequest objects. This page requires " +
	      "Internet Explorer 5 or better for Windows, " +
	      "or Firefox for any system, or Safari. Other " +
	      "compatible browsers may also exist.";
	  }
	}
}

