bug 657: moved creation of org table to notary.inc.php
bug 657:  exchanged the form with the functions
bug 657: fixed criteria settings