Modifications to custom subform elements.
Added few more variables required by drawSubLinks function.
Made one more variable global in formdisplay.php
Updated Template of custom subform