Accessibility for iPhone 3g?

My temporary iPhone 3G lock button and silent button doesn't work. Is there anything way for me to have a setting on the phone to where I can just tap in on my phone to lock it or put it on silent like the iPhone 4+? Jailbreaking? I just need an accessibility option to do those two things. Please post links!

Your going to need to plug your phone into iTunes and update the software to iOS 5. From there you can do the accessibility option. (There's no need to Jailbreak it) Once you have iOS 5 go to Settings>General>Accessibility> Turn on Assistive Touch.