	function confirm_click(text){
		if (!text)text = "Etes vous sūr ?";
		var myconf = confirm(text);
		if (myconf==true) {
			return true;
		}else {
			return false;
		}
	}
	
	
			function imgbig(vue, add) {
			myElement = document.getElementById(vue);
			Resultat = '<img src="' + add + '" onclick="imgbig_close(\'' + vue + '\');" />';
			myElement.style.border='1px solid #cccccc';
			myElement.style.visibility='visible'; 
			myElement.innerHTML=Resultat;
			}
			
			function imgbig_close(vue) {
			myElement = document.getElementById(vue);
			myElement.innerHTML='';			
			myElement.style.visibility='hidden'; 
			}			
			
			
var fake_element;
function xoopsGetElementById(id) {
if (document.getElementById(id)) {
	return document.getElementById(id);
	} else if (document.all[id]) {
		return document.all[id];
		} else if (document.layers && document.layers[id]) {
			return (document.layers[id]);
			} else {
				return fake_element;
			}
}

function toggle_dynmenu(id)  {
	if (xoopsGetElementById(id + '_sub')) {
		var dom = xoopsGetElementById(id + '_sub').style.display;
		if (dom == 'none') {
			xoopsGetElementById(id + '_sub').style.display = 'inline';
			xoopsGetElementById(id + '_sign').src   = '/style/minus.gif';
			xoopsGetElementById(id + '_folder').src = '/style/tree_open.gif';
			} else if (dom == 'inline') {
				xoopsGetElementById(id + '_sub').style.display = 'none';
				xoopsGetElementById(id + '_sign').src   = '/style/plus.gif';
				xoopsGetElementById(id + '_folder').src = '/style/tree_close.gif';
			}
	}
}