
	/*** Formulario ajax, enviar a un amigo ***/
	$(document).ready(function () {
	
		$('#ajax-amigo input.submit').click(function () {

			$.post($('#ajax-amigo').attr('action'),$('#ajax-amigo').serialize(), function (response) {
			
				if(response == "ok") {

					$('#ajax-amigo').html('E-mail enviado correctamente');

				}else if (response != '') {

					$('#ajax-error').html(response);
				}

			});
		});
	});
