// JavaScript Document<script language="JavaScript" type="text/JavaScript">

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function mosclick(form)
{
  var a = form.q1.value;
  var ta = a * 19.95;
  tota = ta.toFixed(2);
  form.t1.value = tota;
  temp(form);
}

function band(form)
{
  var b = form.q2.value;
  var tb = b * 7.95;
  totb = tb.toFixed(2);
  form.t2.value = totb;
  temp(form);
}

function bandglow(form)
{
  var c = form.q3.value;
  var tc = c * 8.95;
  totc = tc.toFixed(2);
  form.t3.value = totc;
  temp(form);
}

function bandvalue(form)
{
  var d = form.q4.value;
  var td = d * 19.95;
  totd = td.toFixed(2);
  form.t4.value = totd;
  temp(form);
}

function thermometer(form)
{
  var e = form.q5.value;
  var te = e * 69.95;
  tote = te.toFixed(2);
  form.t5.value = tote;
  temp(form);
}

function opticare(form)
{
  var f = form.q6.value;
  var tf = f * 15.95;
  totf = tf.toFixed(2);
  form.t6.value = totf;
  temp(form);
}

function travel(form)
{
  var g = form.q7.value;
  var tg = g * 12.95;
  totg = tg.toFixed(2);
  form.t7.value = totg;
  temp(form);
}

function traveljunior(form)
{
  var h = form.q8.value;
  var th = h * 12.95;
  toth = th.toFixed(2);
  form.t8.value = toth;
  temp(form);
}

function bionase(form)
{
  var i = form.q9.value;
  var ti = i * 129.95;
  toti = ti.toFixed(2);
  form.t9.value = toti;
  temp(form);
}

function wetstop(form)
{
  var j = form.q10.value;
  var tj = j * 129.95;
  totj = tj.toFixed(2);
  form.t10.value = totj;
  temp(form);
}

function temp(form)
{
  var tot = 0;
  tot = (form.q1.value * 19.95) + (form.q2.value * 7.95) + (form.q3.value * 8.95) +(form.q4.value * 19.95) + (form.q5.value * 69.95) + (form.q6.value * 15.95) + (form.q7.value * 12.95) + (form.q8.value * 12.95) + (form.q9.value * 129.95) + (form.q10.value * 129.95) + 6.5;
  total = tot.toFixed(2);
  form.total.value = total;
  form.PurchaseValue.value = total;
}