This script is a modified version of a script found at many sites on the net. 

