Update main.php

getcm function to handle cmcontinue

and 

jcon function to add the "start-from-certain-article" feature