Hello Anitha,
Here's more information on the Microsoft Translator API, including using AJAX API.
http://msdn.microsoft.com/en-us/library/dd576287.aspx
If you're mainly translating web pages, you could also try using the Microsoft Translator Widget.
http://www.microsofttranslator.com/widget/
Hope this information helps,
Microsoft Translator team