Updated CATLAB example

Includes a php function and ajax call to get the next subject number