/*if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent)
{
	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
	window.attachEvent("onload", fnLoadPngs);
}*/

/*<!-- Interdire clic droit
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//-->*/

function ouvrirfenetreiframe(url,titre)
{
  window.open(url,titre,'width=820px,height=800px,directories=no,location=no,menubar=no,resizable=no,scrollbars=yes');
}

function ouvrirfenetrelight(url,titre)
{
  window.open(url,titre,'width=599px,height=600px,directories=no,location=no,menubar=no,resizable=no,scrollbars=yes');
}

function ouvrirfenetrechat(url,pseudo)
{
  window.open(url,pseudo,'width=590px,height=500px,directories=no,location=no,menubar=no,resizable=no,scrollbars=no');
}

function ouvrirfenetrefichier(url)
{
  window.open(url,'Fichier','width=300px,height=10px,directories=no,location=no,menubar=no,resizable=no,scrollbars=no');
}

function ouvrirfenetrephoto(url)
{
  window.open(url,'Photo','width=800px,height=800px,directories=no,location=no,menubar=no,resizable=no,scrollbars=no');
}

function fnLoadPngs()
{
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--)
	{
		if (itsAllGood && img.src.match(/\.png$/i) != null)
		{
			var src = img.src;
			var div = document.createElement("DIV");
			div.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizing='scale')";
			div.style.width = img.width + "px";
			div.style.height = img.height + "px";
      div.style.display = "inline";
      div.style.verticalAlign = "middle";
      div.style.marginTop = "2px";
			
			img.replaceNode(div);
		}
		img.style.visibility = "visible";		 
	}
}

function showhide(numid)
{
  if (document.getElementById(numid).style.display=="none")
  {
    document.getElementById(numid).style.display="";
  }
  else
  {
    document.getElementById(numid).style.display="none";
  }
}

function show(numid)
{
  if (document.getElementById(numid).style.display=="none")
  {
    document.getElementById(numid).style.display="";
  }
}

function hide(numid)
{
  if (document.getElementById(numid).style.display=="")
  {
    document.getElementById(numid).style.display="none";
  }
}

function CheckLen(Target)
{
  StrLen = Target.value.length;
	if ( StrLen>5000 ) {
		Target.value = Target.value.substring(0,5000);
		CharsLeft = 5000;
	} else {
		CharsLeft = StrLen;
	};
	var CharsLeft1 = 5000 - CharsLeft;
	document.formulaire.reste.value = CharsLeft1;
}
