sample permit script for circ and a file of utility functions for the circ scripts