function vide(objet)
	{
	objet.value = "" ;
	}

function go(formName,selectName)
	{
	box = document.forms[formName].elements[selectName] ;
	destination = box.options[box.selectedIndex].value ;
	if (destination) location.href = destination ;
	}

function toggle(div)
	{
	document.getElementById(div).style.display = (document.getElementById(div).style.display == "none" ? "block" : "none") ;
	}

function textCounter(field, countfield, maxlimit)
	{
	if (field.value.length > maxlimit)
		{
		field.value = field.value.substring(0, maxlimit) ;
		}
	else
		{
		countfield.value = maxlimit - field.value.length ;
		}
	}

function neo_rollover(l_image)
	{
	if ( l_image.src.indexOf("_hover") > 0 )
		{
		l_image.src = l_image.src.replace("_hover.",".") ;
		}
	else
		{
		l_image.src = l_image.src.substring(0,l_image.src.length-4)+"_hover."+l_image.src.substr(l_image.src.lastIndexOf(".")+1,4) ;
		}
	}

// gère les liens cachés sur les blocs de texte par exemple
function neo_lien(l_url)
	{
	window.location.href = l_url ;
	}
