Im trying to add some tracking code for an affiliate program to a nop webshop. This involves retriving the total value of an order with javascript so I can pass it to the URL for the tracking pixel.

However, Im not sure how to retrive the order total in javascript, anyone have any idea? The page Im doing this on is CheckoutCompleted.aspx, if that is of any relevance.