function isSelectValid(data)
{
	if (data==null) 
		return false;
	else {
		if (data.length == 0)
			return false;
		else
		 return isSelectValid2(data)
	}
}
function isSelectValid2(data)
{
	return true;
}
var colorOfSelect;
function VerifSelectC(obj)
{
	if(obj == null)
		return true;
	var test = false;
	if(obj != null)
	 test = isSelectValid2(obj.value);
	if (obj.style.color != 'red') 
		colorOfSelect = obj.style.color;
	if(test == false)
		obj.style.color = 'red';
	else
		obj.style.color = colorOfSelect;
	return test;
}
function VerifSelectNC(obj)
{
	if(obj == null)
		return true;
	var test = false;
	if(obj != null)
	 test = isSelectValid(obj.value);
	if (obj.style.color != 'red') 
		colorOfSelect = obj.style.color;
	if(test == false)
		obj.style.color = 'red';
	else
		obj.style.color = colorOfSelect;
	return test;	
}
function VerifSelect(data,text)
{
	var test = false;
	test = isSelectValid2(data);
	if (test == false)
		alert('Attention le champs '+text+' est erroné !');
	return test;
}
function VerifSelectN(data,text)
{
	var test = false;
	test = isSelectValid(data);
	if (test == false)
		alert('Attention le champs '+text+' est erroné !');
	return test;	
}

