$(document).ready(function(){
	$("form#tellafriendform").submit(function() {

	// we want to store the values from the form input box, then send via ajax below
	var email     = $('#email').attr('value');
	var emailColleague     = $('#emailColleague').attr('value'); 

		$.ajax({
			type: "POST",
			url: "/tellafriend/tellafriend.php",
			data: "email="+ email +"& emailColleague="+ emailColleague,
			success: function(msg){
				$('form#tellafriendform').hide();
				$('#success').fadeIn();
			}
		});
	return false;
	});
});
