<!--
var SAmt1 = 0.00,SAmt2 = 0.00,SAmt3= 0.00,SAmt4 = 0.00,SAmt5 = 0.00,SAmt6= 0.00,SAmt7= 0.00,SAmt8 = 0.00,SAmt9 = 0.00,SAmt10= 0.00,SAmt11 = 0.00,SAmt12 = 0.00,SAmt13= 0.00,SAmt14 = 0.00,SAmt15 = 0.00,SAmt16= 0.00,SAmt17= 0.00,SAmt18 = 0.00,SAmt19 = 0.00,SAmt20= 0.00,SAmt21 = 0.00,SAmt22 = 0.00,SAmt23= 0.00,SAmt24 = 0.00,SAmt25 = 0.00,SAmt26= 0.00,SAmt27= 0.00,SAmt28 = 0.00,SAmt29 = 0.00,SAmt30= 0.00,SAmt31 = 0.00,SAmt32 = 0.00,SAmt33= 0.00,SAmt34 = 0.00,SAmt35 = 0.00,SAmt36= 0.00,SAmt37= 0.00,SAmt38 = 0.00,SAmt39 = 0.00,SAmt40= 0.00,SAmt41 = 0.00,SAmt42 = 0.00,SAmt43= 0.00,SAmt44 = 0.00,SAmt45 = 0.00,SAmt46= 0.00,SAmt47= 0.00,SAmt48 = 0.00;
var STax = 0.00,SSubTotal = 0.00,STotal = 0.00;
var Item1 ="",Item2 = "",Item3 = "",Item4 ="",Item5 = "",Item6 = "",Item7 = "",Item8 = "",Item9 = "",Item10 = "",Item11 ="",Item12 = "",Item13 = "",Item14 ="",Item15 = "",Item16 = "",Item17 = "",Item18 = "",Item19 = "",Item20 = "",Item21 ="",Item22 = "",Item23 = "",Item24 ="",Item25 = "",Item26 = "",Item27 = "",Item28 = "",Item29 = "",Item20 = "",Item31 ="",Item32 = "",Item33 = "",Item34 ="",Item35 = "",Item36 = "",Item37 = "",Item38 = "",Item39 = "",Item40 = "",Item41 = "",Item42 = "",Item43 = "",Item44 ="",Item45 = "",Item46 = "",Item47 = "",Item48 = "";
var SShipping = 0;

/*****************
** Add a decimal point to a number
*/

function AddDecimal(number) {
  var withdecimal = "";
  var num = "" + number;
  if (num.length == 0) {
    withdecimal += "0";
  } else if (num.length == 1) {
    withdecimal += "0.0" + num;
  } else if (num.length == 2) {
    withdecimal += "0." + num;
  } else {
  withdecimal += num.substring(0, num.length - 2);
  withdecimal += "."
  withdecimal += num.substring(num.length - 2, num.length);
  }
  return withdecimal;
}

function compute(form)
{
 SAmt1 = Math.round(eval(document.forms[0].Item1.value * 66));
 SAmt2 = Math.round(eval(document.forms[0].Item2.value * 35));
 SAmt3 = Math.round(eval(document.forms[0].Item3.value * 35));
 SAmt4 = Math.round(eval(document.forms[0].Item4.value * 114));
 SAmt5 = Math.round(eval(document.forms[0].Item5.value * 13));
 SAmt6 = Math.round(eval(document.forms[0].Item6.value * 253));
 SAmt7 = Math.round(eval(document.forms[0].Item7.value * 119));
 SAmt8 = Math.round(eval(document.forms[0].Item8.value * 158));
 SAmt9 = Math.round(eval(document.forms[0].Item9.value * 128));
 SAmt10 = Math.round(eval(document.forms[0].Item10.value * 212));
 SAmt11 = Math.round(eval(document.forms[0].Item11.value * 30));
 SAmt12 = Math.round(eval(document.forms[0].Item12.value * 105));
 SAmt13 = Math.round(eval(document.forms[0].Item13.value * 186));
 SAmt14 = Math.round(eval(document.forms[0].Item14.value * 125));
 SAmt15 = Math.round(eval(document.forms[0].Item15.value * 64));
 SAmt16 = Math.round(eval(document.forms[0].Item16.value * 39));
 SAmt17 = Math.round(eval(document.forms[0].Item17.value * 97));
 SAmt18 = Math.round(eval(document.forms[0].Item18.value * 20));
 SAmt19 = Math.round(eval(document.forms[0].Item19.value * 37));
 SAmt20 = Math.round(eval(document.forms[0].Item20.value * 37));
 SAmt21 = Math.round(eval(document.forms[0].Item21.value * 82));
 SAmt22 = Math.round(eval(document.forms[0].Item22.value * 52));
 SAmt23 = Math.round(eval(document.forms[0].Item23.value * 38));
 SAmt24 = Math.round(eval(document.forms[0].Item24.value * 20));
 SAmt25 = Math.round(eval(document.forms[0].Item25.value * 99));
 SAmt26 = Math.round(eval(document.forms[0].Item26.value * 38));
 SAmt27 = Math.round(eval(document.forms[0].Item27.value * 38));
 SAmt28 = Math.round(eval(document.forms[0].Item28.value * 82));
 SAmt29 = Math.round(eval(document.forms[0].Item29.value * 84));
 SAmt30 = Math.round(eval(document.forms[0].Item30.value * 67));
 SAmt31 = Math.round(eval(document.forms[0].Item31.value * 49));
 SAmt32 = Math.round(eval(document.forms[0].Item32.value * 38));
 SAmt33 = Math.round(eval(document.forms[0].Item33.value * 67));
 SAmt34 = Math.round(eval(document.forms[0].Item34.value * 50));
 SAmt35 = Math.round(eval(document.forms[0].Item35.value * 19));
 SAmt36 = Math.round(eval(document.forms[0].Item36.value * 79));
 SAmt37 = Math.round(eval(document.forms[0].Item37.value * 79));
 SAmt38 = Math.round(eval(document.forms[0].Item38.value * 139));
 SAmt39 = Math.round(eval(document.forms[0].Item39.value * 56));
 SAmt40 = Math.round(eval(document.forms[0].Item40.value * 35));
 SAmt41 = Math.round(eval(document.forms[0].Item41.value * 250));
 SAmt42 = Math.round(eval(document.forms[0].Item42.value * 1900));
 SAmt43 = Math.round(eval(document.forms[0].Item43.value * 38));
 SAmt44 = Math.round(eval(document.forms[0].Item44.value * 20));
 SAmt45 = Math.round(eval(document.forms[0].Item45.value * 10));
 SAmt46 = Math.round(eval(document.forms[0].Item46.value * 16));
 SAmt47 = Math.round(eval(document.forms[0].Item47.value * 34));
 SAmt48 = Math.round(eval(document.forms[0].Item48.value * 68));
 SAmt49 = Math.round(eval(document.forms[0].Item49.value * 89));
 SSubTotal =(SAmt1 + SAmt2 + SAmt3 + SAmt4 + SAmt5 + SAmt6 + SAmt7 + SAmt8 + SAmt9 + SAmt10 + SAmt11 + SAmt12 + SAmt13 + SAmt14 + SAmt15 + SAmt16 + SAmt17 + SAmt18 + SAmt19 + SAmt20 + SAmt21 + SAmt22 + SAmt23 + SAmt24 + SAmt25 + SAmt26 + SAmt27 + SAmt28 + SAmt29 + SAmt30 + SAmt31 + SAmt32 + SAmt33 + SAmt34 + SAmt35 + SAmt36 + SAmt37 + SAmt38 + SAmt39 + SAmt40 + SAmt41 + SAmt42 + SAmt43 + SAmt44 + SAmt45 + SAmt46 + SAmt47 + SAmt48 + SAmt49) ;
 STax = 0;
 STotal =SSubTotal + STax;
 document.forms[0].SubTotal.value = AddDecimal(SSubTotal);
}

