function TextQty_OnFocus(el) {
  el.className = "txt_qty_active";
}
function TextQty_OnBlur(el) {
  el.className = "txt_qty";
}
function TextQty_OnChange(el) {
  UpdatePrices();
}

function UpdatePrices() {
  total = 0.0;
  for ( k in ItemPrices )
  {
    el = document.getElementById("txt_item_qty_" + k);
    if (el) {
      n = parseInt(el.value);
      if (isNaN(n) == false) {
        if (n>0 && n<9999) {
          total += n*ItemPrices[k];
        }
      }
    }
  }
  el = document.getElementById("span_total_cost");
  if (el) {
    el.innerHTML = total.toFixed(2);
  }
  return total;
}

function DoMail() {
}