Insert data using JavaScript and Web Service

The attached code snippet shows how to add data to a database using JavaScript and a Web Service. 
Next Recommended Reading Reading web.config file using JavaScript