Help Iphone 4 Help! How to reset Iphone 4?

Ok i got an iphone 4 that i was locked out of (forgetten password) and my home button does not work. How do i factory reset a phone that does not have a home button I GOT ASSITIVE TOUCH.

Added (1). IT SAYS I NEED THE PASSCODE I CAN't SYNC

Just connect your phone to your computer and go to iTunes and if its not synced yet with your computer sync it and then press reset to factory settings.

Press on the button on the top of the iphone
You know the one you use to turn on the phone, that make ( tsh) sound when you close it
Keep pressing it until they say rest your iphone

If you have a Warranty on your iPhone then try calling Apple if you do not have a warranty the only way you can get through it is to pay $90.00 for warranty to then get you iPhone unlocked.