Replaced hard coded values in the capture routine with session variables which are set with the options webform