Capturing the Current User’s Manager in MOSS Using SPServices and GetUserProfileByName

I had a question today about how to get the current user’s manager and put the value into a Person or Group column in a list. This one only works in MOSS or SharePoint Server 2010 (not WSS 3.0 or SharePoint Foundation) because the UserProfileService Web Service is only available there. The code is relatively…