// aprids.js Bernard Tessier
function toggle_display(id_name) {

	var display = document.getElementById(id_name).style.display;

	if(display == 'none' || !display) {
		document.getElementById(id_name).style.display = 'block';
	} else {
		document.getElementById(id_name).style.display = 'none';
	}
}

function nospam(txt) {
// On minimise la recolte des spam-bots.

	aCom="@";
	Protocol="mailto:";
	point="%2E";

	document.write('<a href="' + Protocol + txt + aCom + 'aprids' +point+ 'ca?SUBJECT=Commentaire">' + txt + aCom + 'aprids' +unescape(point)+ 'ca</a>');
}

function getReferer() {
// On log le referrer de cette page via javascript

	var URL = escape(document.referrer);

	document.write("<img src=\"http://noranet.com/cgi-bin/js_logger.cgi?");
	document.write(URL);
	document.write("\" width=1 height=1> ");
	return true;
}

