This is the syntax for try...catch statement of JavaScript.

try
{
//process
}
catch(err)
{
//error handling
}

And you can add finally{} if you need.

thanks.

lynnnay@2009