Erratic idling can be caused by many things, from a vacuum leak to an engine misfire. A misfire can be a simple problem with the sparkplug to the more complicated fuel injector. These engines also require periodic engine valve adjustments. The best thing to do is bring it to a repair shop for testing, including a computer scan. Your vehicle is 18 years old so there could be a number of problems under the hood.