public int SetAthleteName(int athleteid, string name, string preferredName)
        {
            if (athleteid == 0)
            {
                return(0);
            }

            // existing athlete

            Athlete Athlete = getAthlete(athleteid);

            if (Athlete == null)
            {
                return(0);
            }

            string origonalName = Athlete.PreferredName;

            if (Athlete.Fullname != System.Web.HttpUtility.UrlDecode(name))
            {
                Athlete.setFullName(System.Web.HttpUtility.UrlDecode(name));
            }

            if (origonalName != System.Web.HttpUtility.UrlDecode(preferredName))
            {
                Athlete.PreferredName = (System.Web.HttpUtility.UrlDecode(preferredName));
            }

            Athlete.Save( );

            return(athleteid);
        }