В продолжение темы, решение тут
http://forum.tslab.ru/ubb/ubbthreads.php?ubb=showflat&Number=61816&#Post61816