If you read my root post you'll see it was written by a other programmer and also I'm trying to figure out what it does or what he wanted to accomplish! Off course the easiest way is to ask him, but it was a consultant who already left the company an even left the country :)
I'm just trying to fix some code and add some functionality in 'his' code...