@Yogananda - please learn How to use this site - you do NOT need to quote entire post and you definitely you DO NOT want to repeat the code with incorrect formatting. Edit your post. Remove quote. And just use @empottasch link to refer to original author.
UPDATE: I edited this because you deleted the post instead of EDITING it.
Incorrectly formatted posts should be EDITED, not deleted.