var dollar = "$";  // String.fromCharCode(36); 

function estimate_via_dropdown(product, price) {
  var error = false;
  var total = price; 

  var displayErrors = false; 
  total += getAttPrice("attrib-1");
  total += getAttPrice("attrib-2");
  total += getAttPrice("attrib-3");
  total += getAttPrice("attrib-4");
  total += getAttPrice("attrib-5");
  total += getAttPrice("attrib-6");
  total += getAttPrice("attrib-7");
  total += getAttPrice("attrib-8");
  total += getAttPrice("attrib-9");
  total += getAttPrice("attrib-10");
  total += getAttPrice("attrib-11");
  total += getAttPrice("attrib-12");
  total += getAttPrice("attrib-13");
  total += getAttPrice("attrib-14");
  total += getAttPrice("attrib-15");
  total += getAttPrice("attrib-16");
  total += getAttPrice("attrib-17");
  total += getAttPrice("attrib-18");
  total += getAttPrice("attrib-19");
  total += getAttPrice("attrib-20");
  total += getAttPrice("attrib-21");
  total += getAttPrice("attrib-22");
  total += getAttPrice("attrib-23");
  total += getAttPrice("attrib-24");
  total += getAttPrice("attrib-25");
  total += getAttPrice("attrib-26");
  total += getAttPrice("attrib-27");
  total += getAttPrice("attrib-28");
  total += getAttPrice("attrib-29");
  total += getAttPrice("attrib-30");
  total += getAttPrice("attrib-31");
  total += getAttPrice("attrib-32");
  total += getAttPrice("attrib-33");
  total += getAttPrice("attrib-34");
  total += getAttPrice("attrib-35");
  total += getAttPrice("attrib-36");
  total += getAttPrice("attrib-37");
  total += getAttPrice("attrib-38");
  total += getAttPrice("attrib-39");
  total += getAttPrice("attrib-40");
  total += getAttPrice("attrib-41");
  total += getAttPrice("attrib-42");
  total += getAttPrice("attrib-43");
  total += getAttPrice("attrib-44");
  total += getAttPrice("attrib-45");
  total += getAttPrice("attrib-46");
  total += getAttPrice("attrib-47");
  total += getAttPrice("attrib-48");
  total += getAttPrice("attrib-49");
  total += getAttPrice("attrib-50");
  total += getAttPrice("attrib-51");
  total += getAttPrice("attrib-52");
  total += getAttPrice("attrib-53");
  total += getAttPrice("attrib-54");
  total += getAttPrice("attrib-55");


  
  var priceString = ""; 
  if (error) 
      priceString = "Price cannot be determined at this time";
  else {
     total += 0.0; 
      total = Math.round(total * 100)/100;
      priceString = "Price for this configuration is " + dollar + total.toFixed(2);
  }

 
  var child = document.getElementById("dropdownPrice").firstChild;
  var oldchild = child; 
  while ( (child != null) && (child.nodeType != 3) ) {
     oldchild = child; 
     child = child.nextSibling; 
  }
  if (child == null) { child = oldchild; }
  var newText=document.createTextNode(priceString);
  document.getElementById("dropdownPrice").replaceChild(newText, child); 
  document.getElementById("dropdownPrice").style.visibility = "visible"; 
  document.getElementById("dropdownPrice").style.fontWeight= "bold"; 
}

