Javascript mathematical script

As you can see as soon as you enter the three dimensions (for example try to input 5 x 10 x 7) some lines of the table in the lower part of the page gets highlighted in yellow color.

The lines that get highlighted are those of the shipping methods where the entered dimensions fits.

I need this new script:

On the right of &quot;[ ] cm x [ ] cm x [ ] cm&quot; I want it to display on-the-fly (activated by the same Javascript mechanism that highlights the lines in the table below) a little informational/warning box that informs the user of how many cm he needs to remove from the size of the pack in order to include the nearest smaller shipping method.

EXAMPLES of the exact informations that it must display:

- if the user inputs 32 x 26 x 1 it must display &quot;note: with only 1 cm less (max 35,3 x 25 x 5 cm) it will be included Posta Prioritaria - Extra

- if the user inputs 65 X 65 X 50 it must display &quot;note: with only 10 cm less (max Somma dei tre lati: 170 cm) it will be included eBoost-eBay (formato estero) too, with possible saving of costs.&quot;

We are absolutely suitable for this project as we have already done the different type(Social Community/Networking/Dating, Mambo, Joomla, Oscommerce, Zencart, Real Estate, Ecommerce/Auction, Video Related, General anLisää