ADD,your car is telling you something ,the 6 posts above are telling you somathing, and give you great advise on possible issues related to the symptoms you describe.
Electrical work is not everyones bag,.....if so, park the car until you can get it serviced or you have time to diagnose further.
It may leave you stranded very soon because you may have ADD.
PS I doubt this is the issue ,but while your ( or your mechanic) in there change the fuel filte ,and check the fuel accumulator if these have not been serviced in the last 5-10K mi.