Add this line to the form tag of the generic content (in this case my-generic3.html):

onsubmit="parent.adpHide('tplayercustom1');

Add this to the runOnClose member of the custom instance:

DFS.adv.initLayer("tplayervideo1",0);