We could provide a script for that*, but then again you still wont know what was wrong in your first code.
So, if you wanna know what is wrong in your code, post the complete code you have....
*But such a script would be extremely highly annoying, not to mention the basis for stupid script-kiddie virusses which send links to every open window to advertise or spread something.