A motion was approved Friday to detain pre-trial a Hanover Park man accused of robbing two Lombard 7-Eleven convenience stores at gunpoint, prosecutors said.