	function get(id){ 
		return document.getElementById(id); 
	}
	
	// toggle multi div
	function toggle(id){
		for(var a=document.getElementsByTagName('div'), i=0; i<a.length; i++)
			if(a[i].className.match(/toggle_div/))
				a[i].style.display = ((a[i].id == id) ? 'block' : 'none');
	}
	
	function launchPopup(lien,width,height){
		window.open(lien, '', 'height='+height+', width='+width+', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no')
	}

	function ouvre(url){
		location.href = url;
	}
	
	// traiter un lien current sur un menu
	function addCurrent(id)
	{
		for(var a=document.getElementsByTagName('a'), i=0; i<a.length; i++)
			if(a[i].className.match(/current_link/))
				a[i].className = ((a[i].id == id) ? 'current_link current' : 'current_link');
	}

	// toggle simple
	function toggle_simple(el)
	{
		var obj =  document.getElementById(el);
		obj.style.display = (obj.style.display == 'block' ? 'none' : 'block');
	}
