To compare the intraoperative pain , anxiety , undesired movement , and cooperation between patients receiving oral diazepam or intravenous ( IV ) midazolam for conscious sedation during cataract surgery under topical anesthesia .