function jumpBox(list) {
   location.href = list.options[list.selectedIndex].value
   }

//2001 All Rights Reserved, Daniel C. Peterson
//http://www.webwinder.com
//Shareware Commercial License Number:13110010

function formatNum(Vnum) {

   if(Vnum > 99000000) {
   alert("Sorry, this will not generate numbers larger that 99 million.");
   focus();
   } else {
   
   var V10million = parseInt(Vnum / 10000000);

   var V1million = (Vnum % 10000000)  / 1000000;
      if(V1million / 1000000 == 1) {
      V1million = 1;
      } else
      if(V1million < 1) {
      V1million = "0";
     } else {
      V1million = parseInt(V1million,10);
     }

    var V100thousand = (Vnum % 1000000)  / 100000;
      if(V100thousand / 100000 == 1) {
      V100thousand = 1;
      } else
      if(V100thousand < 1) {
      V100thousand = "0";
     } else {
      V100thousand = parseInt(V100thousand,10);
     }

   var V10thousand = (Vnum % 100000)  / 10000;
      if(V10thousand / 10000 == 1) {
      V10thousand = 1;
      } else
      if(V10thousand < 1) {
      V10thousand = "0";
      } else {
      V10thousand = parseInt(V10thousand,10);
      }

   var V1thousand = (Vnum % 10000)  / 1000;
      if(V1thousand / 1000 == 1) {
      V1thousand = 1;
      } else
      if(V1thousand < 1) {
      V1thousand = "0";
     } else {
      V1thousand = parseInt(V1thousand,10);
     }

   var Vhundreds = (Vnum % 1000)  / 100;
      if(Vhundreds / 100 == 1) {
      Vhundreds = 1;
      } else
      if(Vhundreds < 1) {
      Vhundreds = "0";
     } else {
      Vhundreds = parseInt(Vhundreds,10);
     }

   var Vtens = (Vnum % 100)  / 10;
      if(Vtens / 10 == 1) {
      Vtens = 1;
      } else
      if(Vtens < 1) {
      Vtens = "0";
     } else {
      Vtens = parseInt(Vtens,10);
     }

   var Vones = (Vnum % 10)  / 1;
      if(Vones / 1 == 1) {
      Vones = 1;
      } else
      if(Vones < 1) {
      Vones = "0";
     } else {
      Vones = parseInt(Vones,10);
     }

  //START UPGRADE
var Vcents = 0;

if(Vnum % 1 * 100 < 1) {
   Vcents = 0;
   } else {
   Vcents = parseInt(((eval(Vnum % 1) * 100)),10);
   }
//END UPGRADE

 if(Vcents < 1) {
  Vcents = "00";
  }
  else
  if(Vcents % 10 == 0) {
  Vcents = Vcents + "0";
  }
  else
  if(Vcents % 10 == Vcents) {
  Vcents = "0" + Vcents;
  } else {
  Vcents = Vcents;
  }

  if(Vcents == "900") {
  Vcents = "90";
  } else
  if(Vcents == "800") {
  Vcents = "80";
  } else 
  if(Vcents == "700") {
  Vcents = "70";
  } else 
  if(Vcents == "600") {
  Vcents = "60";
  } else 
  if(Vcents == "500") {
  Vcents = "50";
  } else 
  if(Vcents == "400") {
  Vcents = "40";
  } else 
  if(Vcents == "300") {
  Vcents = "30";
  } else
  if(Vcents == "200") {
  Vcents = "20";
  } else
  if(Vcents == "100") {
  Vcents = "10";
  } else {
  Vcents = Vcents;
  }

   
   var Vformat = "";

   if(Vnum >= 10000000) {
   Vformat = (V10million + "" + V1million + "," + V100thousand + "" + V10thousand + "" + V1thousand + "," + Vhundreds + "" + Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 1000000) {
   Vformat = (V1million + "," + V100thousand + "" + V10thousand + "" + V1thousand + "," + Vhundreds + "" + Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 100000) {
   Vformat = (V100thousand + "" + V10thousand + "" + V1thousand + "," + Vhundreds + "" + Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 10000) {
   Vformat = (V10thousand + "" + V1thousand + "," + Vhundreds + "" + Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 1000) {
   Vformat = (V1thousand + "," + Vhundreds + "" + Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 100) {
   Vformat = (Vhundreds + "" + Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 10) {
   Vformat = (Vtens + "" + Vones + "." + Vcents);
   }
   else
   if(Vnum >= 1) {
   Vformat = (Vones + "." + Vcents);
   } else {
   Vformat = ("0." + Vcents);

   }

  return Vformat;

  }
}


function computeForm(form) {

if(form.moRent.value == "" || form.moRent.value == 0) {
   alert("Please enter the amount of your monthly rent payment.");
   form.moRent.focus();
   } else
      if(form.homeCost.value == "" || form.homeCost.value == 0) {
      alert("Please enter the purchase price of the home.");
      form.homeCost.focus();
   } else
      if(form.noYears.value == "" || form.noYears.value == 0) {
      alert("Please your number of years you are financing the home for.");
      form.noYears.focus();
   } else
      if(form.payRate.value == "" || form.payRate.value == 0) {
      alert("Please enter the mortgage's annual interest rate.");
      form.payRate.focus();
   } else
      if(form.stayYrs.value == "" || form.payRate.value == 0) {
      alert("Please enter the number of years you plan to stay in this property.");
      form.payRate.focus();
   } else {

//GET RENTAL INFO
var VmoRent = form.moRent.value;
var VtotRent = 0;

var VmoRentIns = form.moRentIns.value;
if(VmoRentIns == "" || VmoRentIns == 0) {
VmoRentIns = 0
}

var VinflateRate = form.inflateRate.value;
if(VinflateRate == "" || VinflateRate == 0) {
VinflateRate = 0
} else
if(VinflateRate >= 1) {
VinflateRate = VinflateRate / 100;
}
VinflateRate = eval(VinflateRate) + eval(1);

//GET TIME INFO & CONVERT TO MONTHS
var VstayYrs = form.stayYrs.value;
var VstayMonths = VstayYrs * 12;
var count = 0;

//GET LOAN INFO
var i = form.payRate.value;
if (i > 1.0) {
  i = i / 100.0;
 }
i /= 12;

var VhomeCost = form.homeCost.value;
var VnoYears = form.noYears.value;

var VdownPmt = form.downPmt.value;

var VorigPrin = eval(VhomeCost) - eval(VdownPmt);
var intPort = 0;
var VaccumInt = 0;
var prinPort = 0;
var prin = VorigPrin;

//CALULCATE MONTHLY MORTGAGE PAYMENT
var noMonths = VnoYears * 12;

var pow = 1;
for (var j = 0; j < noMonths; j++)
   pow = pow * (1 + i);

var VmoPmt = (VorigPrin * pow * i) / (pow - 1);

//GET HOME APPRECIATION INFO
var VapprecRate = form.apprecRate.value;
if(VapprecRate == "" || VapprecRate == 0) {
VapprecRate = 0;
} else
if(VapprecRate >= 0) {
VapprecRate = VapprecRate / 100;
}
VapprecRate = eval(VapprecRate) + eval(1);
var VaccumApprec = VhomeCost * VapprecRate;

//GET PMI (PRIVATE MORTGAGE INSURANCE) INFO
var Vpmi = form.pmi.value;
if(Vpmi == 0 || Vpmi == "") {
Vpmi = 0;
} else
if(Vpmi >= .01) {
Vpmi = Vpmi / 100;
}
Vpmi = Vpmi / 12;
var pmiYN = 0;
var downPayPerc = VdownPmt / VhomeCost;
if(downPayPerc < .20) {
pmiYN = 1;
var VaccumPmi = 0;
}

//*******CALCULATE CLOSING COSTS

//POINTS
var Vfees = form.fees.value;
if(Vfees == 0 || Vfees == "") {
Vfees = 0;
} else
if(Vfees >= 1 ) {
Vfees = Vfees / 100;
}
var VfeeCost = VorigPrin * Vfees;

//ORIGINATION FEE
var Vpoints = form.points.value;
if(Vpoints == 0 || Vpoints == "") {
Vpoints = 0;
} else
if(Vpoints >= 1 ) {
Vpoints = Vpoints / 100;
}
var VpointCost = VorigPrin * Vpoints;

//OTHER LOAN COSTS
var VloanCosts= form.loanCosts.value;
if(VloanCosts == 0 || VloanCosts == "") {
VloanCosts = 0;
}

//TOTAL CLOSING COSTS
var VclosingCosts = eval(VpointCost) + eval(VfeeCost) + eval(VloanCosts);

//GET INVESTMENT INFO
var VinvestIntPort = 0;
var VinvestPrin = eval(VdownPmt) + eval(VclosingCosts);

var earnInt = form.saveRate.value;
if (earnInt > 1.0) {
  earnInt = earnInt / 100.0;
 }
earnInt /= 12;

//INITIATE INFLATION FACTOR
var VaccumInflate = 1;

//*****CYCLE THROUGH NUMBER OF MONTHS
while(count < VstayMonths) {

//ACCUMULATE RENT PAYMENTS & INSURANCE & APPRECIATION
if(count > 0 && count % 12 == 0) {
VaccumApprec = VaccumApprec * VapprecRate;
VmoRent = VmoRent * VinflateRate;
VaccumInflate = VaccumInflate * VinflateRate;
}
VtotRent = eval(VtotRent) + eval(VmoRent);
VtotRent = eval(VtotRent) + eval(VmoRentIns);

//ACCUMULATE INTEREST PAYMENTS
if(count < noMonths) {
   intPort = prin * i;
   VaccumInt = eval(VaccumInt) + eval(intPort)
   prinPort = eval(VmoPmt) - eval(intPort);
   prin = eval(prin) - eval(prinPort);
}

//IF PMI APPLICABLE, ACCUMULATE
if(pmiYN == 1) {
VaccumPmi = eval(VaccumPmi) + eval(Vpmi * prin);
}

//AMORTIZE INVESTED DOWNPAYMENT AND CLOSING COSTS
VinvestIntPort = earnInt * VinvestPrin;
VinvestPrin = eval(VinvestPrin) + eval(VinvestIntPort);

//INCREASE COUNT
count = eval(count) + eval(1);
}

//CALCULATE TOTAL ASSOCIATION DUES
var VassocDues = form.assocDues.value;
if(VassocDues == "" || VassocDues == 0) {
VassocDues = 0;
}
var VtotAssocDues = VassocDues * VstayYrs * VaccumInflate;

//CALCULATE TOTAL PROPERTY TAXES
var VpropTax = form.propTax.value;
if(VpropTax == "" || VpropTax == 0) {
VpropTax = 0;
}
var VtotPropTax = VpropTax * VstayYrs * VaccumInflate;

//CALCULATE TOTAL MAINTENANCE COSTS
var Vmaint = form.maint.value;
if(Vmaint == "" || Vmaint == 0) {
Vmaint = 0;
}
var VtotMaintCost = Vmaint * 12 * VstayYrs * VaccumInflate;

//CALCULATE TOTAL HOMEOWNER INSURANCE COSTS
var VhomeIns = form.homeIns.value;
if(VhomeIns == "" || VhomeIns == 0) {
VhomeIns = 0;
} else
if(VhomeIns >= .01) {
VhomeIns = VhomeIns / 100;
}
var VtotHomeInsCost = VhomeIns * VhomeCost * VstayYrs * VaccumInflate;

//CALCULATE NET GAIN ON HOME
var VnetGain = eval(VaccumApprec) - eval(VhomeCost);

//CALCULATE TAX SAVINGS ON INTEREST, POINTS AND PROPERTY TAXES
var VtotTaxDeduct = eval(VaccumInt) + eval(VtotPropTax) + eval(VfeeCost);
var VincomeTax = form.incomeTax.value;
if(VincomeTax == 0 || VincomeTax == "") {
VincomeTax = 0;
} else
if(VincomeTax >= 1) {
VincomeTax = VincomeTax / 100;
}
var VtotTaxSave = VincomeTax * VtotTaxDeduct;

//CALCULATE REALTOR COMMISSION ON SALE OF HOME
var VrealtorCom = form.realtorCom.value;
if(VrealtorCom == 0 || VrealtorCom == "") {
VrealtorCom = 0;
} else
if(VrealtorCom >= 1) {
VrealtorCom = VrealtorCom / 100;
}
var VsellCost = VaccumApprec * VrealtorCom;

//CALCULATE NET EARNINGS ON INVESTMENT
var VinvestEarn = eval(VinvestPrin) - eval(VdownPmt) - eval(VclosingCosts);

form.totRent.value = VtotRent;
form.moPmt.value = VmoPmt;
form.accumInt.value = VaccumInt;
form.closeCosts.value = VclosingCosts;
form.totPropTax.value = VtotPropTax;
form.totMaintCost.value = VtotMaintCost;
form.totHomeInsCost.value = VtotHomeInsCost;
form.netGain.value = VnetGain;
form.pmiCost.value = VaccumPmi;
form.investPrin.value = VinvestEarn;
form.totAssocDues.value = VtotAssocDues;
form.totTaxSave.value = VtotTaxSave;
form.sellCost.value = VsellCost;

var VtotRentCosts = VtotRent;
form.totRentCosts.value = VtotRentCosts;
var VtotRentBenefits = VinvestEarn;
form.totRentBenefits.value = VtotRentBenefits;
var VnetRentCost = eval(VtotRent) - eval(VinvestEarn);

var VtotBuyCosts = eval(VaccumInt) + eval(VclosingCosts) + eval(VtotPropTax) + eval(VtotMaintCost) + eval(VtotHomeInsCost) + eval(VaccumPmi) + eval(VtotAssocDues) + eval(VsellCost);
form.totBuyCosts.value = VtotBuyCosts;

var VtotBuyBenefits = eval(VnetGain) + eval(VtotTaxSave);
form.totBuyBenefits.value = VtotBuyBenefits;
var VnetBuyCost = eval(VtotBuyCosts) - eval(VtotBuyBenefits);


form.netRentCost.value = formatNum(VnetRentCost);
form.netBuyCost.value = formatNum(VnetBuyCost);

var diff = 0;
var Vsummary = "";
if(VnetRentCost > VnetBuyCost) {
diff = eval(VnetRentCost) - eval(VnetBuyCost);
Vsummary = "You will save $" + formatNum(diff) + " if you buy instead of rent."
} else {
diff = eval(VnetBuyCost) - eval(VnetRentCost);
Vsummary = "You will save $" + formatNum(diff) + " if you rent instead of buy."
}

form.results.value = Vsummary;

}

}

function showReport(form) {

computeForm(form);

var part1 = ("<HEAD><TITLE>American Mortgage Co nsultantsRent Vs. Buy Report</TITLE><link rel=stylesheet href=style.css type=text/css></HEAD>" + "<BODY BGCOLOR = '#FFFFFF'><BR>");

var part2 = ("<CENTER><TABLE width=98% BORDER=0 CELLSPACING=1 CELLPADDING=4 class=txt><TR><TD COLSPAN=5 class=txt5>&nbsp;Rent vs. Buy</FONT></TD></TR><TR><TD COLSPAN=2 VALIGN=TOP><B>Monthly Rent Payment: $" + formatNum(form.moRent.value) + "<BR>Annual Return on Investment: " + formatNum(form.saveRate.value) + "%</B></TD><TD>&nbsp;</TD><TD COLSPAN=2><B>Purchase Price: $" + formatNum(form.homeCost.value) + "<BR>Down Payment: $" + formatNum(form.downPmt.value) + "<BR>Mortgage Term: " + form.noYears.value + " years<BR>Interest Rate: " + formatNum(form.payRate.value) + "%<BR>Monthly Mortgage Payment: $" + formatNum(form.moPmt.value) + "<BR></B></TD></TR><TR><TD COLSPAN=5><CENTER><b>Cost Benefit Analysis</b><BR>Calculations are based upon a " + form.inflateRate.value + "% annual inflation rate over the course of " + form.stayYrs.value + " years (the time between now and when you estimate you would sell the home). Please allow for slight rounding differences.</CENTER></TD></TR><TR BGCOLOR=\"#CCCCCC\"><TD><B>Renting Costs</B></TD><TD><B>Amount</B></TD><TD>&nbsp;</TD><TD><B>Buying Costs</B></TD><TD><B>Amount</B></TD></TR>");

var row1 = "<TR><TD>Total Rent & Insurance Payments:</TD><TD ALIGN=RIGHT>$" + formatNum(form.totRent.value) + "</TD><TD>&nbsp;</TD><TD>Total of Interest Payments:</TD><TD ALIGN=RIGHT>$" + formatNum(form.accumInt.value) + "</TD></TR>";

var row2 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Total Closing Costs:</TD><TD ALIGN=RIGHT>$" + formatNum(form.closeCosts.value) + "</TD></TR>";

var row3 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Total Property Tax Costs:</TD><TD ALIGN=RIGHT>$" + formatNum(form.totPropTax.value) + "</TD></TR>";

var row4 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Total Maintenance Costs:</TD><TD ALIGN=RIGHT>$" + formatNum(form.totMaintCost.value) + "</TD></TR>";

var row5 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Total Homeowner's Insurance Costs:</TD><TD ALIGN=RIGHT>$" + formatNum(form.totHomeInsCost.value) + "</TD></TR>";

var row6 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Total Association Dues:</TD><TD ALIGN=RIGHT>$" + formatNum(form.totAssocDues.value) + "</TD></TR>";

var row7 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Total PMI Costs:</TD><TD ALIGN=RIGHT>$" + formatNum(form.pmiCost.value) + "</TD></TR>";

var row7B = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Cost of selling home:</TD><TD ALIGN=RIGHT>$" + formatNum(form.sellCost.value) + "</TD></TR>";

var row8 = "<TR><TD ALIGN=RIGHT><B>Total Costs</B></TD><TD ALIGN=RIGHT><B>$" + formatNum(form.totRentCosts.value) + "</B></TD><TD>&nbsp;</TD><TD ALIGN=RIGHT><B>Total Costs</B></TD><TD ALIGN=RIGHT><B>$" + formatNum(form.totBuyCosts.value) + "</B></TD></TR>";

var spacer = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD></TR>";

var row9 = "<TR BGCOLOR=\"#CCCCCC\"><TD><B>Renting Benefits</B></TD><TD><B>Amount</B></TD><TD>&nbsp;</TD><TD><B>Buying Benefits</B></TD><TD><B>Amount</B></TD></TR>";

var row10 = "<TR><TD>Interest Earned on Invested Funds:</TD><TD ALIGN=RIGHT>$" + formatNum(form.investPrin.value) + "</TD><TD>&nbsp;</TD><TD>Tax Savings:</TD><TD ALIGN=RIGHT>$" + formatNum(form.totTaxSave.value) + "</TD></TR>";

var row11 = "<TR><TD>&nbsp;</TD><TD ALIGN=RIGHT>&nbsp;</TD><TD>&nbsp;</TD><TD>Home Appreciation:</TD><TD ALIGN=RIGHT>$" + formatNum(form.netGain.value) + "</TD></TR>";

var row12 = "<TR><TD ALIGN=RIGHT><B>Total Benefits</B></TD><TD ALIGN=RIGHT><B>$" + formatNum(form.totRentBenefits.value) + "</B></TD><TD>&nbsp;</TD><TD ALIGN=RIGHT><B>Total Benefits</B></TD><TD ALIGN=RIGHT><B>$" + formatNum(form.totBuyBenefits.value) + "</B></TD></TR>";

var row13 = "<TR><TD ALIGN=RIGHT><B>NET COST OF RENTING:</B></TD><TD ALIGN=RIGHT><B>$" + form.netRentCost.value + "</B></TD><TD>&nbsp;</TD><TD ALIGN=RIGHT><B>NET COST OF BUYING:</B></TD><TD ALIGN=RIGHT><B>$" + form.netBuyCost.value + "</B></TD></TR>";

var summary = "<TR BGCOLOR=\"#CCCCCC\"><TD COLSPAN=5><B>Summary:</B> " + form.results.value + "</TD></TR>";

var part4 = ("</TABLE><BR><CENTER><FORM METHOD='POST'><INPUT class=input TYPE=\'BUTTON\' VALUE=\'Close\' onClick=\'window.close()\'></FORM></CENTER><!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4531860; 
var sc_invisible=1; 
var sc_partition=34; 
var sc_click_stat=1; 
var sc_security="d5915a76"; 
</script>

<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
class="statcounter"><a title="counter on myspace"
href="http://www.statcounter.com/myspace/"
target="_blank"><img class="statcounter"
src="http://c.statcounter.com/4531860/0/d5915a76/1/"
alt="counter on myspace" ></a></div></noscript>
<!-- End of StatCounter Code --></body></HTML>");

var schedule = (part1 + "" + part2 + "" + row1 + "" + row2 + "" + row3 + "" + row4 + "" + row5 + "" + row6 + "" + row7 + "" + row7B + "" + row8 + "" + spacer + "" + row9 + "" + row10 + "" + row11 + "" + row12 + "" + spacer + "" + row13 + "" + summary + "" + part4 + "");

  reportWin = window.open("","","width=600,height=400,toolbar=yes,menubar=yes,scrollbars=yes");
  reportWin.document.write(schedule);
  reportWin.document.close();

}

function showHelp(form) {

var title = "";
var explain = "";

if(form.help[0].checked) {
title = "Monthly rent";
explain = "Enter the amount of the monthly rent payment."
} else
if(form.help[1].checked) {
title = "Monthly rental insurance";
explain = "Enter the monthly rental insurance premium."
} else
if(form.help[2].checked) {
title = "Expected annual inflation rate";
explain = "Enter the annual inflation rate. Enter 4% as 4. This is used to inflate the costs of rent, insurance, maintenance, dues and property taxes for the length of time you will own the home."
} else
if(form.help[3].checked) {
title = "Purchase price of home";
explain = "Enter the total purchase price of the home -- not including closing costs.";
} else
if(form.help[4].checked) {
title = "Down payment amount";
explain = "Enter the amount you will have available to put down on the house after you have set aside the cash you will need to pay the closing costs.";
} else
if(form.help[5].checked) {
title = "Length of mortgage term";
explain = "Enter the number of years you are financing the home for.";
} else
if(form.help[6].checked) {
title = "Mortgage's annual interest rate";
explain = "Enter the annual interest rate of the morgage. Enter 8% as simply 8 (do not include percent sign).";
} else
if(form.help[7].checked) {
title = "Discount points on purchase of the home";
explain = "Discount points are paid up front in order to reduce the interest rate of your mortgage. Each point represents 1% of your mortgage balance. Enter 1% as simply 1 (do not include percent sign).";
} else
if(form.help[8].checked) {
title = "Origination fees";
explain = "The percentage (often as high as 1% of the loan amount) that a lending institution charges for processing and originating a loan.";
} else
if(form.help[9].checked) {
title = "Other loan costs";
explain = "The total of other loan related costs, such as filing fees, appraiser fees, etc.";
} else
if(form.help[10].checked) {
title = "Mortgage Insurance (PMI)";
explain = "If your downpayment is less than 20% of the value of the home you are buying, you may be required to pay mortgage insurance of somewhere between 0.2% and 0.5% of your principal balance each month. Enter .04% simply as .4 (do not include percent sign).";
} else
if(form.help[11].checked) {
title = "Homeowner's insurance rate";
explain = "Your homeowner's insurance rate -- entered as a percentage of your home's value. Typical rate is 0.5%. Enter .5% simply as .5 (do not include percent sign).";
} else
if(form.help[12].checked) {
title = "Monthly association dues";
explain = "If you are a member of a homeowner's association, enter your monthly dues in this field.";
} else
if(form.help[13].checked) {
title = "Average monthly maintenance";
explain = "Enter the amount you expect to spend on repairing and maintaining your home.";
} else
if(form.help[14].checked) {
title = "Annual property tax";
explain = "Enter the amount of property taxes you expect to pay each year.";
} else
if(form.help[15].checked) {
title = "State plus Federal income tax rate";
explain = "Enter your combined state and federal income tax percentage rate. Enter 28% simply as 28 (do not include percent sign).";
} else
if(form.help[16].checked) {
title = "Interest rate you expect to earn on savings";
explain = "Enter the annual interest rate you expect to earn on the down payment and closing costs you will invest if you decide to rent instead of buy. Enter 7% simply as 7 (do not include percent sign).";
} else
if(form.help[17].checked) {
title = "Expected percentage your home will appreciate by each year";
explain = "Enter the percentage amount you expect your house to appreciate by each year. Enter 3% simply as 3 (do not include percent sign).";
} else
if(form.help[18].checked) {
title = "Number of years you will stay at this property";
explain = "Enter the number of years you expect to rent or own the property you are considering. Typically, if you plan to move out of a home in less than 5 years from the date of purchase, you may be better off renting.";
} else
if(form.help[19].checked) {
title = "Realtor commission rate";
explain = "Enter the percentage of your home's selling price that you expect to pay a real estate agent or broker when it's time to sell your home. Enter 7% simply as 7 (do not include percent sign).";
}

var part1 = ("<HEAD><TITLE>Help Screen</TITLE></HEAD>" + "<BODY BGCOLOR = '#FFFFFF'><BR><BR><CENTER><TABLE><TR><TD><B>" + title + ":</B> " + explain + "</TD></TR></TABLE></CENTER>");

var part4 = ("<BR><CENTER><FORM METHOD='POST'><INPUT class=input TYPE=\'BUTTON\' VALUE=\'Close\' onClick=\'window.close()\'></FORM></CENTER><!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4531860; 
var sc_invisible=1; 
var sc_partition=34; 
var sc_click_stat=1; 
var sc_security="d5915a76"; 
</script>

<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
class="statcounter"><a title="counter on myspace"
href="http://www.statcounter.com/myspace/"
target="_blank"><img class="statcounter"
src="http://c.statcounter.com/4531860/0/d5915a76/1/"
alt="counter on myspace" ></a></div></noscript>
<!-- End of StatCounter Code --></body></HTML>");

var schedule = (part1 + "" + part4 + "");

  reportWin = window.open("","","width=310,height=200,toolbar=yes,menubar=yes,scrollbars=yes");
  reportWin.document.write(schedule);
  reportWin.document.close();

}