function Selection(what)
{
	if (myConfigNav == nav)
		{
		what.filters.alpha.opacity = ( what.filters.alpha.opacity == 100 ) ? 50 : 100;
		}
	else
		{
		what.style.opacity = ( what.style.opacity == 1 ) ? 0.5 : 1;
		}
}

function go(URL)
{
window.location.href = URL;
}

function SecuredLink()
{
	if (Access == "ON")
	{
	return true;
	}
	if (Access == "OFF")
	{
	return false;
	}
}

var Access = "OFF";

function OnKeyDown(pEvent, TYPE)
{
	var type = TYPE;

	if (pEvent.keyCode == 69 && type == '1')
		{
		window.location.href = 'admin.htm';
		}
	else if (pEvent.keyCode == 69 && type == '2')
		{
		Access = "ON";
		}
	else
		{
		return false;
		}
}

function Erreur404(what)
{
	what.className = "SolidCenteredDiv";
	what.onmouseover = "this.className='SolidCenteredDiv'";
	what.onmouseout = "this.className='SolidCenteredDiv'";
	what.onclick = "";
	
	var LINK = document.URL;
	
	what.innerHTML =	"<div><img border=\"0\" src=\"/central/interface/haut-tableau.gif\" width=\"450\" height=\"3\"></div>"+
						"<table class=\"forms\">"+
						"<tr><td>"+
						"<form name=\"message\" method=\"post\" action=\"/central/php/error404.php\">"+
						"<center>"+
						"<input name=\"link\" readonly value=\"" + LINK + "\" style=\"display: none;\">"+
						"<br/>Si vous souhaitez être prévenu de la rectification de cette erreur,<br/>"+
						"laissez-moi votre email ci-dessous (optionnel).<br/><br/>"+
						"<input type=\"text\" name=\"email\" style=\"text-align:center\" size=\"45\" onmouseover=\"Select('On')\" onmouseout=\"Select('Off')\"><br/><br/>"+
						"<input type=\"submit\" value=\"Signaler cette erreur\" name=\"send\">"+
						"</center>"+
						"</form><br/>"+
						"</td></\tr>"+
						"</table>"+
						"<div><img border=\"0\" src=\"/central/interface/bas-tableau.gif\" width=\"450\" height=\"3\"><\div><br/>";
}