function currentOff(){
	var ularr = document.getElementsByTagName('ul');
	var liarr;
	for(var i=0;i < ularr.length;i++){
		if(ularr[i].className == 'more'){
			liarr = ularr[i].getElementsByTagName('li');
		}
	}
	for(var i=0; i < liarr.length;i++){
		liarr[i].className = '';
	}
}

function toCurrent(n){
	currentOff();
	var pn = n.parentNode;
	pn.className = 'current';
	n.blur();
}

function changeRangoFechas(time)
{	
	document.getElementById('diffm').value = time;	
	document.getElementById('notifForm').submit();	
}
	
function selectCurrent(diffm)
{
	// Por defecto se marca la opcion de todos
	var current = document.getElementById('notif_all');
	
	// Si no, en funcion de la fechaeMin seleccionada se muestra uno u otro
	if (diffm == '12')
		current = document.getElementById('notif_12m');
	if (diffm == '6')
		current = document.getElementById('notif_6m');
	if (diffm == '3')
		current = document.getElementById('notif_3m');
	if (diffm == '1')
		current = document.getElementById('notif_1m');
	toCurrent(current);
	current.href = "javascript:void(0)";
}
