/**
 * Remove the selected product from the cart.
 * 
 * @param productCode The unique product code of the product to remove from the cart.
 */
function sendToFriend( email,message,productLink ) {
		$.ajax({
			type: 'POST',
			url: "/sendToFriend.action",
			data: { email:email,message:message,productLink:productLink},
			success: function(data) {
				if (data == true){
					$.modal.close();
					alert('E-mail verzonden');
				}else{
					$.modal.close();
					alert( 'Unable to send your request now due to technical problems. Please try again later');
				}
				return data;
			},
			error: function(xmlHttpRequest, textStatus, errorThrown) {
				alert( 'Unable to send your request now due to technical problems. Please try again later');
			},
			dataType: 'json'
		});
}


