function showResult(result) {

// adjust the following line if result must popup somewhere else

document.calculator.respons01.value = result;	

}

function findPrice() {

var price = document.calculator.p1.value * 5 + 

				document.calculator.p2.value * 5 + 

				document.calculator.p3.value * 5 + 

				document.calculator.p4.value * 10 +

				document.calculator.p5.value * 5 + 

				document.calculator.p6.value * 15 + 

				document.calculator.p7.value * 20 +

				document.calculator.p8.value * 10 + 

				document.calculator.p9.value * 10 + 

				document.calculator.p10.value * 10 +

				document.calculator.p11.value * 15 + 

				document.calculator.p12.value * 3 + 

				document.calculator.p13.value * 15 +

				document.calculator.p14.value * 10 + 

				document.calculator.p15.value * 10 + 

				document.calculator.p16.value * 30 + 

				document.calculator.p17.value * 15 + 

				document.calculator.p18.value * 40 +

				document.calculator.p19.value * 20 + 

				document.calculator.p20.value * 15 + 

				document.calculator.p21.value * 9 +

				document.calculator.p22.value * 12 + 

				document.calculator.p23.value * 20 + 

				document.calculator.p24.value * 20 +

				document.calculator.p25.value * 40 + 

				document.calculator.p26.value * 25 + 

				document.calculator.p27.value * 10 +

				document.calculator.p28.value * 10 + 

				document.calculator.p29.value * 10 +				

				document.calculator.p30.value * 12 +

				document.calculator.p31.value * 1.5+

				document.calculator.p32.value * 33.85 + 

				document.calculator.p33.value * 2 + 

				document.calculator.p34.value * 17.58 +

				document.calculator.p35.value * 2 + 

				document.calculator.p36.value * 23 + 

				document.calculator.p37.value * 26.96 +

				document.calculator.p38.value * 2.5 + 

				document.calculator.p39.value * 10 + 

				document.calculator.p40.value * 1 +

				document.calculator.p41.value * 8 + 

				document.calculator.p42.value * 10 + 

				document.calculator.p43.value * 5 +

				document.calculator.p44.value * 5 + 

				document.calculator.p45.value * 19.5 + 

				document.calculator.p46.value * 2 + 

				document.calculator.p47.value * 15 + 

				document.calculator.p48.value * 20 +

				document.calculator.p49.value * .5 + 

				document.calculator.p50.value * .28 + 

				document.calculator.p51.value * .3 +

				document.calculator.p52.value * .6 + 

				document.calculator.p53.value * .3 + 

				document.calculator.p54.value * .25 +

				document.calculator.p55.value * .25 + 

				document.calculator.p56.value * 3 + 

				document.calculator.p57.value * 7 +

				document.calculator.p58.value * .5 + 

				document.calculator.p59.value * 1 + 				

				document.calculator.p60.value * 1 +

				document.calculator.p61.value * 12 +

				document.calculator.p62.value * 15 + 

				document.calculator.p63.value * 4 + 

				document.calculator.p64.value * 1 +

				document.calculator.p65.value * 2 + 

				document.calculator.p66.value * 1 + 

				document.calculator.p67.value * 1.5 +

				document.calculator.p68.value * 15 + 

				document.calculator.p69.value * 5 + 

				document.calculator.p70.value * 5 +

				document.calculator.p71.value * 30 + 

				document.calculator.p72.value * 13 + 

				document.calculator.p73.value * 15 +

				document.calculator.p74.value * 10 + 

				document.calculator.p75.value * 2 + 

				document.calculator.p76.value * 2 + 

				document.calculator.p77.value * 1 + 

				document.calculator.p78.value * 4 +

				document.calculator.p79.value * 11 + 

				document.calculator.p80.value * 18 + 

				document.calculator.p81.value * 2 +

				document.calculator.p82.value * .5 + 

				document.calculator.p83.value * 5 + 

				document.calculator.p84.value * 7 +

				document.calculator.p85.value * 70 + 

				document.calculator.p86.value * 20 + 

				document.calculator.p87.value * 9.5 +

				document.calculator.p88.value * 1 + 

				document.calculator.p89.value * 10 + 

				document.calculator.p90.value * 7;

				document.calculator.p60.value * 10;

showResult(price);

}

function filterNonNumeric(field) {

var result = new String();

var numbers = "0123456789";

var chars = field.value.split(""); // create array 

for (i = 0; i < chars.length; i++) {

if (numbers.indexOf(chars[i]) != -1) result += chars[i];

}

if (field.value != result) field.value = result;

}

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_findObj(n, d) { //v4.0

  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 && document.getElementById) x=document.getElementById(n); return x;

}



function MM_nbGroup(event, grpName) { //v3.0

  var i,img,nbArr,args=MM_nbGroup.arguments;

  if (event == "init" && args.length > 2) {

    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {

      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;

      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();

      nbArr[nbArr.length] = img;

      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {

        if (!img.MM_up) img.MM_up = img.src;

        img.src = img.MM_dn = args[i+1];

        nbArr[nbArr.length] = img;

    } }

  } else if (event == "over") {

    document.MM_nbOver = nbArr = new Array();

    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {

      if (!img.MM_up) img.MM_up = img.src;

      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];

      nbArr[nbArr.length] = img;

    }

  } else if (event == "out" ) {

    for (i=0; i < document.MM_nbOver.length; i++) {

      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }

  } else if (event == "down") {

    if ((nbArr = document[grpName]) != null)

      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }

    document[grpName] = nbArr = new Array();

    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {

      if (!img.MM_up) img.MM_up = img.src;

      img.src = img.MM_dn = args[i+1];

      nbArr[nbArr.length] = img;

  } }

}


