I have answered your question here. You also posted here which also contains a working JS function.
I am closing this thread and will disable your forum account if you continue to ask the same thing in multiple threads.