Java Script writter : I have a software called Autofill Magic, that can fill out a posting page like this one: [http://www.classifriedads.org/?view=post&cityid=561&lang=en&catid=5&subcatid=44&shortcutregion=][1]

After my Autofill Magic fills out this posting page and filled out all information, it actually presses the "Post Now" also, so that is great!

See picture! [Posting Page Java Rules][2]

But I am looking for a Java Script that will tell this software to:

1- Close the Firefox Tab, after it has submitted the ad.
2- Open a new Firefox Tab with the next url to fill out being ...
 (can be [http://www.classifriedads.org/?view=post&cityid=562&lang=en&catid=5&subcatid=46&shortcutregion=][3])

Can you please help me?


  [1]: http://www.classifriedads.org/?view=post&cityid=561&lang=en&catid=5&subcatid=44&shortcutregion=
  [2]: https://i.stack.imgur.com/9jKVQ.png
  [3]: http://www.classifriedads.org/?view=post&cityid=562&lang=en&catid=5&subcatid=46&shortcutregion=