I have realised that there is a much simpler way of looking at this.
How would I add up all the fields within a form or another respectable body. There are a series of text fields that contain information some are dynamically loaded in but lets not worry about that for more.
Quite simply all the fields have a unique ID but with the same start structure in this case 'product_total_price_PRI_....' (whereby the ... is a unique number).
So my understanding of javascript is still in the reverse engineering side of things rather than building arrays and objects, so how would I add up all those fields with an onClick event for example. Something like onclick="total();"
Many Thanks,