function file(fichier) {
	if (window.XMLHttpRequest)
		xhr_object = new XMLHttpRequest();
	else if (window.ActiveXObject)
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else
		return(false);

	xhr_object.open("GET", fichier, false);
	xhr_object.send(null);

	if (xhr_object.readyState == 4)
		return(xhr_object.responseText);
	else
		return(false);
}

function notetp() {
	type = document.getElementById("typenote").value;
	note = document.getElementById("notenote").value;
	
	if (note != "") {
		var resultat = file("http://www.supforum.net/note.php?type=" + escape(type) + "&note=" + escape(note));
		document.getElementById("resultat").innerHTML = resultat;
	}
}
