function toggle(value,show){
	/* show is an optional param. If not defined => toggle : show/hide.
	this param has 2 value:
		- show --> only show the element,
		- hide --> only hide the element.
	*/	
	if(show == null){
		var show= "unknow";	
	}
	else{
		var show= show;
	}
	var i= 0;
	var isBlock= false;
	var isInline= false;	
	var type= document.getElementById(value).style.display;
	var tg= document.getElementById(value).name;
	var blockType= new Array('blockquote', 'div', 'dl', 'fieldset', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'noscript', 'ol', 'p', 'pre', 'table', 'ul', 'dd', 'dt', 'li', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr');
	var inlineType= new Array('a', 'abbr', 'acronym', 'b', 'basefont', 'bdo', 'big', 'br', 'cite', 'code', 'dfn', 'em', 'font', 'i', 'img', 'input', 'kbd', 'label', 'q', 's', 'samp', 'select', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'textarea', 'tt', 'u', 'var');
		
	switch(show){
		case "show" :
			for(i= 0; i<blockType.length && !isBlock ; i++){
				if(type == blockType[i]){
					isBlock= true;
					type= "block";
				}
			}
			if(!isBlock){
				for(i= 0; i<inlineType.length && !isInline; i++){
					if(type == inlineType[i]){
						isInline= true;
						type= "inline";
					}
				}
				if(!isInline){
					type= "";
				}
			}
			else{
				type= "";
			}
			break;
			
		case "hide" :
			type= "none";
			break;
			
		case "unknow" :
			if(type == "inline" || type == "block" || type== ""){
				type= "none";
			}	
			else{
				for(i= 0; i<blockType.length && !isBlock ; i++){
					if(type == blockType[i]){
						isBlock= true;
						type= "block";
					}
				}
				if(!isBlock){
					for(i= 0; i<inlineType.length && !isInline; i++){
						if(type == inlineType[i]){
							isInline= true;
							type= "inline";
						}
					}
					if(!isInline){
						type= "";
					}
				}
				else{
					type= "";
				}
			}
			break;
	}
	document.getElementById(value).style.display= type;
}

