	function calculateProtein() {

		var feet = parseInt($('#protein-feet').val());
		var inches = parseInt($('#protein-inches').val());

		var meters = parseInt($('#protein-meters').val());
		var centimeters = parseInt($('#protein-centimeters').val());

		
		var height_cm = 0;
		var due_body_weight = 0;
		var min_fat = 0;
		var max_fat = 0;
		
		if (meters) {
			height_cm = (meters * 100) + centimeters;
		} else {
			height_cm = ((feet * 12) + inches) * 2.54;
			
		}

		if (height_cm > 0) {

			due_body_weight = parseInt(height_cm - 100);
			min_fat = due_body_weight * 2.5;
			max_fat = due_body_weight * 3.5;
			
			$('#protein-results').html('<p><strong>Your Daily Protein, Fat & Carbohydrate Ratios Are</strong>:</p><p>Protein: ' + due_body_weight + ' grams</p><p>Fats: from ' + min_fat + ' to ' + max_fat  + ' grams</p><p>Carbohydrates: Very low amount of carbohydrates from cooked vegetables, butter and other low-carb sources</p>');
			$('#protein-results').show();
		}

	}
	
	function optinHide() {
		$('#post-optin').hide();
		$.get("/", { subscribed: "true" } );
	}
