// JavaScript Document
nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1);
function ajouterFavoris()
{
if (nav == "Mic" && ver >= 4 && navigator.platform.substring(0,3)=="Win")
{
url_site=window.self.location.href;
titre_site = window.document.title;
window.external.AddFavorite(url_site, titre_site);
}
else
{
if (navigator.platform.substring(0,3)=="Win")
{
window.alert("Appuyez sur Ctrl + D, pour ajouter ce site à vos favoris");
}
else
{
window.alert("Appuyez sur Pomme + D, pour ajouter ce site à vos favoris");
}

}
}

function Compter(target, max, nomchamp)
{
StrLen = target.value.length
if (StrLen > max )

{
target.value = target.value.substring(0,max);
CharsLeft = max; 
}

else

{
CharsLeft = StrLen;
}

nomchamp.value = CharsLeft;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}