var yourSavings = numToDollars( total97 + total98 )
var adviceStr = "You will save an estimated " + yourSavings + " because of the changes in the tax law.<p>"
if ( soldHome && beforeMay )
{
adviceStr += "Because you sold your home before the capital gains tax laws changed, you may want to consider rolling the profits from the sale into the purchase of a new one. Consult a tax adviser for potential options.<p>"
}
if ( soldHome && !beforeMay && homePriceDiff > 500000 )
{
adviceStr += "If you sold your home before August 5, 1997, you should consider rolling the profits from a sale into the purchase of a new one. Consult a tax adviser for potential options.<p>"