function ClearForm(form)
{
document.forms[0].Item1.value = "";
document.forms[0].Item2.value = "";
document.forms[0].Item3.value = "";
document.forms[0].Item4.value = "";
document.forms[0].Item5.value = "";
document.forms[0].Item6.value = "";
document.forms[0].Item7.value = "";
document.forms[0].Item8.value = "";
document.forms[0].Item9.value = "";
document.forms[0].Item10.value = "";
document.forms[0].Item11.value = "";
document.forms[0].Item12.value = "";
document.forms[0].Item13.value = "";
document.forms[0].Item14.value = "";
document.forms[0].Item15.value = "";
document.forms[0].Item16.value = "";
document.forms[0].Item17.value = "";
document.forms[0].Item18.value = "";
document.forms[0].Item19.value = "";
document.forms[0].Item20.value = "";
document.forms[0].Item21.value = "";
document.forms[0].Item22.value = "";
document.forms[0].Item23.value = "";
document.forms[0].Item24.value = "";
document.forms[0].Item25.value = "";
document.forms[0].Item26.value = "";
document.forms[0].Item27.value = "";
document.forms[0].Item28.value = "";
document.forms[0].Item29.value = "";
document.forms[0].Item30.value = "";
document.forms[0].Item31.value = "";
document.forms[0].Item32.value = "";
document.forms[0].Item33.value = "";
document.forms[0].Item34.value = "";
document.forms[0].Item35.value = "";
document.forms[0].Item36.value = "";
document.forms[0].Item37.value = "";
document.forms[0].Item38.value = "";
document.forms[0].Item39.value = "";
document.forms[0].Item40.value = "";
document.forms[0].Item41.value = "";
document.forms[0].Item42.value = "";
document.forms[0].Item43.value = "";
document.forms[0].Item44.value = "";
document.forms[0].Item45.value = "";
document.forms[0].Item46.value = "";
document.forms[0].Item47.value = "";
document.forms[0].Item48.value = "";
document.forms[0].Item49.value = "";
SSubTotal = 0;
document.forms[0].SubTotal.value = 0;
SAmt1 = 0;
SAmt2 = 0;
SAmt3 = 0;
SAmt4 = 0;
SAmt5 = 0;
SAmt6 = 0;
SAmt7 = 0;
SAmt8 = 0;
SAmt9 = 0;
SAmt10 = 0;
SAmt11 = 0;
SAmt12 = 0;
SAmt13 = 0;
SAmt14 = 0;
SAmt15 = 0;
SAmt16 = 0;
SAmt17 = 0;
SAmt18 = 0;
SAmt19 = 0;
SAmt20 = 0;
SAmt21 = 0;
SAmt22 = 0;
SAmt23 = 0;
SAmt24 = 0;
SAmt25 = 0;
SAmt26 = 0;
SAmt27 = 0;
SAmt28 = 0;
SAmt29 = 0;
SAmt30 = 0;
SAmt31 = 0;
SAmt32 = 0;
SAmt33 = 0;
SAmt34 = 0;
SAmt35 = 0;
SAmt36 = 0;
SAmt37 = 0;
SAmt38 = 0;
SAmt39 = 0;
SAmt40 = 0;
SAmt41 = 0;
SAmt42 = 0;
SAmt43 = 0;
SAmt44 = 0;
SAmt45 = 0;
SAmt46 = 0;
SAmt47 = 0;
SAmt48 = 0;
SAmt49 = 0;
SSubTotal = 0;
document.forms[0].SubTotal.value = 0;
}
