function jumpBox(list) {
   location.href = list.options[list.selectedIndex].value
   }
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);
     }


var Vcents = 0;

if(Vnum % 1 * 100 < 1) {
   Vcents = 0;
   } else {
   Vcents = parseInt(((eval(Vnum % 1) * 100)),10);
   }


 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 enter 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 {

	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);

		var VstayYrs = form.stayYrs.value;
		var VstayMonths = VstayYrs * 12;
		var count = 0;

		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;

		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);

		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;

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;
}

var Vfees = form.fees.value;
if(Vfees == 0 || Vfees == "") {
Vfees = 0;
} else
if(Vfees >= 1 ) {
Vfees = Vfees / 100;
}
var VfeeCost = VorigPrin * Vfees;

var Vpoints = form.points.value;
if(Vpoints == 0 || Vpoints == "") {
Vpoints = 0;
} else
if(Vpoints >= 1 ) {
Vpoints = Vpoints / 100;
}
var VpointCost = VorigPrin * Vpoints;

var VloanCosts= form.loanCosts.value;
if(VloanCosts == 0 || VloanCosts == "") {
VloanCosts = 0;
}

var VclosingCosts = eval(VpointCost) + eval(VfeeCost) + eval(VloanCosts);

var VinvestIntPort = 0;
var VinvestPrin = eval(VdownPmt) + eval(VclosingCosts);

var earnInt = form.saveRate.value;
if (earnInt > 1.0) {
  earnInt = earnInt / 100.0;
 }
earnInt /= 12;

var VaccumInflate = 1;

while(count < VstayMonths) {

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);

if(count < noMonths) {
   intPort = prin * i;
   VaccumInt = eval(VaccumInt) + eval(intPort)
   prinPort = eval(VmoPmt) - eval(intPort);
   prin = eval(prin) - eval(prinPort);
}

if(pmiYN == 1) {
VaccumPmi = eval(VaccumPmi) + eval(Vpmi * prin);
}

VinvestIntPort = earnInt * VinvestPrin;
VinvestPrin = eval(VinvestPrin) + eval(VinvestIntPort);

count = eval(count) + eval(1);
}

var VassocDues = form.assocDues.value;
if(VassocDues == "" || VassocDues == 0) {
VassocDues = 0;
}
var VtotAssocDues = VassocDues * VstayYrs * VaccumInflate;

var VpropTax = form.propTax.value;
if(VpropTax == "" || VpropTax == 0) {
VpropTax = 0;
}
var VtotPropTax = VpropTax * VstayYrs * VaccumInflate;

var Vmaint = form.maint.value;
if(Vmaint == "" || Vmaint == 0) {
Vmaint = 0;
}
var VtotMaintCost = Vmaint * 12 * VstayYrs * VaccumInflate;

var VhomeIns = form.homeIns.value;
if(VhomeIns == "" || VhomeIns == 0) {
VhomeIns = 0;
} else
if(VhomeIns >= .01) {
VhomeIns = VhomeIns / 100;
}
var VtotHomeInsCost = VhomeIns * VhomeCost * VstayYrs * VaccumInflate;

var VnetGain = eval(VaccumApprec) - eval(VhomeCost);

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;

var VrealtorCom = form.realtorCom.value;
if(VrealtorCom == 0 || VrealtorCom == "") {
VrealtorCom = 0;
} else
if(VrealtorCom >= 1) {
VrealtorCom = VrealtorCom / 100;
}
var VsellCost = VaccumApprec * VrealtorCom;

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>Rent-vs-Buy Report</TITLE></HEAD>" + "<BODY BGCOLOR = '#FFFFFF'><br/><br/><CENTER></CENTER>");

var part2 = ("<CENTER><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=4><TR><TD COLSPAN=2 ALIGN=CENTER><FONT SIZE=+3>Rent</FONT></TD><TD ALIGN=CENTER><FONT SIZE=+3>vs</FONT></TD><TD COLSPAN=2 ALIGN=CENTER><FONT SIZE=+3>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><FONT SIZE=+2>Cost Benefit Analysis</FONT><br/><FONT SIZE=-1>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.</FONT></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 TYPE=\'BUTTON\' VALUE=\'Close\' onclick=\'window.close()\'></FORM><br/><br/><br/><h3>Courtesy beautifulbchomes.com</h3></CENTER></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=no,menubar=no,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 dollar amount of the monthly rent payment."
} else
if(form.help[1].checked) {
title = "Monthly Rental Insurance";
explain = "Enter the dollar amount of monthly rental insurance payment."
} else
if(form.help[2].checked) {
title = "Expected Annual Inflation Rate";
explain = "Enter the percentage annual inflation rate. Enter 4% as 4 (do not include percent sign). 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 = "Home Purchase Price";
explain = "Enter the total dollar purchase price of the home -- not including closing costs.";
} else
if(form.help[4].checked) {
title = "Down Payment";
explain = "Enter the dollar 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 = "Mortgage Term";
explain = "Enter the number of years you are financing the home for.";
} else
if(form.help[6].checked) {
title = "Mortgage Annual Interest Rate";
explain = "Enter the percntage annual interest rate of the morgage. Enter 8% as simply 8 (do not include percent sign).";
} else
if(form.help[7].checked) {
title = "Home Purchase Discount Points";
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. Enter 1% as simply 1 (do not include percent sign).";
} else
if(form.help[9].checked) {
title = "Other Loan Costs";
explain = "The total of other dollar 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 dollar monthly dues in this field.";
} else
if(form.help[13].checked) {
title = "Average Monthly maintenance";
explain = "Enter the dollar amount you expect to spend on repairing and maintaining your home.";
} else
if(form.help[14].checked) {
title = "Annual Property Tax";
explain = "Enter the dollar amount of property taxes you expect to pay each year.";
} else
if(form.help[15].checked) {
title = "Total Income Tax Rate";
explain = "Enter your combined provincial/state and federal income tax percentage rate. Enter 28% simply as 28 (do not include percent sign).";
} else
if(form.help[16].checked) {
title = "Expected Savings Interest Rate";
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 Home Appreciation Rate";
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 = "Expected Years Occupation";
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 : " + title + "</TITLE></HEAD>" + "<BODY BGCOLOR = '#FFFFFF'><br/><br/><CENTER><TABLE><TR><TD><h3>" + title + "</h3> " + explain + "</TD></TR></TABLE></CENTER>");

var part4 = ("<br/><CENTER><FORM METHOD='post'><INPUT TYPE=\'BUTTON\' VALUE=\'Close\' onclick=\'window.close()\'></FORM></CENTER></BODY></HTML>");

var schedule = (part1 + "" + part4 + "");

  reportWin = window.open("","","width=300,height=300,toolbar=no,menubar=no,scrollbars=no");
  reportWin.document.write(schedule);
  reportWin.document.close();

}

