1. Press-hold the Power button until the phone turns on.
2. Select Menu > Settings > Backup & Reset > Factory data reset.

3. Continue to Reset device > Erase everything. Voila, the factory reset is over.