dbh_do($query); logevent($ID, "agreements", 4, "database", "$IRMName updated record"); header("Location: $HTTP_REFERER"); ?>