/**************************************************************************/


/**************************************************************************/

//
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 efface(form,name)
{
eval ( that = window.document [form] [name]);
if ( name == 'capacite' && that.value == '0' )
{
that.value = '';
}
else return false;
}

//
function addFav() 
{ 
if (document.all) 
{ 
window.external.AddFavorite(location.href, document.title); 
} 
else 
{ 
alert('Vous pouvez faire CTRL + D pour ajouter cette page dans vos signets, ou favoris.') 
} 
} 

//
function AfficheHomePage()
	{
	if (document.all && document.getElementById)
		{
		document.write('<A href="#" onClick="HomePage(this);return(false);" class="lien">AmangoBiz au demarrage</A><BR>');
		}
	}
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.amangobiz.com');
	}