$(document).ready(function() {
	$('input').css({backgroundColor:"#FFFFFF"});
	$('input').focus(function(){
		$(this).css({backgroundColor:"#FFDDAA"});
	});
	$('input').blur(function(){
		$(this).css({backgroundColor:"#FFFFFF"});
	});
	$('#form, #frmLVrecordar').submit(function() {
		if ($("input#txtEmail_R").val() == "") {
			$("input#txtEmail_R").focus();
			return false;
		}
		$('#recordar').html("<p align=center>Cargando contenidos....<br><img src=jquery/loadingAnimation.gif /></p>")
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
		    contentType: "application/x-www-form-urlencoded;charset=ISO-8859-1",
			// Mostramos un mensaje con la respuesta de PHP
			success: function(data) {
				$('#recordar').html(data);
			}
		})        
		return false;
	});
})  		
