Pavan
This page from Books Online should get you started:
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/c001c2e7-d092-43d4-8fa6-693b3ec4c3ea.htm
I'm a bit concerned, though, that if the user who creates the procedure doesn't have access to the objects in the stored procedures, you may have problems. I've never tried it out like that so I can't really say how difficult it's going to be.
John