var YellowGoldppg =56;
var Differential = 1.00;
var Adjuster = 0.00;
var SugRet = 1.6;

var Weight, GoldTypeUpcharge, YPrice, roYprice, retPrice, roretPrice;

function calcyPrice(Weight,GoldTypeUpcharge) 
{
YPrice = (  (YellowGoldppg + GoldTypeUpcharge ) * Weight   * Differential) + Adjuster;
roYprice=Math.round(YPrice);
 document.write("Your Price: $"+[roYprice]+".00");
}
		
function calcrPrice(roYprice) 
{
retPrice = roYprice * SugRet;
roretPrice=Math.round(retPrice);
document.write("<center> Suggested Retail <BR>Price: $"+[roretPrice]+".00");
}
	
function getPrice(form)
{
YPrice = ((YellowGoldppg + (form.goldtypeupcharge.value * 1.0)) * form.weight.value * Differential) + Adjuster;
roYprice = Math.round(YPrice);
form.amount.value = roYprice;
}
