This code is distributed as public domain:
  feel free to use code as you want.
  
Written at 19 march 2006, Anton Fedorov <datacompboy@call2ru.com>