function ValidarCboValorValidoTest(id, valorNoValido)
{
	var objId = document.getElementById(id);
	var valor = objId.options[objId.selectedIndex].value;
	if (valor == valorNoValido)
		return false;
	else
		return true;
}


function ValidarCboValorValido(id,valorNoValido)
{
	if (ValidarCboValorValidoTest(id,valorNoValido))
	{
		ValidarTextoNormal(id)
		return true;

	}
	else
	{
		ValidarTextoAlerta(id)
		return false;
	}
}

function ValidarNoVacioTest(id)
{
	var objId = document.getElementById(id);
	objIdvalue = trim(objId.value);
	if (objIdvalue =='')
		return false;
	else
		return true;
}


function ValidarNoVacio(id)
{
	var textoId = document.getElementById(id+'_texto');
	if (!ValidarNoVacioTest(id))
	{
		textoId.className = 'letrasMedianasAlerta';
		return false;
	}
	else
	{
		textoId.className = 'letrasMedianasNegro';
		return true;
	}
}

function ValidarTextoNormal(id)
{
	var textoId = document.getElementById(id+'_texto');
	textoId.className = 'letrasMedianasNegro';

}

function ValidarTextoAlerta(id)
{
	var textoId = document.getElementById(id+'_texto');
	textoId.className = 'letrasMedianasAlerta';

}

function ValidarPassword(id,id2)
{
	var validar = true;
	
	var objId = document.getElementById(id);
	var textoId = document.getElementById(id+'_texto');
	
	var objId2 = document.getElementById(id2);
	var textoId2 = document.getElementById(id2+'_texto');
	
	objIdvalue = trim(objId.value);
	objId2value = trim(objId2.value);
	if ((objIdvalue !='') && (objId2value == objId.value))
	{
		textoId.className = 'letrasMedianasNegro';
		textoId2.className = 'letrasMedianasNegro';
		return true;
	}
	else
	{
		textoId.className = 'letrasMedianasAlerta';
		textoId2.className = 'letrasMedianasAlerta';
		return false;
	}
}

