First of all I would like to let all of you know that most of the utility functions which I'm going to post here are inspired or are clones of other developer’s pieces of code. By this I have no intention to assume any credit. The reason why their names or web links are not posted is simple, I don't remember them :). If you recognize your work in any of the following lines just let me know.