// calculate profit function calcprofit(form) { form.txtcost1.value = parseInt(form.txtcost.value) - 100 form.txtcost2.value = parseInt(form.txtcost1.value) + 25 form.txtcost3.value = parseInt(form.txtcost2.value) + 25 form.txtcost4.value = parseInt(form.txtcost3.value) + 25 form.txtcost5.value = parseInt(form.txtcost4.value) + 25 form.txtcost6.value = parseInt(form.txtcost5.value) + 25 form.txtcost7.value = parseInt(form.txtcost6.value) + 25 form.txtcost8.value = parseInt(form.txtcost7.value) + 25 form.txtcost9.value = parseInt(form.txtcost8.value) + 25 form.txtcost10.value = parseInt(form.txtcost9.value) + 25 form.txtyield1.value = parseInt(form.txtyield.value) -20 form.txtyield2.value = parseInt(form.txtyield1.value) + 10 form.txtyield3.value = parseInt(form.txtyield2.value) + 10 form.txtyield4.value = parseInt(form.txtyield3.value) + 10 form.txtyield5.value = parseInt(form.txtyield4.value) + 10 form.txtyield6.value = parseInt(form.txtyield5.value) + 10 form.txtyield7.value = parseInt(form.txtyield6.value) + 10 form.txtyield8.value = parseInt(form.txtyield7.value) + 10 form.txtyield9.value = parseInt(form.txtyield8.value) + 10 form.txtyield10.value = parseInt(form.txtyield9.value) + 10 form.txthidden.value = Math.round((form.txtprice.value * form.txtyield.value) - form.txtcost.value) form.txtresults.value = "At a cost of $"+form.txtcost.value+"/acre and a yield of "+form.txtyield.value+" bu./acre, the current price of $"+form.txtprice.value+" will return a profit of $"+form.txthidden.value+"/acre" form.txtaa.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost1.value) form.txtab.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost1.value) form.txtac.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost1.value) form.txtad.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost1.value) form.txtae.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost1.value) form.txtaf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost1.value) form.txtag.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost1.value) form.txtah.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost1.value) form.txtai.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost1.value) form.txtaj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost1.value) form.txtba.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost2.value) form.txtbb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost2.value) form.txtbc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost2.value) form.txtbd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost2.value) form.txtbe.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost2.value) form.txtbf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost2.value) form.txtbg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost2.value) form.txtbh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost2.value) form.txtbi.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost2.value) form.txtbj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost2.value) form.txtca.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost3.value) form.txtcb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost3.value) form.txtcc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost3.value) form.txtcd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost3.value) form.txtce.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost3.value) form.txtcf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost3.value) form.txtcg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost3.value) form.txtch.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost3.value) form.txtci.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost3.value) form.txtcj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost3.value) form.txtda.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost4.value) form.txtdb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost4.value) form.txtdc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost4.value) form.txtdd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost4.value) form.txtde.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost4.value) form.txtdf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost4.value) form.txtdg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost4.value) form.txtdh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost4.value) form.txtdi.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost4.value) form.txtdj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost4.value) form.txtea.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost5.value) form.txteb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost5.value) form.txtec.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost5.value) form.txted.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost5.value) form.txtee.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost5.value) form.txtef.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost5.value) form.txteg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost5.value) form.txteh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost5.value) form.txtei.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost5.value) form.txtej.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost5.value) form.txtfa.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost6.value) form.txtfb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost6.value) form.txtfc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost6.value) form.txtfd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost6.value) form.txtfe.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost6.value) form.txtff.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost6.value) form.txtfg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost6.value) form.txtfh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost6.value) form.txtfi.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost6.value) form.txtfj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost6.value) form.txtga.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost7.value) form.txtgb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost7.value) form.txtgc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost7.value) form.txtgd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost7.value) form.txtge.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost7.value) form.txtgf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost7.value) form.txtgg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost7.value) form.txtgh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost7.value) form.txtgi.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost7.value) form.txtgj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost7.value) form.txtha.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost8.value) form.txthb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost8.value) form.txthc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost8.value) form.txthd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost8.value) form.txthe.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost8.value) form.txthf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost8.value) form.txthg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost8.value) form.txthh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost8.value) form.txthi.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost8.value) form.txthj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost8.value) form.txtia.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost9.value) form.txtib.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost9.value) form.txtic.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost9.value) form.txtid.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost9.value) form.txtie.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost9.value) form.txtif.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost9.value) form.txtig.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost9.value) form.txtih.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost9.value) form.txtii.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost9.value) form.txtij.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost9.value) form.txtja.value = "$"+Math.round((form.txtprice.value * form.txtyield1.value) - form.txtcost10.value) form.txtjb.value = "$"+Math.round((form.txtprice.value * form.txtyield2.value) - form.txtcost10.value) form.txtjc.value = "$"+Math.round((form.txtprice.value * form.txtyield3.value) - form.txtcost10.value) form.txtjd.value = "$"+Math.round((form.txtprice.value * form.txtyield4.value) - form.txtcost10.value) form.txtje.value = "$"+Math.round((form.txtprice.value * form.txtyield5.value) - form.txtcost10.value) form.txtjf.value = "$"+Math.round((form.txtprice.value * form.txtyield6.value) - form.txtcost10.value) form.txtjg.value = "$"+Math.round((form.txtprice.value * form.txtyield7.value) - form.txtcost10.value) form.txtjh.value = "$"+Math.round((form.txtprice.value * form.txtyield8.value) - form.txtcost10.value) form.txtji.value = "$"+Math.round((form.txtprice.value * form.txtyield9.value) - form.txtcost10.value) form.txtjj.value = "$"+Math.round((form.txtprice.value * form.txtyield10.value) - form.txtcost10.value) } // calculate profit function calctarget(form) { form.txtcost1.value = parseInt(form.txtcost.value) - 100 form.txtcost2.value = parseInt(form.txtcost1.value) + 25 form.txtcost3.value = parseInt(form.txtcost2.value) + 25 form.txtcost4.value = parseInt(form.txtcost3.value) + 25 form.txtcost5.value = parseInt(form.txtcost4.value) + 25 form.txtcost6.value = parseInt(form.txtcost5.value) + 25 form.txtcost7.value = parseInt(form.txtcost6.value) + 25 form.txtcost8.value = parseInt(form.txtcost7.value) + 25 form.txtcost9.value = parseInt(form.txtcost8.value) + 25 form.txtcost10.value = parseInt(form.txtcost9.value) + 25 form.txtyield1.value = parseInt(form.txtyield.value) -20 form.txtyield2.value = parseInt(form.txtyield1.value) + 10 form.txtyield3.value = parseInt(form.txtyield2.value) + 10 form.txtyield4.value = parseInt(form.txtyield3.value) + 10 form.txtyield5.value = parseInt(form.txtyield4.value) + 10 form.txtyield6.value = parseInt(form.txtyield5.value) + 10 form.txtyield7.value = parseInt(form.txtyield6.value) + 10 form.txtyield8.value = parseInt(form.txtyield7.value) + 10 form.txtyield9.value = parseInt(form.txtyield8.value) + 10 form.txtyield10.value = parseInt(form.txtyield9.value) + 10 form.txthidden.value = (parseInt(form.txtcost.value) + parseInt(form.txtgoal.value)) / form.txtyield.value form.txtresults.value = "At a cost of $"+form.txtcost.value+"/acre and a yield of "+form.txtyield.value+" bu./acre, to achieve your profit goal of $"+form.txtgoal.value+"/acre you will need a price of $"+Math.round(form.txthidden.value*100)/100 +"/bu." form.txtaa.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtab.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtac.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtad.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtae.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtaf.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtag.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtah.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtai.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtaj.value = "$"+Math.round((parseInt(form.txtcost1.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtba.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtbb.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtbc.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtbd.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtbe.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtbf.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtbg.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtbh.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtbi.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtbj.value = "$"+Math.round((parseInt(form.txtcost2.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtca.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtcb.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtcc.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtcd.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtce.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtcf.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtcg.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtch.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtci.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtcj.value = "$"+Math.round((parseInt(form.txtcost3.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtda.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtdb.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtdc.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtdd.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtde.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtdf.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtdg.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtdh.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtdi.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtdj.value = "$"+Math.round((parseInt(form.txtcost4.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtea.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txteb.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtec.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txted.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtee.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtef.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txteg.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txteh.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtei.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtej.value = "$"+Math.round((parseInt(form.txtcost5.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtfa.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtfb.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtfc.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtfd.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtfe.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtff.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtfg.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtfh.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtfi.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtfj.value = "$"+Math.round((parseInt(form.txtcost6.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtga.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtgb.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtgc.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtgd.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtge.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtgf.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtgg.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtgh.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtgi.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtgj.value = "$"+Math.round((parseInt(form.txtcost7.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtha.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txthb.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txthc.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txthd.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txthe.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txthf.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txthg.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txthh.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txthi.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txthj.value = "$"+Math.round((parseInt(form.txtcost8.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtia.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtib.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtic.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtid.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtie.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtif.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtig.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtih.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtii.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtij.value = "$"+Math.round((parseInt(form.txtcost9.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 form.txtja.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield1.value*100)/100 form.txtjb.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield2.value*100)/100 form.txtjc.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield3.value*100)/100 form.txtjd.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield4.value*100)/100 form.txtje.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield5.value*100)/100 form.txtjf.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield6.value*100)/100 form.txtjg.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield7.value*100)/100 form.txtjh.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield8.value*100)/100 form.txtji.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield9.value*100)/100 form.txtjj.value = "$"+Math.round((parseInt(form.txtcost10.value) + parseInt(form.txtgoal.value)) / form.txtyield10.value*100)/100 } // ]]>