<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Calculators</title>
		<description></description>
		<link>http://www.lendingtree.com/smartborrower/Calculators.aspx</link>
		<language>en</language>
		<lastBuildDate>Mon, 8 Dec 2008 16:31:02 EST</lastBuildDate>
		<copyright>Copyright: (C) LendingTree, LLC</copyright>
			<item><title>Home equity calculator</title>
				<description>This calculator will help you determine how much equity you have in your home that you can borrow against.</description>
				<link>http://www.lendingtree.com/smartborrower/Home-Equity-Calculators/home-equity-calculator.aspx</link>
				<pubDate>Thu, 31 Jan 2008 10:30:01 EST</pubDate>
				<category>Calculators</category>
				<guid>http://www.lendingtree.com/smartborrower/Home-Equity-Calculators/home-equity-calculator.aspx</guid>
				<content:encoded>
<![CDATA[
Home equity calculator
This calculator will help you determine how much equity you have in your home that you can borrow against.
<script runat="server">    
                            Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
                                If IsPostBack Then
                                    Dim ServiceConnector As localhost.Calculators = New localhost.Calculators
                                    Dim TEqty, LTV90, LTV80, LTV75 As Double
                                    Dim FormValues As System.Collections.Specialized.NameValueCollection
                                    FormValues = Request.Form
                                    Dim HomeValue As Double = CDbl(FormValues("HomeValue"))
                                    Dim FirstPrincipalDue As Double = CDbl(FormValues("PrincipalDue"))
                                    Dim SecondPrincipalDue As Double = 0
                                    If (FormValues.Item("PrincipalDueSecond") <> "") Then
                                        SecondPrincipalDue = CDbl(FormValues.Item("PrincipalDueSecond"))
                                    End If
                                    Dim Results As String = ServiceConnector.HowMuchCanIBorrow(HomeValue, FirstPrincipalDue, SecondPrincipalDue)
                                    Dim ResultArray As String() = Split(Results, ",")
                                    TEqty = CDbl(ResultArray(0))
                                    LTV90 = CDbl(ResultArray(1))
                                    LTV80 = CDbl(ResultArray(2))
                                    LTV75 = CDbl(ResultArray(3))
                                    If TEqty > 0 Then
                                        TotalEquity.Text = FormatCurrency(ResultArray(0))
                                    Else
                                        TotalEquity.Text = "Based on the information provided, you do not have any equity in your home to borrow against"
                                    End If
                                    If LTV90 > 0 Then
                                        LoanToValue90.Text = FormatCurrency(ResultArray(1))
                                    Else
                                        LoanToValue90.Text = "Based on the information provided, your current loan balance is higher than 90 percent of your home's value."
                                    End If
                                    If LTV80 > 0 Then
                                        LoanToValue80.Text = FormatCurrency(ResultArray(2))
                                    Else
                                        LoanToValue80.Text = "Based on the information provided, your current loan balance is higher than 80 percent of your home's value."
                                    End If
                                    If LTV75 > 0 Then
                                        LoanToValue75.Text = FormatCurrency(ResultArray(3))
                                    Else
                                        LoanToValue75.Text = "Based on the information provided, your current loan balance is higher than 75 percent of your home's value."
                                    End If
                                End If
                            End Sub
                        </script><script language="Javascript" src="/common/smartTip.js">
                        </script><script language="Javascript" src="/common/calc_library.js"></script>
<link href="/images/css/content-calculators-smartborrower.css" type="text/css" rel="stylesheet" />
<div class="smartTipWindow" id="_pageSmartTip" onclick="this.style.display='none';"></div>
<form id="Form1" action="" method="post" runat="server">
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator0" runat="server" display="dynamic" errormessage="* You must enter a value into HomeValue" controltovalidate="HomeValue">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator0" runat="server" display="dynamic" errormessage="* Invalid Entry HomeValue" controltovalidate="HomeValue" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Home value:</label>
    <div class="help_tip"><img id="HomeValueHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            {//THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					                document.getElementById('HomeValueHelp').smartTip="Estimate what the market value of your home is, if you were to sell your home today. For help, use the free home price check tool www.homepricecheck.com from our partner, RealEstate.com.";
					                document.getElementById('HomeValueHelp').smartTipHeader="Home value";
					                document.getElementById('HomeValueHelp').onmousemove=showSmartTip;
					                document.getElementById('HomeValueHelp').onmouseout=hideSmartTip;
					                document.getElementById('HomeValueHelp').smartTipXOffset=-700;	
								    document.getElementById('HomeValueHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="HomeValue" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" display="dynamic" errormessage="* You must enter a value into PrincipalDue" controltovalidate="PrincipalDue">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" display="dynamic" errormessage="* Invalid Entry PrincipalDue" controltovalidate="PrincipalDue" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Principal due on first mortgage:</label>
    <div class="help_tip"><img id="PrincipalDueHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('PrincipalDueHelp').smartTip="Enter the balance due on your main mortgage. You can estimate this amount, but for more accurate results, check your most recent bill for \"principal due\" or \"amount for payoff.\"";
					            document.getElementById('PrincipalDueHelp').smartTipHeader="Principal due on first mortgage";
					            document.getElementById('PrincipalDueHelp').onmousemove=showSmartTip;
					            document.getElementById('PrincipalDueHelp').onmouseout=hideSmartTip;
					            document.getElementById('PrincipalDueHelp').smartTipXOffset=-700;	
								document.getElementById('PrincipalDueHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="PrincipalDue" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" display="dynamic" errormessage="* Invalid Entry PrincipalDueSecond" controltovalidate="PrincipalDueSecond" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Principal due on second mortgage or line of credit:</label>
    <div class="help_tip"><img id="PrincipalDueSecondHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('PrincipalDueSecondHelp').smartTip="Enter the balance due on any current home equity loan or line of credit you have. You can estimate this amount, but for more accurate results, check your most recent bill for \"principal due\" or \"amount for payoff.\"";
					            document.getElementById('PrincipalDueSecondHelp').smartTipHeader="Principal due on second mortgage or line of credit";
					            document.getElementById('PrincipalDueSecondHelp').onmousemove=showSmartTip;
					            document.getElementById('PrincipalDueSecondHelp').onmouseout=hideSmartTip;
					            document.getElementById('PrincipalDueSecondHelp').smartTipXOffset=-700;	
								document.getElementById('PrincipalDueSecondHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="PrincipalDueSecond" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <%If Not IsPostBack Then%>
    <div class="field_no_bg"><label> </label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit1').click();"><img class="calc_button" alt="" src="/images/cms/btn_calculate.gif" /></a> <input id="Submit1" style="DISPLAY: none" type="submit" runat="server" name="Submit" value="Calculate" />
    <div class="clear-field"> </div>
    </div>
    <%Else%><!-- -----------------------Results-------------------------- -->
    <div id="results">
    <div class="results_title">Results</div>
    <div class="field_results"><label for="adjustment">Your equity:</label>
    <div class="help_tip"> </div>
    <div class="textfield_results"> </div>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg_results"><label for="adjustment">Total equity in your house:</label>
    <div class="help_tip"><img id="TotalEquityHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('TotalEquityHelp').smartTip="The equity in your home is the amount of your home that you own. If you sell, it's the cash left over after you pay off your mortgage balance.";
				                    document.getElementById('TotalEquityHelp').smartTipHeader="Total equity in your house";
				                    document.getElementById('TotalEquityHelp').onmousemove=showSmartTip;
				                    document.getElementById('TotalEquityHelp').onmouseout=hideSmartTip;
				                    document.getElementById('TotalEquityHelp').smartTipXOffset=-700;	
								    document.getElementById('TotalEquityHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="TotalEquity" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_results"><label for="">90% loan to value ratio:</label>
    <div class="help_tip"><img id="LoanToValue90Help" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('LoanToValue90Help').smartTip="This is the amount you can borrow and still own at least 10 percent of your home, or have 10% equity in your home.";
				                    document.getElementById('LoanToValue90Help').smartTipHeader="90% loan to value ratio";
				                    document.getElementById('LoanToValue90Help').onmousemove=showSmartTip;
				                    document.getElementById('LoanToValue90Help').onmouseout=hideSmartTip;
				                    document.getElementById('LoanToValue90Help').smartTipXOffset=-700;	
								    document.getElementById('LoanToValue90Help').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="LoanToValue90" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results"><label for="">80% loan to value ratio:</label>
    <div class="help_tip"><img id="LoanToValue80Help" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('LoanToValue80Help').smartTip="This is the amount you can borrow and still own at least 20 percent of your home, or have 20% equity in your home.";
				                    document.getElementById('LoanToValue80Help').smartTipHeader="80% loan to value ratio";
				                    document.getElementById('LoanToValue80Help').onmousemove=showSmartTip;
				                    document.getElementById('LoanToValue80Help').onmouseout=hideSmartTip;
				                    document.getElementById('LoanToValue80Help').smartTipXOffset=-700;	
								    document.getElementById('LoanToValue80Help').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="LoanToValue80" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_results"><label for="">75% loan to value ratio:</label>
    <div class="help_tip"><img id="LoanToValue75Help" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('LoanToValue75Help').smartTip="This is the amount you can borrow and still own at least 25 percent of your home, or have 25% equity in your home.";
				                    document.getElementById('LoanToValue75Help').smartTipHeader="75% loan to value ratio";
				                    document.getElementById('LoanToValue75Help').onmousemove=showSmartTip;
				                    document.getElementById('LoanToValue75Help').onmouseout=hideSmartTip;
				                    document.getElementById('LoanToValue75Help').smartTipXOffset=-700;	
								    document.getElementById('LoanToValue75Help').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="LoanToValue75" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="help_tip"> </div>
    <div class="field_no_bg"><label><a href="https://secure.lendingtree.com/home_equity/ctl_borrower.asp?page=loan_selection&verb=continue&O_loan_type=LOAN_TYPE_HOME_EQUITY&init=1"><img class="complete_request" alt="" src="/images/cms/btn_complete_request_home.gif" /></a></label>
    <div class="help_tip"> </div>
    <label><a href="https://secure.lendingtree.com/mortgage/ctl_borrower.asp?page=loan_selection&verb=continue&O_loan_type=LOAN_TYPE_REFINANCE&init=1"><img class="complete_request" alt="" src="/images/cms/btn_complete_request_refinance.gif" /></a></label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit2').click();"><img class="recalc_button" alt="" src="/images/cms/btn_recalculate.gif" /></a> <input id="Submit2" style="DISPLAY: none" type="submit" runat="server" name="Submit1" value="Recalculate" />
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label class="results_text" for="">Or call <strong>1-800-555-TREE</strong> to speak with a loan specialist.</label>
    <div class="help_tip"> </div>
    <div class="textfield_results"> </div>
    <div class="clear-field"> </div>
    </div>
    </div>
    <div></div>
    <!-- end results --><%End If%>
    <p class="disclosure">The general rule is you can borrow 75 - 80% of your home's current appraised value, minus what you owe on your first mortgage. This is called the loan-to-value ratio (LTV). Some lenders let you borrow up to 125% of your home's value. Please note, if you choose that option and must move because of a job transfer or other reason, the sale of your home may not provide you with enough money to pay off both your mortgage and the outstanding home equity loan. </p>
    <p class="disclosure">LendingTree calculators are for informational purposes only. LendingTree does not guarantee the accuracy of the calculators, or that you will receive the input rates. Consult a financial advisor for details specific to your situation.</p>
</form>
]]>
				</content:encoded>
			</item>
			<item><title>Rent or buy calculator</title>
				<description>This calculator will help you decide whether it makes sense to buy a home.</description>
				<link>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Rent-or-buy-calculator.aspx</link>
				<pubDate>Fri, 9 Nov 2007 14:26:21 EST</pubDate>
				<category>Calculators</category>
				<guid>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Rent-or-buy-calculator.aspx</guid>
				<content:encoded>
<![CDATA[
Rent or buy calculator
This calculator will help you decide whether it makes sense to buy a home.
<script runat="server">    
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If IsPostBack Then
            Dim MRent, ARI, MortgageLoanAmount, IntRate, CCosts, PPT, HomeIns, HMC, HOAD, ITR As Double
            Dim Year, Pts, LTerm, YrsofStay As Integer
            Dim colForm1 As System.Collections.Specialized.NameValueCollection
            Dim BGCalc As String
            Dim ServiceConnector As localhost.Calculators = New localhost.Calculators
            colForm1 = Request.Form
            'Converting the String values from the form to Double and performing calculations
            MRent = CDbl(colForm1.Item("MonthRent"))
            ARI = CDbl(colForm1.Item("RenterInsurance"))
            MortgageLoanAmount = CDbl(colForm1.Item("LoamAmt"))
            IntRate = CDbl(colForm1.Item("InterestRate"))
            LTerm = CInt(colForm1.Item("LoanTerm"))
            Pts = 0
            If (colForm1.Item("DiscountPoints") <> "") Then
                Pts = CInt(colForm1.Item("DiscountPoints"))
            End If
            CCosts = 0
            If (colForm1.Item("ClosingCost") <> "") Then
                CCosts = CDbl(colForm1.Item("ClosingCost"))
            End If
            PPT = 0
            If (colForm1.Item("ProperyTax") <> "") Then
                PPT = CDbl(colForm1.Item("ProperyTax"))
            End If
            HomeIns = 0
            If (colForm1.Item("HomeInsurance") <> "") Then
                HomeIns = CDbl(colForm1.Item("HomeInsurance"))
            End If
            HMC = 0
            If (colForm1.Item("MaintenanceCost") <> "") Then
                HMC = CDbl(colForm1.Item("MaintenanceCost"))
            End If
            HOAD = 0
            If (colForm1.Item("HomeAssociation") <> "") Then
                HOAD = CDbl(colForm1.Item("HomeAssociation"))
            End If
            ITR = 0
            If (colForm1.Item("IncomeTax") <> "") Then
                ITR = CDbl(colForm1.Item("IncomeTax"))
            End If
            YrsofStay = 0
            If (colForm1.Item("Years") <> "") Then
                YrsofStay = CDbl(colForm1.Item("Years"))
            End If
            Year = YrsofStay * 12
            If IntRate > 1 Then IntRate = IntRate / 100
            If ITR > 1 Then ITR = ITR / 100
            'Actual call to Web Service - CashvsHE()
            BGCalc = ServiceConnector.ShouldIRentOrBuy(MortgageLoanAmount, IntRate, LTerm, Pts, CCosts, PPT, HomeIns, HMC, HOAD, ITR, YrsofStay)
            'Using Split function to split the output from Web Service.
            Dim AMR, TotalCostCalc, EHEqt, NCTO, TCTRCalc As Double
            Dim stringItems() As String = BGCalc.Split(",")
            AMR = CDbl(stringItems(0))
            TotalCostCalc = CDbl(stringItems(1))
            EHEqt = CDbl(stringItems(2))
            AmtofSavings.Text = FormatCurrency(CDbl(stringItems(3)))
            NCTO = CDbl(stringItems(4))
            TCTRCalc = ((MRent * 12) + ARI)
            TCTO.Text = FormatCurrency(((Pts * 0.01 * MortgageLoanAmount) + CCosts + PPT + HomeIns + HMC + HOAD + AMR))
            TCTR.Text = FormatCurrency(TCTRCalc)
            EstHomeEqt.Text = FormatCurrency(EHEqt)
            NetCost.Text = FormatCurrency(NCTO - EHEqt)
            CosttoRent.Text = FormatCurrency(TCTRCalc * YrsofStay)
            yrs1.Text = YrsofStay
            yrs2.Text = YrsofStay
            yrs3.Text = YrsofStay
            yrs4.Text = YrsofStay
            Dim x As Integer
            Dim BeginningBalance As Double = MortgageLoanAmount
            Dim IR, Interest, PMT, Principal, EndBalance, CumulativeInt As Double
            Dim Period As Integer
            Period = LTerm * 12
            IR = IntRate / 12
            PMT = AMR / 12
            CumulativeInt = 0.0
            For x = 0 To Period - 1
                Interest = BeginningBalance * IR
                Principal = PMT - Interest
                EndBalance = BeginningBalance - Principal
                CumulativeInt = CumulativeInt + Interest
                BeginningBalance = EndBalance
            Next
        Else
            IncomeTax.Text = "$0.00"
        End If
    End Sub
</script><script language="Javascript" src="/common/smartTip.js"></script><script language="Javascript" src="/common/calc_library.js"></script>
<link href="/images/css/content-calculators-smartborrower.css" type="text/css" rel="stylesheet" />
<div class="smartTipWindow" id="_pageSmartTip" onclick="this.style.display='none';"></div>
<form id="Form1" action="" method="post" runat="server">
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator0" runat="server" controltovalidate="MonthRent" errormessage="* You must enter a value into MonthRent" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator0" runat="server" controltovalidate="MonthRent" errormessage="* Invalid Entry MonthRent" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Monthly rent:</label>
    <div class="help_tip"><img id="MonthRentHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('MonthRentHelp').smartTip="Enter your current rent payment.";
					            document.getElementById('MonthRentHelp').smartTipHeader="Monthly rent";
					            document.getElementById('MonthRentHelp').onmousemove=showSmartTip;
					            document.getElementById('MonthRentHelp').onmouseout=hideSmartTip;
					            document.getElementById('MonthRentHelp').smartTipXOffset=-700;	
								document.getElementById('MonthRentHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="MonthRent" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" controltovalidate="RenterInsurance" errormessage="* Invalid Entry RenterInsurance" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual renters insurance:</label>
    <div class="help_tip"><img id="RenterInsuranceHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('RenterInsuranceHelp').smartTip="Enter how much you pay each year for renters insurance.";
					            document.getElementById('RenterInsuranceHelp').smartTipHeader="Annual renters insurance";
					            document.getElementById('RenterInsuranceHelp').onmousemove=showSmartTip;
					            document.getElementById('RenterInsuranceHelp').onmouseout=hideSmartTip;
					            document.getElementById('RenterInsuranceHelp').smartTipXOffset=-700;	
								document.getElementById('RenterInsuranceHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="RenterInsurance" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="LoamAmt" errormessage="* You must enter a value into LoamAmt" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" controltovalidate="LoamAmt" errormessage="* Invalid Entry LoamAmt" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Mortgage loan amount:</label>
    <div class="help_tip"><img id="LoamAmtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('LoamAmtHelp').smartTip="Enter the amount you plan to finance. For example, if you are buying a $300,000 home with a 20% down payment, your loan amount would be $240,000.";
					            document.getElementById('LoamAmtHelp').smartTipHeader="Mortgage loan amount";
					            document.getElementById('LoamAmtHelp').onmousemove=showSmartTip;
					            document.getElementById('LoamAmtHelp').onmouseout=hideSmartTip;
					            document.getElementById('LoamAmtHelp').smartTipXOffset=-700;	
								document.getElementById('LoamAmtHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="LoamAmt" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="InterestRate" errormessage="* You must enter a value into InterestRate" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server" controltovalidate="InterestRate" errormessage="* Invalid Entry InterestRate" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Interest Rate:</label>
    <div class="help_tip"><img id="InterestRateHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('InterestRateHelp').smartTip="Enter the interest rate that you will pay on your mortgage. You can find current rates from Freddie Mac at www.freddiemac.com.";
					            document.getElementById('InterestRateHelp').smartTipHeader="Interest Rate";
					            document.getElementById('InterestRateHelp').onmousemove=showSmartTip;
					            document.getElementById('InterestRateHelp').onmouseout=hideSmartTip;
					            document.getElementById('InterestRateHelp').smartTipXOffset=-700;	
								document.getElementById('InterestRateHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="InterestRate" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><label for="term">Loan term (in years):</label>
    <div class="help_tip"><img id="termHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('termHelp').smartTip="Enter the term you desire for your loan. Common terms are 15, 20 and 30 years.";
				                    document.getElementById('termHelp').smartTipHeader="Term";
				                    document.getElementById('termHelp').onmousemove=showSmartTip;
				                    document.getElementById('termHelp').onmouseout=hideSmartTip;
				                    document.getElementById('termHelp').smartTipXOffset=-700;	
								    document.getElementById('termHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
            </script></div>
    <asp:dropdownlist id="LoanTerm" runat="server" cssclass="option"><asp:listitem value="15" text="15"></asp:listitem><asp:listitem value="20" text="20"></asp:listitem><asp:listitem value="25" text="25"></asp:listitem><asp:listitem value="30" text="30"></asp:listitem><asp:listitem value="40" text="40"></asp:listitem><asp:listitem value="50" text="50"></asp:listitem></asp:dropdownlist>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator4" runat="server" controltovalidate="DiscountPoints" errormessage="* Invalid Entry DiscountPoints" display="dynamic" validationexpression="\d*.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Discount Points. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate">Discount points:</label>
    <div class="help_tip"><img id="DiscountPointsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('DiscountPointsHelp').smartTip="Discount points are paid upfront to obtain a lower interest rate. Typically, one point equals 1% of the loan amount and will lower your interest rate by .25 percent.";
				                    document.getElementById('DiscountPointsHelp').smartTipHeader="Discount points";
				                    document.getElementById('DiscountPointsHelp').onmousemove=showSmartTip;
				                    document.getElementById('DiscountPointsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('DiscountPointsHelp').smartTipXOffset=-700;	
								    document.getElementById('DiscountPointsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
            </script></div>
    <asp:textbox id="DiscountPoints" width="78px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator5" runat="server" controltovalidate="ClosingCost" errormessage="* Invalid Entry ClosingCost" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Closing costs:</label>
    <div class="help_tip"><img id="ClosingCostHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('ClosingCostHelp').smartTip="Closing costs include a loan origination fee, appraisal fee, title search and insurance, survey, taxes, deed recording fee, credit report charge, and other costs assessed at settlement. The closing costs usually are about 2% - 6% of the mortgage amount.";
					            document.getElementById('ClosingCostHelp').smartTipHeader="Closing costs";
					            document.getElementById('ClosingCostHelp').onmousemove=showSmartTip;
					            document.getElementById('ClosingCostHelp').onmouseout=hideSmartTip;
					            document.getElementById('ClosingCostHelp').smartTipXOffset=-700;	
								document.getElementById('ClosingCostHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="ClosingCost" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator6" runat="server" controltovalidate="ProperyTax" errormessage="* Invalid Entry ProperyTax" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual property taxes:</label>
    <div class="help_tip"><img id="ProperyTaxHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('ProperyTaxHelp').smartTip="Including this information provides you with a better idea of the total cost of homeownership. Your real estate agent can help you estimate this cost, and some home listings may include this information.";
					            document.getElementById('ProperyTaxHelp').smartTipHeader="Annual property taxes";
					            document.getElementById('ProperyTaxHelp').onmousemove=showSmartTip;
					            document.getElementById('ProperyTaxHelp').onmouseout=hideSmartTip;
					            document.getElementById('ProperyTaxHelp').smartTipXOffset=-700;	
								document.getElementById('ProperyTaxHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="ProperyTax" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator7" runat="server" controltovalidate="HomeInsurance" errormessage="* Invalid Entry HomeInsurance" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual homeowners insurance:</label>
    <div class="help_tip"><img id="HomeInsuranceHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('HomeInsuranceHelp').smartTip="Most lenders require you to carry homeowners insurance. Including the information here provides you with a better idea of the total cost of homeownership.";
					            document.getElementById('HomeInsuranceHelp').smartTipHeader="Annual homeowners insurance";
					            document.getElementById('HomeInsuranceHelp').onmousemove=showSmartTip;
					            document.getElementById('HomeInsuranceHelp').onmouseout=hideSmartTip;
					            document.getElementById('HomeInsuranceHelp').smartTipXOffset=-700;	
								document.getElementById('HomeInsuranceHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="HomeInsurance" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator8" runat="server" controltovalidate="MaintenanceCost" errormessage="* Invalid Entry MaintenanceCost" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual home maintenance costs:</label>
    <div class="help_tip"><img id="MaintenanceCostHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('MaintenanceCostHelp').smartTip="Enter an estimate of annual home maintenance costs. This will give you a better idea of the total cost of homeownership.";
					            document.getElementById('MaintenanceCostHelp').smartTipHeader="Annual home maintenance costs";
					            document.getElementById('MaintenanceCostHelp').onmousemove=showSmartTip;
					            document.getElementById('MaintenanceCostHelp').onmouseout=hideSmartTip;
					            document.getElementById('MaintenanceCostHelp').smartTipXOffset=-700;	
								document.getElementById('MaintenanceCostHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="MaintenanceCost" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator9" runat="server" controltovalidate="HomeAssociation" errormessage="* Invalid Entry HomeAssociation" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual homeowner's association dues:</label>
    <div class="help_tip"><img id="HomeAssociationHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('HomeAssociationHelp').smartTip="Many communities have mandatory homeowner's association dues. Including the information here provides you with a better idea of the total cost of homeownership.";
					            document.getElementById('HomeAssociationHelp').smartTipHeader="Annual homeowner's association dues";
					            document.getElementById('HomeAssociationHelp').onmousemove=showSmartTip;
					            document.getElementById('HomeAssociationHelp').onmouseout=hideSmartTip;
					            document.getElementById('HomeAssociationHelp').smartTipXOffset=-700;	
								document.getElementById('HomeAssociationHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="HomeAssociation" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator10" runat="server" controltovalidate="IncomeTax" errormessage="* Invalid Entry InterestRate" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Income tax rate:</label>
    <div class="help_tip"><img id="IncomeTaxHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('IncomeTaxHelp').smartTip="Most mortgage interest is tax deductible. By entering your tax rate, the calculator can take into account any money saved through the mortgage interest deduction. Consult a tax advisor to find out if the deduction applies to your situation. For 2007 the federal tax rates are 10%, 15%, 25%, 28%, 33% and 35%.";
					            document.getElementById('IncomeTaxHelp').smartTipHeader="Income tax rate";
					            document.getElementById('IncomeTaxHelp').onmousemove=showSmartTip;
					            document.getElementById('IncomeTaxHelp').onmouseout=hideSmartTip;
					            document.getElementById('IncomeTaxHelp').smartTipXOffset=-700;	
								document.getElementById('IncomeTaxHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
            </script></div>
    <asp:textbox id="IncomeTax" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" controltovalidate="Years" errormessage="* You must enter a value into Years" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator11" runat="server" controltovalidate="Years" errormessage="* Invalid Entry Years" display="dynamic" validationexpression="\d{1,3}">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter a Number.</p>
    </asp:regularexpressionvalidator><label for="rate">How many years do you expect<br />
    to own this home?</label>
    <div class="help_tip"><img id="YearsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('YearsHelp').smartTip="There are up-front costs associated with buying a home. By estimating the years you plan to be in the home, the calculator can determine if you will be in your home long enough to recoup those costs.";
				                    document.getElementById('YearsHelp').smartTipHeader="Years in home";
				                    document.getElementById('YearsHelp').onmousemove=showSmartTip;
				                    document.getElementById('YearsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('YearsHelp').smartTipXOffset=-700;	
								    document.getElementById('YearsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
            </script></div>
    <asp:textbox id="Years" width="28px" runat="server" cssclass="textfield" maxlength="3"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <%If Not IsPostBack Then%>
    <div class="field_no_bg"><label> </label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit1').click();"><img class="calc_button" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" alt="" src="/images/cms/btn_calculate.gif" /></a> <input id="Submit1" style="DISPLAY: none" type="submit" runat="server" name="Submit" value="Calculate" />
    <div class="clear-field"> </div>
    </div>
    <%Else%><!-- -------Results-------- -->
    <div id="results">
    <div class="results_title">Results</div>
    <div class="field_results"><label for="adjustment">Total cost to own home for first year:</label>
    <div class="help_tip"><img id="TCTOHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('TCTOHelp').smartTip="This is the approximate amount you'd have to pay the first year you own a home. This amount includes one-time, upfront costs such as points.";
				                    document.getElementById('TCTOHelp').smartTipHeader="Total cost to own home for first year";
				                    document.getElementById('TCTOHelp').onmousemove=showSmartTip;
				                    document.getElementById('TCTOHelp').onmouseout=hideSmartTip;
				                    document.getElementById('TCTOHelp').smartTipXOffset=-700;	
								    document.getElementById('TCTOHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                </script></div>
    <div class="textfield_results"><asp:label id="TCTO" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results"><label for="adjustment">Total cost to rent for one year:</label>
    <div class="help_tip"><img id="TCTRHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('TCTRHelp').smartTip="This is the total amount you would pay for rent and renters insurance.";
				                    document.getElementById('TCTRHelp').smartTipHeader="Total cost to own home for first year";
				                    document.getElementById('TCTRHelp').onmousemove=showSmartTip;
				                    document.getElementById('TCTRHelp').onmouseout=hideSmartTip;
				                    document.getElementById('TCTRHelp').smartTipXOffset=-700;	
								    document.getElementById('TCTRHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                </script></div>
    <div class="textfield_results"><asp:label id="TCTR" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_results"><label for="adjustment">Estimated home equity after <asp:label id="yrs1" runat="server">x</asp:label> years:</label>
    <div class="help_tip"><img id="EstHomeEqtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('EstHomeEqtHelp').smartTip="This is the amount of equity you accumulate as you pay off your mortgage.";
				                    document.getElementById('EstHomeEqtHelp').smartTipHeader="Estimated home equity";
				                    document.getElementById('EstHomeEqtHelp').onmousemove=showSmartTip;
				                    document.getElementById('EstHomeEqtHelp').onmouseout=hideSmartTip;
				                    document.getElementById('EstHomeEqtHelp').smartTipXOffset=-700;	
								    document.getElementById('EstHomeEqtHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                </script></div>
    <div class="textfield_results"><asp:label id="EstHomeEqt" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results"><label for="adjustment">Amount of savings from mortgage interest deduction after <asp:label id="yrs2" runat="server">x</asp:label> years:</label>
    <div class="help_tip"><img id="AmtofSavingsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('AmtofSavingsHelp').smartTip="Most mortgage interest is tax deductible. This amount shows approximately what the amount of your tax deduction would be, based on the information provided. Consult a tax advisor about your particular situation.";
				                    document.getElementById('AmtofSavingsHelp').smartTipHeader="Amount of savings from possible tax deduction";
				                    document.getElementById('AmtofSavingsHelp').onmousemove=showSmartTip;
				                    document.getElementById('AmtofSavingsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('AmtofSavingsHelp').smartTipXOffset=-700;	
								    document.getElementById('AmtofSavingsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                </script></div>
    <div class="textfield_results"><asp:label id="AmtofSavings" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_results"><label for="adjustment">Net cost to own home after <asp:label id="yrs3" runat="server">x</asp:label> years (includes tax savings and equity)</label>
    <div class="help_tip"><img id="NetCostHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('NetCostHelp').smartTip="This is the amount you would pay to own a home, accounting for the mortgage interest tax deduction and the equity you would accumulate.";
				                    document.getElementById('NetCostHelp').smartTipHeader="Net cost to own home";
				                    document.getElementById('NetCostHelp').onmousemove=showSmartTip;
				                    document.getElementById('NetCostHelp').onmouseout=hideSmartTip;
				                    document.getElementById('NetCostHelp').smartTipXOffset=-700;	
								    document.getElementById('NetCostHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                </script></div>
    <div class="textfield_results"><asp:label id="NetCost" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results"><label for="adjustment">Cost to rent for <asp:label id="yrs4" runat="server">x</asp:label> years</label>
    <div class="help_tip"><img id="CosttoRentHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('CosttoRentHelp').smartTip="This is your cost to rent, which you can compare with the net cost to own a home.";
				                    document.getElementById('CosttoRentHelp').smartTipHeader="Cost to rent";
				                    document.getElementById('CosttoRentHelp').onmousemove=showSmartTip;
				                    document.getElementById('CosttoRentHelp').onmouseout=hideSmartTip;
				                    document.getElementById('CosttoRentHelp').smartTipXOffset=-700;	
								    document.getElementById('CosttoRentHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                </script></div>
    <div class="textfield_results"><asp:label id="CosttoRent" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label><a href="https://secure.lendingtree.com/mortgage/ctl_borrower.asp?page=loan_selection&verb=continue&O_loan_type=LOAN_TYPE_MORTGAGE&init=1"><img class="complete_request" alt="" src="/images/cms/btn_complete_request.gif" /></a></label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit2').click();"><img class="recalc_button" alt="" src="/images/cms/btn_recalculate.gif" /></a> <input id="Submit2" style="DISPLAY: none" type="submit" runat="server" name="Submit2" value="Recalculate" />
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label class="results_text" for="">Or call <strong>1-800-555-TREE</strong> to speak with a loan specialist.</label>
    <div class="help_tip"> </div>
    <div class="textfield_results"> </div>
    <div class="clear-field"> </div>
    </div>
    </div>
    <!-- end results -->
    <p> </p>
    <p><a class="tan_link" href="/Publications/Publications.asp">Sign up for our Email Newsletter.</a></p>
    <%End If%>
    <p> </p>
    <p class="disclosure">While this calculator takes into account the home equity you will build from mortgage payments, it does not take into account the equity created from appreciation of your home's value, or, if you continued to rent, any increases in your monthly payments. </p>
    <p class="disclosure">LendingTree calculators are for informational purposes only. LendingTree does not guarantee the accuracy of the calculators, or that you will receive the input rates. Consult a financial advisor for details specific to your situation.</p>
</form>
]]>
				</content:encoded>
			</item>
			<item><title>Adjustable rate mortgage payment calculator</title>
				<description>This calculator helps you determine the amount of your ARM payments.</description>
				<link>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Adjustable-rate-mortgage-payment-calculator.aspx</link>
				<pubDate>Thu, 1 Nov 2007 10:10:33 EST</pubDate>
				<category>Calculators</category>
				<guid>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Adjustable-rate-mortgage-payment-calculator.aspx</guid>
				<content:encoded>
<![CDATA[
Adjustable rate mortgage payment calculator
This calculator helps you determine the amount of your ARM payments.
<script runat="server">    
                            Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
                                If IsPostBack Then
                                    Dim ServiceConnector As localhost.Calculators = New localhost.Calculators
                                    Dim FormValues As System.Collections.Specialized.NameValueCollection
                                    FormValues = Request.Form
                                    Dim LoanAmount As Double = CDbl(FormValues.Item("LoanAmount"))
                                    Dim StartingInterestRate As Double = CDbl(FormValues.Item("StartingInterestRate")) / 100
                                    Dim LoanTerm As Integer = CInt(FormValues.Item("LoanTerm"))
                                    Dim EstimatedPPT As Double = 0
                                    If (FormValues.Item("EAPPT") <> "") Then
                                        EstimatedPPT = CDbl(FormValues.Item("EAPPT"))
                                    End If
                                    Dim EstimatedHOI As Double = 0
                                    If (FormValues.Item("EAHOI") <> "") Then
                                        EstimatedHOI = CDbl(FormValues.Item("EAHOI"))
                                    End If
                                    Dim InitialRateTerm As Integer = CInt(FormValues.Item("InitialRateTerm"))
                                    Dim Index As Double = CDbl(FormValues.Item("Index")) / 100
                                    Dim Margin As Double = CDbl(FormValues.Item("Margin")) / 100
                                    Dim AmtAdjust As Double = CDbl(FormValues.Item("AmtAdjust")) / 100
                                    Dim LftCap As Double = CDbl(FormValues.Item("LftCap")) / 100
                                    Dim AdjustRT As Double
                                    AdjustRT = Index + Margin + AmtAdjust
                                    Dim Results As String = ServiceConnector.WhatWillMyARMPaymentsBe(LoanAmount, StartingInterestRate, LoanTerm, EstimatedPPT, EstimatedHOI, InitialRateTerm, Index, Margin, AmtAdjust, AdjustRT, LftCap)
                                    Dim ResultArray As String() = Split(Results, ",")
                                    MonthlyPayment.Text = FormatCurrency(ResultArray(5))
                                    AdjustedMonthlyPayment.Text = FormatCurrency(ResultArray(6))
                                    MaximumMonthlyPayment.Text = FormatCurrency(ResultArray(7))
                                    Dim LoanMonths, y, TermLft As Integer
                                    LoanMonths = LoanTerm * 12
                                    Dim BegBalance, LoanBalAft1yr, Payment, IndexIR, LBAFP, MarginRT, AmtofAdjRT, Interest As Double
                                    Dim Principal, EndBalance, SIntRT As Double
                                    LoanBalAft1yr = CDbl(ResultArray(2))
                                    BegBalance = LoanAmount
                                    IndexIR = Index / 12
                                    MarginRT = Margin / 12
                                    AmtofAdjRT = AmtAdjust / 12
                                    TermLft = CInt(ResultArray(1))
                                    LBAFP = CDbl(ResultArray(2))
                                    BuildTable.Text = ""
                                    For y = 0 To LoanMonths - 1
                                        If y < InitialRateTerm Then
                                            SIntRT = StartingInterestRate / 12
                                            Payment = Math.Abs(Financial.Pmt(SIntRT, LoanMonths, LoanAmount, 0, 0))
                                        Else
                                            ' Fp = IndexIR + MarginRT + AmtofAdjRT
                                            SIntRT = AdjustRT / 12
                                            Payment = Math.Abs(Financial.Pmt(AdjustRT / 12, TermLft, LBAFP, 0, 0))
                                            StartingInterestRate = AdjustRT
                                        End If
                                        Interest = BegBalance * SIntRT
                                        Principal = Payment - Interest
                                        EndBalance = BegBalance - Principal
                                        If (y = InitialRateTerm - 1) Then
                                            LBAFP = EndBalance
                                        End If
                                        BuildTable.Text = BuildTable.Text & "<tr><td class='labels'>" & CStr(y + 1) & "</td>"
                                        BuildTable.Text = BuildTable.Text & "<td class='labels'>" & CStr(FormatCurrency(BegBalance)) & "</td>"
                                        BuildTable.Text = BuildTable.Text & "<td class='labels'>" & CStr(StartingInterestRate) * 100 & "%</td>"
                                        BuildTable.Text = BuildTable.Text & "<td class='labels'>" & CStr(FormatCurrency(Payment)) & "</td>"
                                        BuildTable.Text = BuildTable.Text & "<td class='labels'>" & CStr(FormatCurrency(Interest)) & "</td>"
                                        BuildTable.Text = BuildTable.Text & "<td class='labels'>" & CStr(FormatCurrency(Principal)) & "</td>"
                                        BuildTable.Text = BuildTable.Text & "<td class='labels'>" & CStr(FormatCurrency(EndBalance)) & "</td></tr>"
                                        BegBalance = EndBalance
                                    Next
                                End If
                            End Sub
                        </script><script language="javascript" type="text/javascript">
			function showHide(id){
				var AT = document.getElementById(id);
				if (AT.style.display == 'none'){
				AT.style.display = 'block';
				}else{
				AT.style.display = 'none';
				}
			}
                        </script><script language="Javascript" src="/common/smartTip.js">
                        </script><script language="Javascript" src="/common/calc_library.js"></script>
<link href="/images/css/content-calculators-smartborrower.css" type="text/css" rel="stylesheet" />
<div class="smartTipWindow" id="_pageSmartTip" onclick="this.style.display='none';"></div>
<form id="Form1" action="" method="post" runat="server">
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator0" runat="server" display="dynamic" errormessage="* You must enter a value into LoanAmount" controltovalidate="LoanAmount">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator0" runat="server" display="dynamic" errormessage="* Invalid Entry LoanAmount" controltovalidate="LoanAmount" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Loan Amount:</label>
    <div class="help_tip"><img id="loanHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('loanHelp').smartTip="Enter the amount you plan to finance. For example, if you are buying a $300,000 home with a 20% down payment, your loan amount would be $240,000.";
					            document.getElementById('loanHelp').smartTipHeader="Loan Amount";
					            document.getElementById('loanHelp').onmousemove=showSmartTip;
					            document.getElementById('loanHelp').onmouseout=hideSmartTip;
					            document.getElementById('loanHelp').smartTipXOffset=-700;	
								document.getElementById('loanHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="LoanAmount" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" display="dynamic" errormessage="* You must enter a value into StartingInterestRate" controltovalidate="StartingInterestRate">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" display="dynamic" errormessage="* Invalid Entry StartingInterestRate" controltovalidate="StartingInterestRate" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="rate"><span class="required">*</span>Initial interest rate:</label>
    <div class="help_tip"><img id="interestHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('interestHelp').smartTip="Enter the starting rate that you will pay. You can find current rates from Freddie Mac at www.freddiemac.com.";
				                    document.getElementById('interestHelp').smartTipHeader="Initial interest rate";
				                    document.getElementById('interestHelp').onmousemove=showSmartTip;
				                    document.getElementById('interestHelp').onmouseout=hideSmartTip;
				                    document.getElementById('interestHelp').smartTipXOffset=-700;	
								    document.getElementById('interestHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="StartingInterestRate" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><label for="term"><span class="required">*</span>Term (in years):</label>
    <div class="help_tip"><img id="termHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('termHelp').smartTip="The period of time between the beginning loan date and the date the entire balance of the loan is due.";
				                    document.getElementById('termHelp').smartTipHeader="Term";
				                    document.getElementById('termHelp').onmousemove=showSmartTip;
				                    document.getElementById('termHelp').onmouseout=hideSmartTip;
				                    document.getElementById('termHelp').smartTipXOffset=-700;	
								    document.getElementById('termHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:dropdownlist id="LoanTerm" runat="server" cssclass="option"><asp:listitem text="15" value="15"></asp:listitem><asp:listitem text="20" value="20"></asp:listitem><asp:listitem text="25" value="25"></asp:listitem><asp:listitem text="30" value="30"></asp:listitem><asp:listitem text="40" value="40"></asp:listitem><asp:listitem text="50" value="50"></asp:listitem></asp:dropdownlist>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" display="dynamic" errormessage="* Invalid Entry EAPPT" controltovalidate="EAPPT" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter a Number.</p>
    </asp:regularexpressionvalidator><label for="taxes">Estimated annual property taxes:</label>
    <div class="help_tip"><img id="taxHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('taxHelp').smartTip="Some lenders will require you to open an escrow account, and your property taxes will be paid from that account by the lender. These payments are added to your monthly mortgage payment.";
				                    document.getElementById('taxHelp').smartTipHeader="Estimated annual property taxes";
				                    document.getElementById('taxHelp').onmousemove=showSmartTip;
				                    document.getElementById('taxHelp').onmouseout=hideSmartTip;
				                    document.getElementById('taxHelp').smartTipXOffset=-700;	
								    document.getElementById('taxHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="EAPPT" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server" display="dynamic" errormessage="* Invalid Entry EAHOI" controltovalidate="EAHOI" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter a Number.</p>
    </asp:regularexpressionvalidator><label for="insurance">Estimated annual homeowners insurance:</label>
    <div class="help_tip"><img id="insuranceHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('insuranceHelp').smartTip="Most lenders will require proof of a homeowners insurance policy before closing on your home. Some lenders will pay your homeowners insurance from your escrow account. These payments are added to your monthly mortgage payment.";
				                    document.getElementById('insuranceHelp').smartTipHeader="Estimated annual homeowners insurance";
				                    document.getElementById('insuranceHelp').onmousemove=showSmartTip;
				                    document.getElementById('insuranceHelp').onmouseout=hideSmartTip;
				                    document.getElementById('insuranceHelp').smartTipXOffset=-700;	
								    document.getElementById('insuranceHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="EAHOI" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" runat="server" cssclass="textfield"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><label class="content_subtitle">About Your ARM</label>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><label for="term"><span class="required">*</span>Length of initial rate term (in months):</label>
    <div class="help_tip"><img id="iTermHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('iTermHelp').smartTip="The number of months until your first rate adjustment. For example, on a 5/1 hybrid ARM with a 30-year amortization period, your first rate adjustment will take place after five years (or 60 months). You would therefore choose \"60.\"";
				                    document.getElementById('iTermHelp').smartTipHeader="Length of initial rate term";
				                    document.getElementById('iTermHelp').onmousemove=showSmartTip;
				                    document.getElementById('iTermHelp').onmouseout=hideSmartTip;
				                    document.getElementById('iTermHelp').smartTipXOffset=-700;	
								    document.getElementById('iTermHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:dropdownlist id="InitialRateTerm" runat="server" cssclass="option"><asp:listitem text="12" value="12"></asp:listitem><asp:listitem text="24" value="24"></asp:listitem><asp:listitem text="36" value="36"></asp:listitem><asp:listitem text="48" value="48"></asp:listitem><asp:listitem text="60" value="60"></asp:listitem><asp:listitem text="72" value="72"></asp:listitem><asp:listitem text="84" value="84"></asp:listitem><asp:listitem text="120" value="120"></asp:listitem></asp:dropdownlist>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" display="dynamic" errormessage="* You must enter a value into Index" controltovalidate="Index">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator4" runat="server" display="dynamic" errormessage="* Invalid Entry Index" controltovalidate="Index" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="index"><span class="required">*</span>Index:</label>
    <div class="help_tip"><img id="indexHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('indexHelp').smartTip="An interest rate based on the returns of investments such as U.S. Treasury securities. To determine rates for adjustable rate mortgages, lenders start with a particular index rate and then add a margin to get the final rate. As the index changes, so does the rate on your ARM. If you don't know your index, ask your lender.";
				                    document.getElementById('indexHelp').smartTipHeader="Index";
				                    document.getElementById('indexHelp').onmousemove=showSmartTip;
				                    document.getElementById('indexHelp').onmouseout=hideSmartTip;
				                    document.getElementById('indexHelp').smartTipXOffset=-700;	
								    document.getElementById('indexHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="Index" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" display="dynamic" errormessage="* You must enter a value into Margin" controltovalidate="Margin">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator5" runat="server" display="dynamic" errormessage="* Invalid Entry Margin" controltovalidate="Margin" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="margin"><span class="required">*</span>Margin:</label>
    <div class="help_tip"><img id="marginHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('marginHelp').smartTip="The amount a lender adds to an index rate to establish the interest rate on an adjustable rate mortgage. The index and the margin added together will equal the rate you pay. You can find average margins on www.freddiemac.com, or you can ask your lender what your margin is.";
				                    document.getElementById('marginHelp').smartTipHeader="Margin";
				                    document.getElementById('marginHelp').onmousemove=showSmartTip;
				                    document.getElementById('marginHelp').onmouseout=hideSmartTip;
				                    document.getElementById('marginHelp').smartTipXOffset=-700;	
								    document.getElementById('marginHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="Margin" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator6" runat="server" display="dynamic" errormessage="* You must enter a value into AmtAdjust" controltovalidate="AmtAdjust">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator6" runat="server" display="dynamic" errormessage="* Invalid Entry AmtAdjust" controltovalidate="AmtAdjust" validationexpression="\-?\d{1,3}(\.\d{1,3})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="adjustment"><span class="required">*</span>Expected amount of index adjustment:</label>
    <div class="help_tip"><img id="adjustmentHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('adjustmentHelp').smartTip="Estimate how much you think your interest rate will increase or decrease at your first adjustment period. Make sure you use a negative sign in front of the value for a decrease in the rate. For example, if you think after your initial period that interest rates will fall 0.5 percent, enter \"-0.5\".";
				                    document.getElementById('adjustmentHelp').smartTipHeader="Expected amount of index adjustment";
				                    document.getElementById('adjustmentHelp').onmousemove=showSmartTip;
				                    document.getElementById('adjustmentHelp').onmouseout=hideSmartTip;
				                    document.getElementById('adjustmentHelp').smartTipXOffset=-700;	
								    document.getElementById('adjustmentHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="AmtAdjust" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="8"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator7" runat="server" display="dynamic" errormessage="* You must enter a value into LftCap" controltovalidate="LftCap">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator7" runat="server" display="dynamic" errormessage="* Invalid Entry LftCap" controltovalidate="LftCap" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="cap"><span class="required">*</span>Lifetime cap:</label>
    <div class="help_tip"><img id="capHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('capHelp').smartTip="This is the highest interest rate possible under an adjustable rate mortgage. Also called an \"interest rate ceiling,\" it's based on the number of percentage points your rate can increase from the initial rate.";
				                    document.getElementById('capHelp').smartTipHeader="Lifetime cap";
				                    document.getElementById('capHelp').onmousemove=showSmartTip;
				                    document.getElementById('capHelp').onmouseout=hideSmartTip;
				                    document.getElementById('capHelp').smartTipXOffset=-700;	
								    document.getElementById('capHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="LftCap" onblur="this.value=formatPercentageDecimal(this)" width="55px" runat="server" cssclass="textfield" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <% If Not IsPostBack Then%>
    <div class="field_no_bg"><label> </label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit1').click();"><img class="calc_button" alt="" src="/images/cms/btn_calculate.gif" /></a> <input id="Submit1" style="DISPLAY: none" type="submit" runat="server" name="Submit" value="Calculate" />
    <div class="clear-field"> </div>
    </div>
    <%End If%><% If IsPostBack Then%>
    <div id="results">
    <div class="results_title">Results</div>
    <div class="field_no_bg_results"><label for="adjustment">Your initial monthly payment:</label>
    <div class="help_tip"><img id="monthlyPayments" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('monthlyPayments').smartTip="This is the amount you would owe each month before the interest rate on your loan adjusts.";
				                        document.getElementById('monthlyPayments').smartTipHeader="Your initial monthly payment";
				                        document.getElementById('monthlyPayments').onmousemove=showSmartTip;
				                        document.getElementById('monthlyPayments').onmouseout=hideSmartTip;
				                        document.getElementById('monthlyPayments').smartTipXOffset=-700;	
								        document.getElementById('monthlyPayments').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="MonthlyPayment" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_results"><label for="">Monthly payment after rate adjustments:</label>
    <div class="help_tip"><img id="AdjustedMonthlyPayments" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('AdjustedMonthlyPayments').smartTip="This is the amount you would owe each month after your first interest rate adjustment. This amount is based on the interest rate adjustment information that you provided; your actual rate adjustment may be higher or lower.";
				                        document.getElementById('AdjustedMonthlyPayments').smartTipHeader="Montly payment after rate adjustments";
				                        document.getElementById('AdjustedMonthlyPayments').onmousemove=showSmartTip;
				                        document.getElementById('AdjustedMonthlyPayments').onmouseout=hideSmartTip;
				                        document.getElementById('AdjustedMonthlyPayments').smartTipXOffset=-700;	
								        document.getElementById('AdjustedMonthlyPayments').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="AdjustedMonthlyPayment" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results"><label for="adjustment">Your maximum monthly payment:</label>
    <div class="help_tip"><img id="MaximumMonthlyPayments" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('MaximumMonthlyPayments').smartTip="This is the highest payment that you could owe. The amount is based on the lifetime cap information that you provided.";
				                        document.getElementById('MaximumMonthlyPayments').smartTipHeader="Your maximum monthly payment";
				                        document.getElementById('MaximumMonthlyPayments').onmousemove=showSmartTip;
				                        document.getElementById('MaximumMonthlyPayments').onmouseout=hideSmartTip;
				                        document.getElementById('MaximumMonthlyPayments').smartTipXOffset=-700;	
								        document.getElementById('MaximumMonthlyPayments').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="MaximumMonthlyPayment" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label><a href="https://secure.lendingtree.com/mortgage/ctl_borrower.asp?page=loan_selection&verb=continue&O_loan_type=LOAN_TYPE_MORTGAGE&init=1"><img class="complete_request" alt="" src="/images/cms/btn_complete_request.gif" /></a></label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit2').click();"><img class="recalc_button" alt="" src="/images/cms/btn_recalculate.gif" /></a> <input id="Submit2" style="DISPLAY: none" type="submit" runat="server" name="Submit1" value="Recalculate" />
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label class="results_text" for="">Or call <strong>1-800-555-TREE</strong> to speak with a loan specialist.</label>
    <div class="help_tip"> </div>
    <div class="textfield_results"> </div>
    <div class="clear-field-results"> </div>
    </div>
    </div>
    <% End If%><!-- end results --><% If IsPostBack Then%>
    <p> </p>
    <p><a class="tan_link" href="/Publications/Publications.asp">Sign up for our Email Newsletter.</a></p>
    <p><a class="tan_link" href="javascript: showHide('AmortizationTable');">See your payment amortization table.</a></p>
    <p class="disclosure">Monthly payment includes insurance and taxes, if you provided that information. A requirement to buy Private Mortgage Insurance would increase your monthly payment.</p>
    <p class="disclosure">LendingTree calculators are for informational purposes only. LendingTree does not guarantee the accuracy of the calculators, or that you will receive the input rates. Consult a financial advisor for details specific to your situation.</p>
    <!-- end brown box -->
    <div id="AmortizationTable" style="DISPLAY: none">
    <p class="pro1"><strong>Payment Amortization Table</strong></p>
    <table cellspacing="0" width="95%" align="center" bgcolor="#ffffff">
        <tbody>
            <tr>
                <td>
                <table cellspacing="3" width="100%" align="center" bgcolor="#ffffff" border="0" class="amor-table-content">
                    <tbody>
                        <tr>
                            <td class="labels"><strong>Payment Number</strong></td>
                            <td class="labels"><strong>Beg. Balance</strong></td>
                            <td class="labels"><strong>Interest Rate</strong></td>
                            <td class="labels"><strong>Payment</strong></td>
                            <td class="labels"><strong>Interest</strong></td>
                            <td class="labels"><strong>Principal</strong></td>
                            <td class="labels"><strong>End Balance</strong></td>
                        </tr>
                        <asp:label id="BuildTable" runat="server"></asp:label>
                    </tbody>
                </table>
                </td>
            </tr>
        </tbody>
    </table>
    </div>
    <%Else%>
    <p class="disclosure">LendingTree calculators are for informational purposes only. LendingTree does not guarantee the accuracy of the calculators, or that you will receive the input rates. Consult a financial advisor for details specific to your situation.</p>
    <% End If%>
</form>
]]>
				</content:encoded>
			</item>
			<item><title>Home affordability calculator</title>
				<description>This calculator helps you determine what price home you can afford, as well as what monthly payment you can afford.</description>
				<link>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Home-affordability-calculator_acdc_1207088705780.aspx</link>
				<pubDate>Fri, 26 Oct 2007 16:30:02 EST</pubDate>
				<category>Calculators</category>
				<guid>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Home-affordability-calculator_acdc_1207088705780.aspx</guid>
				<content:encoded>
<![CDATA[
Home affordability calculator
This calculator helps you determine what price home you can afford, as well as what monthly payment you can afford.
<script runat="server">    
                            Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
                                If IsPostBack Then
                                    Dim Grossmonthlypymt, IntRate, DwnPymt, MonDebtPymt, HomeInsurance, PropertyTx, MortLoanAmt As Double
                                    Dim Years As Integer
                                    Dim MortPayment As String
                                    Dim colForm1 As System.Collections.Specialized.NameValueCollection
                                    Dim ServiceConnector As localhost.Calculators = New localhost.Calculators
                                    'Get Data from avh.aspx web form
                                    colForm1 = Request.Form
                                    'Converting the String values from the form to Double and performing calculations
                                    Grossmonthlypymt = CDbl(colForm1.Item("GrossMonPymt"))
                                    DwnPymt = CDbl(colForm1.Item("DownPymt"))
                                    MonDebtPymt = CDbl(colForm1.Item("MonDbtPymt"))
                                    HomeInsurance = 0
                                    If (colForm1.Item("HomeIns") <> "") Then
                                        HomeInsurance = CDbl(colForm1.Item("HomeIns"))
                                    End If
                                    PropertyTx = 0
                                    If (colForm1.Item("PropertyTax") <> "") Then
                                        PropertyTx = CDbl(colForm1.Item("PropertyTax"))
                                    End If
                                    IntRate = CDbl(colForm1.Item("IntRT"))
                                    If IntRate > 1 Then IntRate = IntRate / 100
                                    Years = CInt(colForm1.Item("Term"))
                                    'Actual call to Web Service
                                    MortPayment = ServiceConnector.WhatPriceHomeCanIAfford(Grossmonthlypymt, DwnPymt, MonDebtPymt, HomeInsurance, PropertyTx, IntRate, Years)
                                    'Using Split function to split the output from Web Service.
                                    Dim stringItems() As String = MortPayment.Split(",")
                                    MortLoanAmt = CDbl(stringItems(0))
                                    If MortLoanAmt < 0 Then
                                        MortgageLAmt.Text = " Your monthly debt payments may not allow you to qualify for a mortgage. Call a loan specialist at 1-800-555-TREE to learn what you can do to qualify."
                                        showDiv.Value = False
                                    Else
                                        MortgageLAmt.Text = FormatCurrency(CDbl(stringItems(0)))
                                        showDiv.Value = True
                                    End If
                                    DwnPymts.Text = FormatCurrency(CDbl(stringItems(1)))
                                    HomeAff.Text = FormatCurrency(CDbl(stringItems(2)))
                                    MonthlyMortgagePymt.Text = FormatCurrency(CDbl(stringItems(3)))
                                End If
                            End Sub
                        </script><script language="Javascript" src="/common/smartTip.js"></script><script language="Javascript" src="/common/calc_library.js"></script>
<link href="/images/css/content-calculators-smartborrower.css" type="text/css" rel="stylesheet" />
<div class="smartTipWindow" id="_pageSmartTip" onclick="this.style.display='none';"></div>
<form id="Form1" action="" method="post" runat="server" name="form1">
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator0" errormessage="* You must enter a value into GrossMonPymt" controltovalidate="GrossMonPymt" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator0" errormessage="* Invalid Entry GrossMonPymt" controltovalidate="GrossMonPymt" validationexpression="\$?\d*[,\d]*\.?\d+" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Gross monthly income:</label>
    <div class="help_tip"><img id="GrossMonPymtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('GrossMonPymtHelp').smartTip="Enter your income before taxes and other expenses (including retirement accounts and health insurance).";
					            document.getElementById('GrossMonPymtHelp').smartTipHeader="Gross monthly income";
					            document.getElementById('GrossMonPymtHelp').onmousemove=showSmartTip;
					            document.getElementById('GrossMonPymtHelp').onmouseout=hideSmartTip;
					            document.getElementById('GrossMonPymtHelp').smartTipXOffset=-700;	
								document.getElementById('GrossMonPymtHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="GrossMonPymt" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" cssclass="textfield" runat="server"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator1" errormessage="* You must enter a value into DownPymt" controltovalidate="DownPymt" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" errormessage="* Invalid Entry DownPymt" controltovalidate="DownPymt" validationexpression="\$?\d*[,\d]*\.?\d+" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Money available for a down payment:</label>
    <div class="help_tip"><img id="DownPymtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('DownPymtHelp').smartTip="Enter the down payment you expect to have when you buy your home.";
					            document.getElementById('DownPymtHelp').smartTipHeader="Money available for a down payment";
					            document.getElementById('DownPymtHelp').onmousemove=showSmartTip;
					            document.getElementById('DownPymtHelp').onmouseout=hideSmartTip;
					            document.getElementById('DownPymtHelp').smartTipXOffset=-700;	
								document.getElementById('DownPymtHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="DownPymt" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" cssclass="textfield" runat="server"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator2" errormessage="* You must enter a value into MonDbtPymt" controltovalidate="MonDbtPymt" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator2" errormessage="* Invalid Entry MonDbtPymt" controltovalidate="MonDbtPymt" validationexpression="\$?\d*[,\d]*\.?\d+" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Monthly debt payments:</label>
    <div class="help_tip"><img id="MonDbtPymtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('MonDbtPymtHelp').smartTip="Enter your total debt payments. Remember to include credit card, student loan and auto payments, as well as any other debts you may have such as child support. If you are a homeowner, do not include your current mortgage payment.";
					            document.getElementById('MonDbtPymtHelp').smartTipHeader="Monthly debt payments";
					            document.getElementById('MonDbtPymtHelp').onmousemove=showSmartTip;
					            document.getElementById('MonDbtPymtHelp').onmouseout=hideSmartTip;
					            document.getElementById('MonDbtPymtHelp').smartTipXOffset=-700;	
								document.getElementById('MonDbtPymtHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="MonDbtPymt" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" cssclass="textfield" runat="server"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator3" errormessage="* Invalid Entry HomeIns" controltovalidate="HomeIns" validationexpression="\$?\d*[,\d]*\.?\d+" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual cost for homeowner's insurance:</label>
    <div class="help_tip"><img id="HomeInsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('HomeInsHelp').smartTip="Most lenders will require you to carry homeowners insurance. For more accurate results, enter the annual cost for this insurance.";
					            document.getElementById('HomeInsHelp').smartTipHeader="Annual cost for homeowner's insurance";
					            document.getElementById('HomeInsHelp').onmousemove=showSmartTip;
					            document.getElementById('HomeInsHelp').onmouseout=hideSmartTip;
					            document.getElementById('HomeInsHelp').smartTipXOffset=-700;	
								document.getElementById('HomeInsHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="HomeIns" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" cssclass="textfield" runat="server"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator4" errormessage="* Invalid Entry PropertyTax" controltovalidate="PropertyTax" validationexpression="\$?\d*[,\d]*\.?\d+" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid Entry. Please Enter Numeric Values Only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount">Annual cost for property taxes:</label>
    <div class="help_tip"><img id="PropertyTaxHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('PropertyTaxHelp').smartTip="Some lenders will require you to open an escrow account, and your property taxes will be paid from that account by the lender. These payments are added to your monthly mortgage payment, so for more accurate results, enter the annual cost. Your real estate agent can help you estimate this cost.";
					            document.getElementById('PropertyTaxHelp').smartTipHeader="Annual cost for property taxes";
					            document.getElementById('PropertyTaxHelp').onmousemove=showSmartTip;
					            document.getElementById('PropertyTaxHelp').onmouseout=hideSmartTip;
					            document.getElementById('PropertyTaxHelp').smartTipXOffset=-700;	
								document.getElementById('PropertyTaxHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="PropertyTax" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" width="100px" cssclass="textfield" runat="server"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><label class="content_subtitle">Mortgage information</label>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator5" errormessage="* You must enter a value into IntRT" controltovalidate="IntRT" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator5" errormessage="* Invalid Entry IntRT" controltovalidate="IntRT" validationexpression="\d{1,3}(\.\d{1,6})?" runat="server" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a valid number.</p>
    </asp:regularexpressionvalidator><label for="rate"><span class="required">*</span>Interest rate:</label>
    <div class="help_tip"><img id="IntRTHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('IntRTHelp').smartTip="Enter the interest rate that you will pay on your mortgage. You can find current average rates from Freddie Mac at www.freddiemac.com.";
				                    document.getElementById('IntRTHelp').smartTipHeader="Interest rate";
				                    document.getElementById('IntRTHelp').onmousemove=showSmartTip;
				                    document.getElementById('IntRTHelp').onmouseout=hideSmartTip;
				                    document.getElementById('IntRTHelp').smartTipXOffset=-700;	
								    document.getElementById('IntRTHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="IntRT" onblur="this.value=formatPercentageDecimal(this)" width="55px" cssclass="textfield" runat="server" maxlength="7"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><label for="term">Term (in years):</label>
    <div class="help_tip"><img id="TermHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('TermHelp').smartTip="The period of time between the beginning loan date and the date the entire balance of the loan is due.";
				                    document.getElementById('TermHelp').smartTipHeader="Term";
				                    document.getElementById('TermHelp').onmousemove=showSmartTip;
				                    document.getElementById('TermHelp').onmouseout=hideSmartTip;
				                    document.getElementById('TermHelp').smartTipXOffset=-700;	
								    document.getElementById('TermHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:dropdownlist id="Term" cssclass="option" runat="server"><asp:listitem text="15" value="15"></asp:listitem><asp:listitem text="20" value="20"></asp:listitem><asp:listitem text="25" value="25"></asp:listitem><asp:listitem text="30" value="30"></asp:listitem><asp:listitem text="40" value="40"></asp:listitem><asp:listitem text="50" value="50"></asp:listitem></asp:dropdownlist>
    <div class="clear-field"> </div>
    </div>
    <%If Not IsPostBack Then%>
    <div class="field"><label> </label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit1').click();"><img class="calc_button" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" alt="" src="/images/cms/btn_calculate.gif" /></a> <input id="Submit1" style="DISPLAY: none" type="submit" runat="server" name="Submit" value="Calculate" />
    <div class="clear-field"> </div>
    </div>
    <%Else%><!-- --------Results--------- --><asp:hiddenfield id="showDiv" runat="server"></asp:hiddenfield>
    <div id="results">
    <div class="results_title">Results</div>
    <div class="field_no_bg_results"><label for="adjustment">Mortgage loan amount:</label>
    <div class="help_tip"><img id="MortgageLAmtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('MortgageLAmtHelp').smartTip="The loan amount that you may be able to borrow.";
				                    document.getElementById('MortgageLAmtHelp').smartTipHeader="Mortgage loan amount";
				                    document.getElementById('MortgageLAmtHelp').onmousemove=showSmartTip;
				                    document.getElementById('MortgageLAmtHelp').onmouseout=hideSmartTip;
				                    document.getElementById('MortgageLAmtHelp').smartTipXOffset=-700;	
								    document.getElementById('MortgageLAmtHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="MortgageLAmt" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <%If showDiv.Value = True Then%>
    <div class="field_results" id="results_DwnPymts"><label for="adjustment">Down payment:</label>
    <div class="help_tip"><img id="DwnPymtsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('DwnPymtsHelp').smartTip="The amount you listed as available for a down payment.";
				                    document.getElementById('DwnPymtsHelp').smartTipHeader="Down payment";
				                    document.getElementById('DwnPymtsHelp').onmousemove=showSmartTip;
				                    document.getElementById('DwnPymtsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('DwnPymtsHelp').smartTipXOffset=-700;	
								    document.getElementById('DwnPymtsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="DwnPymts" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results" id="results_HomeAff"><label for="adjustment">Price of home you can afford:</label>
    <div class="help_tip"><img id="HomeAffHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('HomeAffHelp').smartTip="This adds the loan amount with your down payment, to arrive at the total home price you can afford.";
				                    document.getElementById('HomeAffHelp').smartTipHeader="Price of home you can afford";
				                    document.getElementById('HomeAffHelp').onmousemove=showSmartTip;
				                    document.getElementById('HomeAffHelp').onmouseout=hideSmartTip;
				                    document.getElementById('HomeAffHelp').smartTipXOffset=-700;	
								    document.getElementById('HomeAffHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="HomeAff" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_results" id="results_MonthlyMortgagePymt"><label for="adjustment">Monthly mortgage payment:</label>
    <div class="help_tip"><img id="MonthlyMortgagePymtHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('MonthlyMortgagePymtHelp').smartTip="The loan payment per month.";
				                    document.getElementById('MonthlyMortgagePymtHelp').smartTipHeader="Monthly mortgage payment";
				                    document.getElementById('MonthlyMortgagePymtHelp').onmousemove=showSmartTip;
				                    document.getElementById('MonthlyMortgagePymtHelp').onmouseout=hideSmartTip;
				                    document.getElementById('MonthlyMortgagePymtHelp').smartTipXOffset=-700;	
								    document.getElementById('MonthlyMortgagePymtHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results"><asp:label id="MonthlyMortgagePymt" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <%End If%>
    <div class="field_no_bg"><label><a href="https://secure.lendingtree.com/mortgage/ctl_borrower.asp?page=loan_selection&verb=continue&O_loan_type=LOAN_TYPE_MORTGAGE&init=1"><img class="complete_request" alt="" src="/images/cms/btn_complete_request.gif" /></a></label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit2').click();"><img class="recalc_button" alt="" src="/images/cms/btn_recalculate.gif" /></a> <input id="Submit2" style="DISPLAY: none" type="submit" runat="server" name="Submit2" value="Recalculate" />
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label class="results_text" for="">Or Call <strong>1-800-555-TREE</strong> to speak with a loan specialist.</label>
    <div class="help_tip"> </div>
    <div class="textfield_results"> </div>
    <div class="clear-field-results"> </div>
    </div>
    </div>
    <p class="disclosure">* Calculations are based on a 36% total debt-to-income ratio. Some lenders allow a higher debt-to-income ratio, which would increase the price of the home you can afford. The monthly payment shown does not take into account private mortgage insurance, which would likely be required if your down payment is less than 20 percent. It does take into account your taxes and insurance when determining how much home you can afford, but the monthly payment amount is principal and interest only.</p>
    <p> </p>
    <%End If%>
    <p class="disclosure">LendingTree calculators are for informational purposes only. LendingTree does not guarantee the accuracy of the calculators, or that you will receive the input rates. Consult a financial advisor for details specific to your situation.</p>
</form>
]]>
				</content:encoded>
			</item>
			<item><title>Loan comparison calculator</title>
				<description>This calculator helps you compare mortgages and determine which loan is right for you.</description>
				<link>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Loan-comparison-calculator.aspx</link>
				<pubDate>Tue, 28 Aug 2007 10:30:00 EST</pubDate>
				<category>Calculators</category>
				<guid>http://www.lendingtree.com/smartborrower/Mortgage-Calculators/Loan-comparison-calculator.aspx</guid>
				<content:encoded>
<![CDATA[
Loan comparison calculator
This calculator helps you compare mortgages and determine which loan is right for you.
<script runat="server">    
                            Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
                                If IsPostBack Then
                                    Dim txtLoanAmt As TextBox = Page.FindControl("LoanAmount")
                                    Dim txtMortgageYrs As TextBox = Page.FindControl("MortgageYears")
                                    Dim txtIntRate1 As TextBox = Page.FindControl("InterestRate1")
                                    Dim txtIntRate2 As TextBox = Page.FindControl("InterestRate2")
                                    Dim txtLoanTrm1 As TextBox = Page.FindControl("LoanTerm1")
                                    Dim txtLoanTrm2 As TextBox = Page.FindControl("LoanTerm2")
                                    Dim txtDiscountPnts1 As TextBox = Page.FindControl("DiscountPoints1")
                                    Dim txtDiscountPnts2 As TextBox = Page.FindControl("DiscountPoints2")
                                    Dim txtOriginFee1 As TextBox = Page.FindControl("OriginationFee1")
                                    Dim txtOriginFee2 As TextBox = Page.FindControl("OriginationFee2")
                                    Dim txtCCosts1 As TextBox = Page.FindControl("ClosingCosts1")
                                    Dim txtCCosts2 As TextBox = Page.FindControl("ClosingCosts2")
                                    Dim txtAdjRate1 As RadioButtonList = Page.FindControl("AdjustableRate1")
                                    Dim txtAdjRate2 As RadioButtonList = Page.FindControl("AdjustableRate2")
                                    Dim txtInitRateTerm1 As TextBox = Page.FindControl("InitialRateTerm1")
                                    Dim txtInitRateTerm2 As TextBox = Page.FindControl("InitialRateTerm2")
                                    Dim txtIndx1 As TextBox = Page.FindControl("Index1")
                                    Dim txtIndx2 As TextBox = Page.FindControl("Index2")
                                    Dim txtMarg1 As TextBox = Page.FindControl("Margin1")
                                    Dim txtMarg2 As TextBox = Page.FindControl("Margin2")
                                    Dim txtRateAdj1 As TextBox = Page.FindControl("RateAdjustment1")
                                    Dim txtRateAdj2 As TextBox = Page.FindControl("RateAdjustment2")
                                    Dim txtRateCeil1 As TextBox = Page.FindControl("RateCeiling1")
                                    Dim txtRateCeil2 As TextBox = Page.FindControl("RateCeiling2")
                                    If AdjustableRate1.Text = "0" Then
                                        InitialRateTerm1.Enabled = True
                                        Index1.Enabled = True
                                        Margin1.Enabled = True
                                        RateAdjustment1.Enabled = True
                                        RateCeiling1.Enabled = True
                                        resetValue(InitialRateTerm1)
                                        resetValue(Index1)
                                        resetValue(Margin1)
                                        resetValue(RateAdjustment1)
                                        resetValue(RateCeiling1)
                                    Else
                                        InitialRateTerm1.Enabled = False
                                        Index1.Enabled = False
                                        Margin1.Enabled = False
                                        RateAdjustment1.Enabled = False
                                        RateCeiling1.Enabled = False
                                        InitialRateTerm1.Text = "0"
                                        Index1.Text = "0"
                                        Margin1.Text = "0"
                                        RateAdjustment1.Text = "0"
                                        RateCeiling1.Text = "0"
                                    End If
                                    If AdjustableRate2.Text = "0" Then
                                        InitialRateTerm2.Enabled = True
                                        Index2.Enabled = True
                                        Margin2.Enabled = True
                                        RateAdjustment2.Enabled = True
                                        RateCeiling2.Enabled = True
                                        resetValue(InitialRateTerm2)
                                        resetValue(Index2)
                                        resetValue(Margin2)
                                        resetValue(RateAdjustment2)
                                        resetValue(RateCeiling2)
                                    Else
                                        InitialRateTerm2.Enabled = False
                                        Index2.Enabled = False
                                        Margin2.Enabled = False
                                        RateAdjustment2.Enabled = False
                                        RateCeiling2.Enabled = False
                                        InitialRateTerm2.Text = "0"
                                        Index2.Text = "0"
                                        Margin2.Text = "0"
                                        RateAdjustment2.Text = "0"
                                        RateCeiling2.Text = "0"
                                    End If
                                    Dim ServiceConnector As localhost.Calculators = New localhost.Calculators
                                    Dim FormValues As System.Collections.Specialized.NameValueCollection
                                    FormValues = Request.Form
                                    '''''''''''''''''''''''''''''''''''''''''''''''''''
                                    '''''''Initialize all field values'''''''''''''''''
                                    '''''''''''''''''''''''''''''''''''''''''''''''''''
                                    Dim LoanAmt As Double = 0
                                    If (FormValues.Item("LoanAmount") <> "") Then
                                        LoanAmt = CDbl(FormValues.Item("LoanAmount"))
                                    Else
                                        txtLoanAmt.Text = LoanAmt
                                    End If
                                    Dim MortgageYrs As Double = 0
                                    If (FormValues.Item("MortgageYears") <> "") Then
                                        MortgageYrs = CDbl(FormValues.Item("MortgageYears"))
                                    Else
                                        txtMortgageYrs.Text = MortgageYrs
                                    End If
                                    Dim IntRate1 As Double = 0
                                    If (FormValues.Item("InterestRate1") <> "") Then
                                        IntRate1 = CDbl(FormValues.Item("InterestRate1"))
                                    Else
                                        txtIntRate1.Text = IntRate1
                                    End If
                                    Dim IntRate2 As Double = 0
                                    If (FormValues.Item("InterestRate2") <> "") Then
                                        IntRate2 = CDbl(FormValues.Item("InterestRate2"))
                                    Else
                                        txtIntRate2.Text = IntRate2
                                    End If
                                    Dim LoanTrm1 As Double = 1
                                    If (FormValues.Item("LoanTerm1") <> "") Then
                                        LoanTrm1 = CDbl(FormValues.Item("LoanTerm1"))
                                    Else
                                        txtLoanTrm1.Text = ""
                                    End If
                                    Dim LoanTrm2 As Double = 1
                                    If (FormValues.Item("LoanTerm2") <> "") Then
                                        LoanTrm2 = CDbl(FormValues.Item("LoanTerm2"))
                                    Else
                                        txtLoanTrm2.Text = ""
                                    End If
                                    Dim DiscountPnts1 As Double = 0
                                    If (FormValues.Item("DiscountPoints1") <> "") Then
                                        DiscountPnts1 = CDbl(FormValues.Item("DiscountPoints1"))
                                    Else
                                        txtDiscountPnts1.Text = DiscountPnts1
                                    End If
                                    Dim DiscountPnts2 As Double = 0
                                    If (FormValues.Item("DiscountPoints2") <> "") Then
                                        DiscountPnts2 = CDbl(FormValues.Item("DiscountPoints2"))
                                    Else
                                        txtDiscountPnts2.Text = DiscountPnts2
                                    End If
                                    Dim OriginFee1 As Double = 0
                                    If (FormValues.Item("OriginationFee1") <> "") Then
                                        OriginFee1 = CDbl(FormValues.Item("OriginationFee1"))
                                    Else
                                        txtOriginFee1.Text = OriginFee1
                                    End If
                                    Dim OriginFee2 As Double = 0
                                    If (FormValues.Item("OriginationFee2") <> "") Then
                                        OriginFee2 = CDbl(FormValues.Item("OriginationFee2"))
                                    Else
                                        txtOriginFee2.Text = OriginFee2
                                    End If
                                    Dim CCosts1 As Double = 0
                                    If (FormValues.Item("ClosingCosts1") <> "") Then
                                        CCosts1 = CDbl(FormValues.Item("ClosingCosts1"))
                                    Else
                                        txtCCosts1.Text = CCosts1
                                    End If
                                    Dim CCosts2 As Double = 0
                                    If (FormValues.Item("ClosingCosts2") <> "") Then
                                        CCosts2 = CDbl(FormValues.Item("ClosingCosts2"))
                                    Else
                                        txtCCosts2.Text = CCosts2
                                    End If
                                    Dim AdjRate1 As Integer = 1
                                    If (FormValues.Item("AdjustableRate1") <> "") Then
                                        AdjRate1 = CInt(FormValues.Item("AdjustableRate1"))
                                    Else
                                        txtAdjRate1.Text = AdjRate1
                                    End If
                                    Dim AdjRate2 As Integer = 1
                                    If (FormValues.Item("AdjustableRate2") <> "") Then
                                        AdjRate2 = CInt(FormValues.Item("AdjustableRate2"))
                                    Else
                                        txtAdjRate2.Text = AdjRate2
                                    End If
                                    Dim InitRateTerm1 As Integer = 0
                                    If (FormValues.Item("InitialRateTerm1") <> "") Then
                                        InitRateTerm1 = CDbl(FormValues.Item("InitialRateTerm1"))
                                    Else
                                        txtInitRateTerm1.Text = InitRateTerm1
                                    End If
                                    Dim InitRateTerm2 As Integer = 0
                                    If (FormValues.Item("InitialRateTerm2") <> "") Then
                                        InitRateTerm2 = CDbl(FormValues.Item("InitialRateTerm2"))
                                    Else
                                        txtInitRateTerm2.Text = InitRateTerm2
                                    End If
                                    Dim Indx1 As Double = 0
                                    If (FormValues.Item("Index1") <> "") Then
                                        Indx1 = CDbl(FormValues.Item("Index1"))
                                    Else
                                        txtIndx1.Text = Indx1
                                    End If
                                    Dim Indx2 As Double = 0
                                    If (FormValues.Item("Index2") <> "") Then
                                        Indx2 = CDbl(FormValues.Item("Index2"))
                                    Else
                                        txtIndx2.Text = Indx2
                                    End If
                                    Dim Marg1 As Double = 0
                                    If (FormValues.Item("Margin1") <> "") Then
                                        Marg1 = CDbl(FormValues.Item("Margin1"))
                                    Else
                                        txtMarg1.Text = Marg1
                                    End If
                                    Dim Marg2 As Double = 0
                                    If (FormValues.Item("Margin2") <> "") Then
                                        Marg2 = CDbl(FormValues.Item("Margin2"))
                                    Else
                                        txtMarg2.Text = Marg2
                                    End If
                                    Dim RateAdj1 As Double = 0
                                    If (FormValues.Item("RateAdjustment1") <> "") Then
                                        RateAdj1 = CDbl(FormValues.Item("RateAdjustment1"))
                                    Else
                                        txtRateAdj1.Text = RateAdj1
                                    End If
                                    Dim RateAdj2 As Double = 0
                                    If (FormValues.Item("RateAdjustment2") <> "") Then
                                        RateAdj2 = CDbl(FormValues.Item("RateAdjustment2"))
                                    Else
                                        txtRateAdj2.Text = RateAdj2
                                    End If
                                    Dim RateCeil1 As Double = 0
                                    If (FormValues.Item("RateCeiling1") <> "") Then
                                        RateCeil1 = CDbl(FormValues.Item("RateCeiling1"))
                                    Else
                                        txtRateCeil1.Text = RateCeil1
                                    End If
                                    Dim RateCeil2 As Double = 0
                                    If (FormValues.Item("RateCeiling2") <> "") Then
                                        RateCeil2 = CDbl(FormValues.Item("RateCeiling2"))
                                    Else
                                        txtRateCeil2.Text = RateCeil2
                                    End If
                                    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
                                    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
                                    IntRate1 = IntRate1 / 100
                                    IntRate2 = IntRate2 / 100
                                    Indx1 = Indx1 / 100
                                    Indx2 = Indx2 / 100
                                    Marg1 = Marg1 / 100
                                    Marg2 = Marg2 / 100
                                    RateAdj1 = RateAdj1 / 100
                                    RateAdj2 = RateAdj2 / 100
                                    RateCeil1 = RateCeil1 / 100
                                    RateCeil2 = RateCeil2 / 100
                                    Dim Results As String = ServiceConnector.WhichLoanIsBetter(LoanAmt, MortgageYrs, IntRate1, IntRate2, LoanTrm1, LoanTrm2, DiscountPnts1, _
                                        DiscountPnts2, OriginFee1, OriginFee2, CCosts1, CCosts2, AdjRate1, AdjRate2, InitRateTerm1, InitRateTerm2, Indx1, Indx2, _
                                        Marg1, Marg2, RateAdj1, RateAdj2, RateCeil1, RateCeil2)
                                    Dim ResultsArray As String() = Split(Results, ",")
                                    InitialMonthlyPayment1.Text = FormatCurrency(CDbl(ResultsArray(0)))
                                    InitialMonthlyPayment2.Text = FormatCurrency(CDbl(ResultsArray(1)))
                                    If (ResultsArray(2) = "") Then
                                        MaximumMonthlyPayment1.Text = ""
                                    Else
                                        MaximumMonthlyPayment1.Text = FormatCurrency(CDbl(ResultsArray(2)))
                                    End If
                                    If (ResultsArray(3) = "") Then
                                        MaximumMonthlyPayment2.Text = ""
                                    Else
                                        MaximumMonthlyPayment2.Text = FormatCurrency(CDbl(ResultsArray(3)))
                                    End If
                                    TotalUpfrontFees1.Text = FormatCurrency(CDbl(ResultsArray(4)))
                                    TotalUpfrontFees2.Text = FormatCurrency(CDbl(ResultsArray(5)))
                                    TotalCost1.Text = FormatCurrency(CDbl(ResultsArray(8)))
                                    TotalCost2.Text = FormatCurrency(CDbl(ResultsArray(9)))
                                    TotalSavings.Text = FormatCurrency(CDbl(ResultsArray(10)))
                                    If (CDbl(ResultsArray(8)) < CDbl(ResultsArray(9))) Then
                                        Lntype.Text = "Loan 1"
                                    Else
                                        Lntype.Text = "Loan 2"
                                    End If
                                    'Calculate X yrs
                                    Numyrs.Text = MortgageYrs
                                Else
                                    AdjustableRate1.Text = "1"
                                    InitialRateTerm1.Enabled = False
                                    Index1.Enabled = False
                                    Margin1.Enabled = False
                                    RateAdjustment1.Enabled = False
                                    RateCeiling1.Enabled = False
                                    AdjustableRate2.Text = "1"
                                    InitialRateTerm2.Enabled = False
                                    Index2.Enabled = False
                                    Margin2.Enabled = False
                                    RateAdjustment2.Enabled = False
                                    RateCeiling2.Enabled = False
                                End If
                            End Sub
                            Private Sub resetValue(ByVal id)
                                If id.text = "0" Then
                                    id.text = ""
                                End If
                            End Sub
                        </script><script language="javascript" type="text/javascript">
function showFields(obj)
{
    if (obj.id == "AdjustableRate1_0")
    {    
        document.getElementById('InitialRateTerm1').disabled = false;
        document.getElementById('Index1').disabled = false;
        document.getElementById('Margin1').disabled = false;
        document.getElementById('RateAdjustment1').disabled = false;
        document.getElementById('RateCeiling1').disabled = false;
    }
    if (obj.id == "AdjustableRate1_1")
    {
        document.getElementById('InitialRateTerm1').disabled = true;
        document.getElementById('Index1').disabled = true;
        document.getElementById('Margin1').disabled = true;
        document.getElementById('RateAdjustment1').disabled = true;
        document.getElementById('RateCeiling1').disabled = true;
    }
    if (obj.id == "AdjustableRate2_0")
    {    
        document.getElementById('InitialRateTerm2').disabled = false;
        document.getElementById('Index2').disabled = false;
        document.getElementById('Margin2').disabled = false;
        document.getElementById('RateAdjustment2').disabled = false;
        document.getElementById('RateCeiling2').disabled = false;
    }
    if (obj.id == "AdjustableRate2_1")
    {
        document.getElementById('InitialRateTerm2').disabled = true;
        document.getElementById('Index2').disabled = true;
        document.getElementById('Margin2').disabled = true;
        document.getElementById('RateAdjustment2').disabled = true;
        document.getElementById('RateCeiling2').disabled = true;
    }
}
                        </script><script language="Javascript" src="/common/smartTip.js"></script><script language="Javascript" src="/common/calc_library.js"></script>
<link href="/images/css/content-calculators-smartborrower.css" type="text/css" rel="stylesheet" />
<div class="smartTipWindow" id="_pageSmartTip" onclick="this.style.display='none';"></div>
<form id="Form1" action="" method="post" runat="server">
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator0" runat="server" controltovalidate="LoanAmount" errormessage="* You must enter a value into LoanAmount" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator0" runat="server" controltovalidate="LoanAmount" errormessage="* Invalid Entry LoanAmount" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter numeric values only.</p>
    </asp:regularexpressionvalidator><label for="loan_amount"><span class="required">*</span>Loan Amount:</label>
    <div class="help_tip"><img id="loanHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
					            try
					            { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
					            document.getElementById('loanHelp').smartTip="Enter the amount you plan to finance. For example, if you are buying a $200,000 home with a 20% down payment, your loan amount would be $160,000.";
					            document.getElementById('loanHelp').smartTipHeader="Loan Amount";
					            document.getElementById('loanHelp').onmousemove=showSmartTip;
					            document.getElementById('loanHelp').onmouseout=hideSmartTip;
					            document.getElementById('loanHelp').smartTipXOffset=-700;	
								document.getElementById('loanHelp').smartTipYOffset=-115;
					            }
					            catch(objException){}
                                    </script></div>
    <asp:textbox id="LoanAmount" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" runat="server" cssclass="textfield" width="100px"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="MortgageYears" errormessage="* You must enter a value into MortgageYears" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />This field is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" controltovalidate="MortgageYears" errormessage="* Invalid Entry MortgageYears" display="dynamic" validationexpression="\d{1,3}">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate"><span class="required">*</span>How many years do you plan to<br />
    keep this mortgage?</label>
    <div class="help_tip"><img id="MortgageYearsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('MortgageYearsHelp').smartTip="There are up-front costs associated with buying a home. The longer you are in the home, the more time you have to recoup these costs. By providing this information, the calculator can determine which loan allows you to recoup these costs more quickly.";
				                    document.getElementById('MortgageYearsHelp').smartTipHeader="Years in mortgage";
				                    document.getElementById('MortgageYearsHelp').onmousemove=showSmartTip;
				                    document.getElementById('MortgageYearsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('MortgageYearsHelp').smartTipXOffset=-700;	
								    document.getElementById('MortgageYearsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="MortgageYears" runat="server" cssclass="textfield" width="28px" maxlength="3"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg">
    <h4 class="header-right" style="BACKGROUND-COLOR: transparent"> </h4>
    <h4 class="header-left1" style="BACKGROUND-COLOR: transparent">Loan 1</h4>
    <h4 class="header-left2" style="BACKGROUND-COLOR: transparent">Loan 2</h4>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="InterestRate1" errormessage="* You must enter a value into InterestRate1" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />A value for Interest Rate under Loan 2 is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" controltovalidate="InterestRate1" errormessage="* Invalid Entry InterestRate1" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Interest Rate under Loan 1. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" controltovalidate="InterestRate2" errormessage="* You must enter a value into InterestRate2" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />A value for Interest Rate under Loan 2 is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server" controltovalidate="InterestRate2" errormessage="* Invalid Entry InterestRate2" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Interest Rate under Loan 2. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><label for="rate"><span class="required">*</span>Interest rate:</label>
    <div class="help_tip"><img id="interestHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('interestHelp').smartTip="Enter the interest rate that you will pay on each loan.";
				                    document.getElementById('interestHelp').smartTipHeader="Initial interest rate";
				                    document.getElementById('interestHelp').onmousemove=showSmartTip;
				                    document.getElementById('interestHelp').onmouseout=hideSmartTip;
				                    document.getElementById('interestHelp').smartTipXOffset=-700;	
								    document.getElementById('interestHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="InterestRate1" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7"></asp:textbox><span class="percent">%</span>     <asp:textbox id="InterestRate2" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7" size="6"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" controltovalidate="LoanTerm1" errormessage="* You must enter a value into LoanTerm1" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />A value for Loan Term under Loan 1 is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator4" runat="server" controltovalidate="LoanTerm1" errormessage="* Invalid Entry LoanTerm1" display="dynamic" validationexpression="\d{1,3}">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Loan Term under Loan 1. Please enter a number.</p>
    </asp:regularexpressionvalidator><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" controltovalidate="LoanTerm2" errormessage="* You must enter a value into LoanTerm2" display="dynamic">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />A value for Loan Term under Loan 2 is required.</p>
    </asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator5" runat="server" controltovalidate="LoanTerm2" errormessage="* Invalid Entry LoanTerm2" display="dynamic" validationexpression="\d{1,3}">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Loan Term under Loan 2. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate"><span class="required">*</span>Term of loan (in years):</label>
    <div class="help_tip"><img id="LoanTermHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('LoanTermHelp').smartTip="Enter the term you desire for each loan.";
				                    document.getElementById('LoanTermHelp').smartTipHeader="Term";
				                    document.getElementById('LoanTermHelp').onmousemove=showSmartTip;
				                    document.getElementById('LoanTermHelp').onmouseout=hideSmartTip;
				                    document.getElementById('LoanTermHelp').smartTipXOffset=-700;	
								    document.getElementById('LoanTermHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="LoanTerm1" runat="server" cssclass="textfield" width="28px" maxlength="3"></asp:textbox>          <asp:textbox id="LoanTerm2" runat="server" cssclass="textfield" width="28px" maxlength="3" size="6"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator6" runat="server" controltovalidate="DiscountPoints1" errormessage="* Invalid Entry DiscountPoints1" display="dynamic" validationexpression="\d*.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Discount Points under Loan 1. Please enter a number.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator7" runat="server" controltovalidate="DiscountPoints2" errormessage="* Invalid Entry DiscountPoints2" display="dynamic" validationexpression="\d*.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Discount Points under Loan 2. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate">Discount points:</label>
    <div class="help_tip"><img id="DiscountPointsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('DiscountPointsHelp').smartTip="Discount points are paid upfront to obtain a lower interest rate. Typically, one point equals 1% of the loan amount and will lower your interest rate by .25 percent.";
				                    document.getElementById('DiscountPointsHelp').smartTipHeader="Discount points";
				                    document.getElementById('DiscountPointsHelp').onmousemove=showSmartTip;
				                    document.getElementById('DiscountPointsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('DiscountPointsHelp').smartTipXOffset=-700;	
								    document.getElementById('DiscountPointsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="DiscountPoints1" runat="server" cssclass="textfield" width="78px"></asp:textbox><asp:textbox id="DiscountPoints2" runat="server" cssclass="textfield" width="78px"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator8" runat="server" controltovalidate="OriginationFee1" errormessage="* Invalid Entry OriginationFee1" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Origination Fee under Loan 1. Please enter a number.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator9" runat="server" controltovalidate="OriginationFee2" errormessage="* Invalid Entry OriginationFee2" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Origination Fee under Loan 2. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate">Origination fees:</label>
    <div class="help_tip"><img id="OriginationFeeHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('OriginationFeeHelp').smartTip="A fee commonly charged by a lender for processing a loan application. The origination fee may be presented in the form of points or a dollar amount. Each point is equal to 1% of the loan amount (e.g. two points on a $100,000 mortgage would cost $2,000).";
				                    document.getElementById('OriginationFeeHelp').smartTipHeader="Origination fee";
				                    document.getElementById('OriginationFeeHelp').onmousemove=showSmartTip;
				                    document.getElementById('OriginationFeeHelp').onmouseout=hideSmartTip;
				                    document.getElementById('OriginationFeeHelp').smartTipXOffset=-700;	
								    document.getElementById('OriginationFeeHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="OriginationFee1" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" runat="server" cssclass="textfield" width="78px"></asp:textbox><asp:textbox id="OriginationFee2" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" runat="server" cssclass="textfield" width="78px"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator10" runat="server" controltovalidate="ClosingCosts1" errormessage="* Invalid Entry ClosingCosts1" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Origination Fee under Loan 1. Please enter a number.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator11" runat="server" controltovalidate="ClosingCosts2" errormessage="* Invalid Entry ClosingCosts2" display="dynamic" validationexpression="\$?\d*[,\d]*\.?\d+">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Origination Fee under Loan 2. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate">Closing costs:</label>
    <div class="help_tip"><img id="ClosingCostsHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('ClosingCostsHelp').smartTip="Closing costs include appraisal fee, title search and insurance, survey, taxes, deed recording fee, credit report charge, and other costs assessed at settlement. The closing costs usually are about 2% to 6% of the mortgage amount.";
				                    document.getElementById('ClosingCostsHelp').smartTipHeader="Closing costs on new mortgage";
				                    document.getElementById('ClosingCostsHelp').onmousemove=showSmartTip;
				                    document.getElementById('ClosingCostsHelp').onmouseout=hideSmartTip;
				                    document.getElementById('ClosingCostsHelp').smartTipXOffset=-700;	
								    document.getElementById('ClosingCostsHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                    </script></div>
    <asp:textbox id="ClosingCosts1" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" runat="server" cssclass="textfield" width="78px"></asp:textbox><asp:textbox id="ClosingCosts2" onblur="this.value=formatCurrency(this.value);" onkeyup="this.value=addCommasNoSpecialCharacters(this)" runat="server" cssclass="textfield" width="78px"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div id="LoanDisplay" style="DISPLAY: block">
    <div class="field_no_bg">
    <h4 class="header-right" style="BACKGROUND-COLOR: transparent">ARM Loan Adjustments </h4>
    <h4 class="header-left1" style="BACKGROUND-COLOR: transparent">Loan 1 </h4>
    <h4 class="header-left2" style="BACKGROUND-COLOR: transparent">Loan 2</h4>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><label for="insurance">Is this an adjustable-rate mortgage?</label>
    <div class="help_tip"><img id="AdjustableRateHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('AdjustableRateHelp').smartTip="Select if one of the loans you are comparing is an adjustable rate mortgage.";
				                    document.getElementById('AdjustableRateHelp').smartTipHeader="Is this an ARM?";
				                    document.getElementById('AdjustableRateHelp').onmousemove=showSmartTip;
				                    document.getElementById('AdjustableRateHelp').onmouseout=hideSmartTip;
				                    document.getElementById('AdjustableRateHelp').smartTipXOffset=-700;	
								    document.getElementById('AdjustableRateHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    </div>
    <div id="loan1-radio-initial"><asp:radiobuttonlist id="AdjustableRate1" runat="server" enableviewstate="true" repeatdirection="Horizontal" value="0"><asp:listitem class="radio-text" onclick="showFields(this);" value="0" text="Yes"></asp:listitem><asp:listitem class="radio-text" onclick="showFields(this);" value="1" text="No"></asp:listitem></asp:radiobuttonlist></div>
    <div id="loan2-radio-initial"><asp:radiobuttonlist id="AdjustableRate2" runat="server" enableviewstate="true" repeatdirection="Horizontal" value="0"><asp:listitem class="radio-text" onclick="showFields(this);" value="0" text="Yes"></asp:listitem><asp:listitem class="radio-text" onclick="showFields(this);" value="1" text="No"></asp:listitem></asp:radiobuttonlist></div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator12" runat="server" controltovalidate="InitialRateTerm1" errormessage="* Invalid Entry InitialRateTerm1" display="dynamic" validationexpression="\d{1,3}">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Loan Term under Loan 1. Please enter a number.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator13" runat="server" controltovalidate="InitialRateTerm2" errormessage="* Invalid Entry InitialRateTerm2" display="dynamic" validationexpression="\d{1,3}">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Loan Term under Loan 2. Please enter a number.</p>
    </asp:regularexpressionvalidator><label for="rate">Length of initial rate term (in months):</label>
    <div class="help_tip"><img id="InitialRateTermHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('InitialRateTermHelp').smartTip="The number of months until your first rate adjustment. For example, on a 5/1 hybrid ARM with a 30-year amortization period, your first rate adjustment will take place after five years (or 60 months). You would therefore choose \"60.\"";
				                        document.getElementById('InitialRateTermHelp').smartTipHeader="Length of initial rate term";
				                        document.getElementById('InitialRateTermHelp').onmousemove=showSmartTip;
				                        document.getElementById('InitialRateTermHelp').onmouseout=hideSmartTip;
				                        document.getElementById('InitialRateTermHelp').smartTipXOffset=-700;	
								        document.getElementById('InitialRateTermHelp').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <asp:textbox id="InitialRateTerm1" runat="server" cssclass="textfield" width="28px" maxlength="3"></asp:textbox>          <asp:textbox id="InitialRateTerm2" runat="server" cssclass="textfield" width="28px" maxlength="3" size="6"></asp:textbox>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator14" runat="server" controltovalidate="Index1" errormessage="* Invalid Entry Index1" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Index under Loan 1. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator15" runat="server" controltovalidate="Index2" errormessage="* Invalid Entry Index2" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Index under Loan 2. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><label for="">Index:</label>
    <div class="help_tip"><img id="IndexHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('IndexHelp').smartTip="An interest rate based on the returns of investments such as U.S. Treasury securities. To determine rates for adjustable rate mortgages, lenders start with a particular index rate and then add a margin to get the final rate. As the index changes, so does the rate on your ARM. If you don't know your index, ask your lender.";
				                        document.getElementById('IndexHelp').smartTipHeader="Index";
				                        document.getElementById('IndexHelp').onmousemove=showSmartTip;
				                        document.getElementById('IndexHelp').onmouseout=hideSmartTip;
				                        document.getElementById('IndexHelp').smartTipXOffset=-700;	
								        document.getElementById('IndexHelp').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <asp:textbox id="Index1" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7"></asp:textbox><span class="percent">%</span>     <asp:textbox id="Index2" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7" size="6"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator16" runat="server" controltovalidate="Margin1" errormessage="* Invalid Entry Margin1" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Margin under Loan 1. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator17" runat="server" controltovalidate="Margin2" errormessage="* Invalid Entry Index2" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Margin under Loan 2. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><label for="">Margin:</label>
    <div class="help_tip"><img id="MarginHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('MarginHelp').smartTip="The amount a lender adds to an index rate to establish the interest rate on an adjustable rate mortgage. The index and the margin added together will equal the rate you pay. You can find average margins on www.freddiemac.com, or you can ask your lender what your margin is.";
				                        document.getElementById('MarginHelp').smartTipHeader="Margin";
				                        document.getElementById('MarginHelp').onmousemove=showSmartTip;
				                        document.getElementById('MarginHelp').onmouseout=hideSmartTip;
				                        document.getElementById('MarginHelp').smartTipXOffset=-700;	
								        document.getElementById('MarginHelp').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <asp:textbox id="Margin1" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7"></asp:textbox><span class="percent">%</span>     <asp:textbox id="Margin2" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7" size="6"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field"><asp:regularexpressionvalidator id="RegularExpressionValidator18" runat="server" controltovalidate="RateAdjustment1" errormessage="* Invalid Entry Margin1" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Rate Adjustment under Loan 1. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator19" runat="server" controltovalidate="RateAdjustment2" errormessage="* Invalid Entry Index2" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Rate Adjustment under Loan 2. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><label for="">Expected amount of index adjustment:</label>
    <div class="help_tip"><img id="RateAdjustmentHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('RateAdjustmentHelp').smartTip="Estimate how much you think your interest rate will increase or decrease at your first adjustment period. Make sure you use a negative sign in front of the value for a decrease in the rate. For example, if you think after your initial period that interest rates will fall .5 percent, enter \"-.5.\"";
				                        document.getElementById('RateAdjustmentHelp').smartTipHeader="Expected amount of rate adjustment";
				                        document.getElementById('RateAdjustmentHelp').onmousemove=showSmartTip;
				                        document.getElementById('RateAdjustmentHelp').onmouseout=hideSmartTip;
				                        document.getElementById('RateAdjustmentHelp').smartTipXOffset=-700;	
								        document.getElementById('RateAdjustmentHelp').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <asp:textbox id="RateAdjustment1" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7"></asp:textbox><span class="percent">%</span>     <asp:textbox id="RateAdjustment2" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7" size="6"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    <div class="field_no_bg"><asp:regularexpressionvalidator id="RegularExpressionValidator20" runat="server" controltovalidate="RateCeiling1" errormessage="* Invalid Entry Margin1" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Lifetime cap under Loan 1. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator21" runat="server" controltovalidate="RateCeiling2" errormessage="* Invalid Entry Index2" display="dynamic" validationexpression="\d{1,3}(\.\d{1,6})?">
    <p class="required_message"><img alt="" src="/images/cms/error_icon.gif" />Invalid entry entered for Lifetime Cap under Loan 2. Please enter a number with no more than 3 decimal places.</p>
    </asp:regularexpressionvalidator><label for="">Lifetime interest rate cap:</label>
    <div class="help_tip"><img id="RateCeilingHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                        try
				                        { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                        document.getElementById('RateCeilingHelp').smartTip="This is the highest interest rate possible under an adjustable rate mortgage. Also called an \"interest rate ceiling,\" it's calculated by adding the number of percentage points your rate can increase to your initial interest rate. Input the sum of these values here.";
				                        document.getElementById('RateCeilingHelp').smartTipHeader="Lifetime cap";
				                        document.getElementById('RateCeilingHelp').onmousemove=showSmartTip;
				                        document.getElementById('RateCeilingHelp').onmouseout=hideSmartTip;
				                        document.getElementById('RateCeilingHelp').smartTipXOffset=-700;	
								        document.getElementById('RateCeilingHelp').smartTipYOffset=-115;
				                        }
				                        catch(objException){}
                                        </script></div>
    <asp:textbox id="RateCeiling1" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7"></asp:textbox><span class="percent">%</span>     <asp:textbox id="RateCeiling2" onblur="this.value=formatPercentageDecimal(this)" runat="server" cssclass="textfield" width="55px" maxlength="7" size="6"></asp:textbox><span class="percent">%</span>
    <div class="clear-field"> </div>
    </div>
    </div>
    <%If Not IsPostBack Then%>
    <div class="field_no_bg"><label> </label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit1').click();"><img class="calc_button" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" alt="" src="/images/cms/btn_calculate.gif" /></a> <input id="Submit1" style="DISPLAY: none" type="submit" runat="server" name="Submit" value="Calculate" />
    <div class="clear-field"> </div>
    </div>
    <%Else%><!----------results---------->
    <div id="results">
    <div class="results_title">Results</div>
    <div class="field_no_bg">
    <h4 class="header-right" style="BACKGROUND-COLOR: transparent"> </h4>
    <h4 class="header-left1" style="BACKGROUND-COLOR: transparent">Loan 1</h4>
    <h4 class="header-left2" style="BACKGROUND-COLOR: transparent">Loan 2</h4>
    <!--<div class="clear-field"> </div>--></div>
    <div class="field_results"><label for="adjustment">Your monthly payment:</label>
    <div class="help_tip"><img id="InitialMonthlyPaymentHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('InitialMonthlyPaymentHelp').smartTip="This is the amount you would owe each month for each loan. This amount does not include insurance and taxes.";
				                    document.getElementById('InitialMonthlyPaymentHelp').smartTipHeader="Your monthly payment";
				                    document.getElementById('InitialMonthlyPaymentHelp').onmousemove=showSmartTip;
				                    document.getElementById('InitialMonthlyPaymentHelp').onmouseout=hideSmartTip;
				                    document.getElementById('InitialMonthlyPaymentHelp').smartTipXOffset=-700;	
								    document.getElementById('InitialMonthlyPaymentHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results_small"><asp:label id="InitialMonthlyPayment1" runat="server"></asp:label><asp:label id="InitialMonthlyPayment2" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <%If ((AdjustableRate1.Text = "0") Or (AdjustableRate2.Text = "0")) Then%>
    <div class="field_no_bg_results"><label for="adjustment">Maximum monthly payment:</label>
    <div class="help_tip"><img id="MaximumMonthlyPaymentHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('MaximumMonthlyPaymentHelp').smartTip="This is the highest monthly payment that you could owe. The amount is based on the adjustable rate mortgage information you provided.";
				                    document.getElementById('MaximumMonthlyPaymentHelp').smartTipHeader="Maximun monthly payment";
				                    document.getElementById('MaximumMonthlyPaymentHelp').onmousemove=showSmartTip;
				                    document.getElementById('MaximumMonthlyPaymentHelp').onmouseout=hideSmartTip;
				                    document.getElementById('MaximumMonthlyPaymentHelp').smartTipXOffset=-700;	
								    document.getElementById('MaximumMonthlyPaymentHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results_small"><asp:label id="MaximumMonthlyPayment1" runat="server"></asp:label><%If MaximumMonthlyPayment1.Text = "" Then%>                   <%end if %><asp:label id="MaximumMonthlyPayment2" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <%Else%>
    <div style="BORDER-TOP: #ebecea 1px solid"></div>
    <%End If%>
    <div class="field_results"><label for="adjustment">Your total upfront fees:</label>
    <div class="help_tip"><img id="TotalUpfrontFeesHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('TotalUpfrontFeesHelp').smartTip="This is the amount you would owe at closing for each loan.";
				                    document.getElementById('TotalUpfrontFeesHelp').smartTipHeader="Your total upfront fees";
				                    document.getElementById('TotalUpfrontFeesHelp').onmousemove=showSmartTip;
				                    document.getElementById('TotalUpfrontFeesHelp').onmouseout=hideSmartTip;
				                    document.getElementById('TotalUpfrontFeesHelp').smartTipXOffset=-700;	
								    document.getElementById('TotalUpfrontFeesHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results_small"><asp:label id="TotalUpfrontFees1" runat="server"></asp:label><asp:label id="TotalUpfrontFees2" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg_results"><label for="adjustment">Total cost for <asp:label id="Numyrs" runat="server">x</asp:label> years:</label>
    <div class="help_tip"><img id="TotalCostHelp" alt="" src="/images/cms/help_tip.gif" /> <script language="javascript" type="text/javascript">
				                    try
				                    { //THIS WAS DONE TO SUPPORT FIREFOX, IF INLINE ATTRIBUE
				                    document.getElementById('TotalCostHelp').smartTip="This is the total amount you pay for each loan, based on how long you plan to stay in the home.";
				                    document.getElementById('TotalCostHelp').smartTipHeader="Total cost";
				                    document.getElementById('TotalCostHelp').onmousemove=showSmartTip;
				                    document.getElementById('TotalCostHelp').onmouseout=hideSmartTip;
				                    document.getElementById('TotalCostHelp').smartTipXOffset=-700;	
								    document.getElementById('TotalCostHelp').smartTipYOffset=-115;
				                    }
				                    catch(objException){}
                                        </script></div>
    <div class="textfield_results_small"><asp:label id="TotalCost1" runat="server"></asp:label><asp:label id="TotalCost2" runat="server"></asp:label></div>
    <div class="clear-field-results"> </div>
    </div>
    <div>
    <div style="FONT-WEIGHT: bold"><center>You would save <asp:label id="TotalSavings" runat="server"></asp:label> with <asp:label id="Lntype" runat="server"></asp:label></center></div>
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label><a href="https://secure.lendingtree.com/mortgage/ctl_borrower.asp?page=loan_selection&verb=continue&O_loan_type=LOAN_TYPE_MORTGAGE&init=1"><img class="complete_request" alt="" src="/images/cms/btn_complete_request.gif" /></a></label>
    <div class="help_tip"> </div>
    <a href="javascript:document.getElementById('Submit2').click();"><img class="recalc_button" alt="" src="/images/cms/btn_recalculate.gif" /></a> <input id="Submit2" style="DISPLAY: none" type="submit" runat="server" name="Submit2" value="Recalculate" />
    <div class="clear-field-results"> </div>
    </div>
    <div class="field_no_bg"><label class="results_text" for="">Or call <strong>1-800-555-TREE</strong> to speak with a loan specialist.</label>
    <div class="help_tip"> </div>
    <div class="textfield_results"> </div>
    <div class="clear-field"> </div>
    </div>
    </div>
    <!-- end results -->
    <p><a class="tan_link" href="/Publications/Publications.asp">Sign up for our Email Newsletter.</a></p>
    <p><%End If%></p>
    <p> </p>
    <p class="disclosure">Monthly payment amount is principal and interest only. It does not include taxes, homeowners insurance, or private mortgage insurance. If you are comparing an adjustable rate mortgage, this calculator allows you to estimate the change in your monthly payment for your first adjustment period only, as it can be difficult to accurately predict interest rates further out. </p>
    <p class="disclosure">LendingTree calculators are for informational purposes only. LendingTree does not guarantee the accuracy of the calculators, or that you will receive the input rates. Consult a financial advisor for details specific to your situation.</p>
    <!-- end brown box -->
</form>
]]>
				</content:encoded>
			</item>
	</channel>
</rss>
