function isTextValid(data,taille)
{
	if (data == null) 
		return false;
	else {
		if (data.length == 0)
			return false;
		else
		if (data.length > taille)
			return false;
		else
		 return true;
	}
}
function isTextValid2(data,taille)
{
		return true;
}
var colorOfText;
function VerifTextC(obj,taille)
{
	if(obj == null)
		return true;
	var test = false;
	if(obj != null)
	 test = isTextValid2(obj.value,taille);
	if (obj.style.color != 'red') 
		colorOfText = obj.style.color;
	if(test == false)
		obj.style.color = 'red';
	else
		obj.style.color = colorOfText;
	return test;
}
function VerifTextNC(obj,taille)
{
	if(obj == null)
		return true;
	var test = false;
	if(obj != null)
	 test = isTextValid(obj.value,taille);
	if (obj.style.color != 'red') 
		colorOfText = obj.style.color;
	if(test == false)
		obj.style.color = 'red';
	else
		obj.style.color = colorOfText;
	return test;	
}
function VerifText(data,taille,Text)
{
	var test = false;
	test = isTextValid2(data,taille);
	if (test == false)
		alert('Attention le champs '+Text+' est erroné !');
	return test;
}

function VerifTextN(data,taille,Text)
{
	var test = false;
	test = isTextValid(data,taille);
	if (test == false)
		alert('Attention le champs '+Text+' est erroné !');
	return test;	
}

