To simplify Ajax integration into your web page, we've created an Ajax Script generator. Go to this web page:
http://www.mhsoftware.com/ajaxgen/
Fill out the form and follow the instructions. For reference, you can also look at the example page at:
http://www.mhsoftware.com/caldemo/AjaxDemo.html
When the page is visible in the browser, right click on it and choose View Source.