hmmmm, overall this is a well written request and pretty simple to do. however your base script if formatted like crap. i know you didnt write it however for the future you will get better results if you fix the spacing. If i get some free time on my day off i will do it(sunday/monday). if not im sure some one else will. this is fairly simple.