Put that information into a database and look up the shipping price by weight just as you currently do. Remove the UPS stuff, that doesn't seem valid for you or your business.
The eCart object can be opened from the insert panel, insert menu, or by double clicking on the object server behavior on any page it is used.