(a) A physical custodian shall not be allowed to maintain against the legal custodian any action for divorce, alimony, child custody, change of alimony, change of child custody, or change of visitation rights or any application for contempt of court so long as custody of the child is withheld from the legal custodian in violation of the custody order.(b) A legal custodian shall not be allowed to maintain any action for divorce, alimony, child custody, change of alimony, change of child custody, or change of visitation rights or any application for contempt of court so long as visitation rights are withheld in violation of the custody order.