function alerta_input_nulo (elemento, nombre_elemento) //alerta si el input 'elemento' es nulo
{
	if (elemento.value == "")
	{
		alert ("No puedes dejar vacío '" + nombre_elemento + "'");
		elemento.focus();
		return true;
	}
	else
		return false;
}



function alerta_select_nulo (elemento, nombre_elemento, valornulo)  //alerta si el select 'elemento' es nulo
{
	if (elemento.value == valornulo)
	{
		alert ("Debes seleccionar '" + nombre_elemento + "'.");
		elemento.focus();
		return true;
	}
	else
		return false;
}



function alerta_radio_nulo (elemento, nombre_elemento)  //alerta si el radio 'elemento' es nulo
{
	for (i=0; i<elemento.length; i++)
	{
		if (elemento[i].checked)
			i = elemento.length;
	}
	if (i == elemento.length)
	{
		alert ("Debes seleccionar '" + nombre_elemento + "'");
		return true;
	}
	else
		return false;
}