I see a lot of errors in this snippet of code. I'm not sure if it's vBulletin forum text formatting though... Can You send me this file/code on data-diggers at data-diggers.com?