add max_rows parameter to showChildRecords function
Restrict DateCheck function to just date type
remove blank lines