If you would like some more versatile door code that allows you to use triggers and panels to control your doors as well as the option to have them scan or impact controlled. Then you might consider this module on GameKnack.
www.gameknack.com/cgi-bin/itembrowse.cgi?item_number=MOD6&category=module&subcategory=Map_EntitiesIt offers many great configurations for most door and simple mover needs.