// JavaScript Document
	function deleteRow(id)	{
		confirmation = confirm("Confirmation de suppression ?");
		if (confirmation == true)	{
			document.location = "?action=delete&id="+id;
		}
	}
	
	function initPage(label)	{
		for (i=1; i <=10; i++)	{
			o = document.getElementById(label+"Button"+i);
			if (o)	{
				initClick(o, label, i);
			}
		}
		displayText(label, 1);
	}
	
	function initClick(o, label, i)	{
		o.onclick = function() {	displayText(label, i)	}
		o.href = "#";
	}
	
	function displayText(label, id)	{
		for(i = 1; i <=10; i++)	{
			oa = document.getElementById(label+"Text"+i);
			ob = document.getElementById(label+"Button"+i+"-current");
			if (oa)	{
				oa.style.display = "none";
				if (ob)	{
					ob.id = label+"Button"+i;
				}
			}
		}
		document.getElementById(label+"Text"+id).style.display = "block";
		document.getElementById(label+"Button"+id).id = label+"Button"+id+"-current";
	}

/*	function initProductPage()	{
		o1 = document.getElementById("productButton1");
		o2 = document.getElementById("productButton2");
		o3 = document.getElementById("productButton3");
		o1.onclick = function() { displayProductText(1) };
		o2.onclick = function() { displayProductText(2) };
		o3.onclick = function() { displayProductText(3) };
		o1.href = "#";		
		o2.href = "#";	
		o3.href = "#";			
		displayProductText(1);
	}
	
	function initActorPage()	{
		o1 = document.getElementById("actorButton1");
		o2 = document.getElementById("actorButton2");
		o3 = document.getElementById("actorButton3");
		o1.onclick = function() { displayActorText(1) };
		o2.onclick = function() { displayActorText(2) };
		o3.onclick = function() { displayActorText(3) };
		o1.href = "#";		
		o2.href = "#";	
		o3.href = "#";	
		displayActorText(1);
	}
	
	function initConceptPage()	{
		o1 = document.getElementById("conceptButton1");
		o2 = document.getElementById("conceptButton2");
		o3 = document.getElementById("conceptButton3");
		o1.onclick = function() { displayConceptText(1) };
		o2.onclick = function() { displayConceptText(2) };
		o3.onclick = function() { displayConceptText(3) };
		o1.href = "#";		
		o2.href = "#";	
		o3.href = "#";	
		displayConceptText(1);
	}
	
	function displayProductText(id)	{
		for(i = 1; i <=3; i++)	{
			oa = document.getElementById("productText"+i);
			ob = document.getElementById("productButton"+i+"-current");
			oa.style.display = "none";
			if (ob)	ob.id = "productButton"+i;
		}
		document.getElementById("productText"+id).style.display = "block";
		document.getElementById("productButton"+id).id = "productButton"+id+"-current";
	}
	
	function displayActorText(id)	{
		for(i = 1; i <=3; i++)	{
			oa = document.getElementById("actorText"+i);
			ob = document.getElementById("actorButton"+i+"-current");
			oa.style.display = "none";
			if (ob)	ob.id = "actorButton"+i;
		}
		document.getElementById("actorText"+id).style.display = "block";
		document.getElementById("actorButton"+id).id = "actorButton"+id+"-current";
	}

	function displayConceptText(id)	{
		for(i = 1; i <=3; i++)	{
			oa = document.getElementById("conceptText"+i);
			ob = document.getElementById("conceptButton"+i+"-current");
			oa.style.display = "none";
			if (ob)	ob.id = "conceptButton"+i;
		}
		document.getElementById("conceptText"+id).style.display = "block";
		document.getElementById("conceptButton"+id).id = "conceptButton"+id+"-current";
	}
*/		
	function displayProductList(id)	{
		div = document.getElementById("cat"+id);
		button = document.getElementById("but"+id);
		if (div.style.display == "none")	{
			button.src = button.src.replace("plus", "minus");
			div.style.display = "block";
		} else {
			button.src = button.src.replace("minus", "plus");
			div.style.display = "none";		
		}
	}

	var highliteddGlossaryDiv;
	function glossary(word)	{
		if (highliteddGlossaryDiv)	{
			document.getElementById(highliteddGlossaryDiv).className="";
		}
		document.getElementById("glos"+word).className="glossary-focus";
		document.location="#"+word;	
		highliteddGlossaryDiv = "glos"+word;
	}

	function mailto(email)	{
		email = email.replace("#at#", "@");
		email = email.replace("#dot#", ".");
		document.location = "mailto:"+email;
	}
