$(function() { 
					$('#NewsLetterRegisterForm').submit(function() {

						$.ajax({
							type: 'POST',
							url: $(this).attr('action'),
							data: $(this).serialize(),
							beforeSend:function() {
								$('#loading2').show();
							},
							success: function(data) {
								$('#r').html(data).show();
								$('#loading2').hide();
							}
						});
						HideResultsEmail();
						return false;
						
					});
					return false;
					
}); // end Submit Form NewsLetterRegisterForm   

function HideResultsEmail() {
			setTimeout(function() { 
			$('#r').fadeOut('slow');
			},3000);
}



$(function() { 
					$('#frm_create_account').submit(function() {

						$.ajax({
							type: 'POST',
							url: $(this).attr('action'),
							data: $(this).serialize(),
							beforeSend:function() {
								$('#LoadImg').show();
							},
							success: function(data) {
								$('#ResultRegisterAccount').html(data).show();
								$('#LoadImg').hide();
							}
						});
						
						return false;
						
					});
					return false;
					
}); // end Submit Form NewsLetterRegisterForm   

$(function() { 
					$('#frm_remind_pass').submit(function() {

						$.ajax({
							type: 'POST',
							url: $(this).attr('action'),
							data: $(this).serialize(),
							beforeSend:function() {
								$('#LoadImg').show();
							},
							success: function(data) {
								$('#ResultRemindPass').html(data).show();
								$('#LoadImg').hide();
							}
						});
						
						return false;
						
					});
					return false;
					
}); // end Submit Form NewsLetterRegisterForm   
