Attach one lead of your meter to the #2 post and one lead first to the #1 and then the #3. If the resistance ratchets up or down while turning the pot then #2 should be your wiper connection. You can then do the same thing with your new pot and I believe the S connection will be your wiper connection. Note which direction the resistance goes while turning both pots and solder accordingly.
This is ONLY to be used to report flooding, spam, advertising and problematic (harassing, abusive or crude) posts.