Adapted by Bruce Grant from a cgi script written by Matt Wright, and available from Matt's Script Archive