http://dynamicslollipops.blogspot.com/2011/06/dynamics-crm-2011-javascript-and.html