Pour undiluted white vinegar straight onto the mattress and carpet. Completely saturate the areas and cover as much of the stain as possible. Let dry completely. The vinegar will neutralize the smells. You can use regular white soap and water to scrub the stains, I prefer a steam cleaner.