function getElement(id) {
	if (document.getElementById)
	    // Moz, IE5+, Opera, NN6+
		return document.getElementById(id);
	else if (document.all)
	    // IE4
		return eval("document.all."+id);
	else if (document.layers)
	    // NN4
	    return eval("document."+id);
	else
		return null;
}

function toggleDisplay(id) {
	return getElement(id).style.display=(getElement(id).style.display == "none" ? "block" : "none");
}

function showElement(id) {
	return getElement(id).style.display="block";
}

function hideElement(id) {
	return getElement(id).style.display="none";
}

function popUp(href,title,top,left,width,height) {
	// les proprietes 'resizable' et 'scrollbars' devraient _toujours_ etre actives
	pop=window.open(href,title,"top="+top+",left="+left+",width="+width+",height="+height+",resizable=1,scrollbars=0,toolbar=0,location=0,menubar=0,status=0");
	if(pop.window.focus){pop.window.focus();}
}
