The reference you posted looks correct, but if you are getting an error with it then there may be a problem. You should take a look at the code on the sample page and look to see if this is how you are using the function. If it is used in the same way you should have the same result. Please post back and let me know specifically the result you are getting if it is not working correctly for you.