/**
	fonction de vérification du contenu d'un champ avant d'effetcuer un envoi
*/
function checkMinimumLength( fieldId, minLength ){
	
	var field = document.getElementById( fieldId );
	if( field != null && field.value.length >= minLength){
		return true;
	}
	
	return false ;
}

function swapVisible( containerId, imgId, imgSrcPlus, imgSrcMinus ){

	if( document.getElementById( containerId ) != null )
		if( document.getElementById( containerId ).style.display != "block" ){
			document.getElementById( containerId ).style.display = "block";
			if( imgSrcPlus != null )
				document.getElementById( imgId ).src = imgSrcMinus;
		}
		else{
			document.getElementById( containerId ).style.display = "none";
			if(imgSrcMinus!=null)
				document.getElementById( imgId ).src = imgSrcPlus;
		}
}