This program has been written by the following authors: Junichi Uekawa -- main code Dale Amon -- for runhooks $Id$