As everybody answered, standard Arabic is understandable all around Middle East. Also, you have to note that everything in Arabic is written with standard Arabic. Only the spoken language differs.
For the dialects, if you are going to work in a Middle East country, it’s obvious that you have to know some of the country’s dialect. If you are planning to learn only an Arabic accent, Egyptian is easer for English native speakers, and somewhat, widely known.