Combine the values of your other 2 dropdowns add the effective tax rate then add in the value of your none taxed items so something like:
function calculate{
var total;
var taxRate = 6.5;
var taxTotal;
total = (parseFloat(document.form1.selectbox1.options[document.form1.selectbox1.selectedIndex].value) + parseFloat(document.form1.selectbox2.options[document.form1.selectbox2.selectedIndex].value));
taxTotal = total * taxRate;
total = total + taxTotal;
total = total + parseFloat(document.form1.selectbox2.options[document.form1.selectbox2.selectedIndex].value);
}
Of course you will have to deal with NaN values and such but that is how I would do it (more or less)
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|