function UpdatePrice(){
var f = document.frmBrochures;
var sqty = f.Quantity.options[f.Quantity.options.selectedIndex].value;
var ssize = f.Sizes.options[f.Sizes.options.selectedIndex].value;
var sink = f.Ink.options[f.Ink.options.selectedIndex].value;
var sfolding = f.Folding.options[f.Folding.options.selectedIndex].value;
var total;
var qPrice = parseFloat(QuantityMatrix[sqty]);
var sPrice = parseFloat(SizeList[sqty][ssize]);
var fPrice = parseFloat(FoldingList[sqty][sfolding]);
var weight = parseFloat(WeightMatrix[sqty]);
var inkprice = InkList[sqty][sink];
var iPrice  = inkprice.split("/");

total = qPrice + sPrice + fPrice + parseFloat(iPrice[0]);
if (ssize == "11 X 17") {
total = total + parseFloat(iPrice[1]);
 }
 
f.Price.value = total;
f.Weight.value = weight;
document.getElementById('strRealPrice').innerHTML = '$' + formatCurrency(total);
document.getElementById('RealSize').innerHTML = ssize;
}

function ResetPrice(){
document.frmBrochures.reset();
UpdatePrice();
}