Just keep the 540i! You will regret selling it.
I also own a 1997 6 spd. 540i with 105K kms (65K miles). It looks and drives like new! The comfort seats and EDC dampers are great for long distances. Much better that my 330Ci.
In Argentina it is currently worth U$S 35,000.00.