Please credit the original author of the script. You got the core of your script from the link posted on this thread: http://www.hawkee.com/phpBB2/viewtopic.php?t=10572