// //////////////////////////////////////////////////////////////////////////////////////
function buscar(){
	if ($('#txt').attr('value') != ''){
		document.location = '../esp/busqueda.asp?txt=' + $('#txt').attr('value'); 
	}		
}
// //////////////////////////////////////////////////////////////////////////////////////
function volver_atras(){
	window.history.back();
}
// //////////////////////////////////////////////////////////////////////////////////////
var tamagnoLetras =  100;
// //////////////////////////////////////////////////////////////////////////////////////
function AumentarTamanyo(Elemento) {
	tamagnoLetras = tamagnoLetras + 10;
	$('#' + Elemento).css('font-size', tamagnoLetras + '%');
}
// //////////////////////////////////////////////////////////////////////////////////////
function ReducirTamanyo(Elemento) {
	tamagnoLetras = tamagnoLetras - 10;
	$('#' + Elemento).css('font-size', tamagnoLetras + '%');
}
// //////////////////////////////////////////////////////////////////////////////////////
function NoticiaSiguiente(){
	if (NoticiaActual == NumeroNoticias){
		NoticiaActual = 1;
	}else{
		NoticiaActual = NoticiaActual + 1;
	}
	$('#visor_noticias').html(ArrayNoticias[NoticiaActual - 1]);
	$('#visor_noticias .imagen_ajustable').each(function(){$(this).AjustarImagen();});
}
// //////////////////////////////////////////////////////////////////////////////////////
function NoticiaAnterior(){
	if (NoticiaActual == 1){
		NoticiaActual = NumeroNoticias;
	}else{
		NoticiaActual = NoticiaActual - 1;
	}
	$('#visor_noticias').html(ArrayNoticias[NoticiaActual - 1]);
	$('#visor_noticias .imagen_ajustable').each(function(){$(this).AjustarImagen();});
}
// //////////////////////////////////////////////////////////////////////////////////////
function renovarpass(){
	if ($('#usuario').val() != ''){
		$.post('ajax_renovarpass.asp',
			   {usuario:$('#usuario').val()},
				function(data){				  
					switch (parseInt(data)){
						case 0: //Todo correcto
							alert('Se ha enviado la nueva contraseña a su correo electrónico.');
							break;
						case 1: //Usuario Incorrecto
							alert('Usuario desconocido.');
							break;
					}
				}
		);
	}
}
// //////////////////////////////////////////////////////////////////////////////////////
