/*Phone number*/
function phone_number()
{
   document.write('(507) 254-4765');
}

/*email tag */

function email_tag()
{

   document.write('<A HREF="mailto:lynette@lynettebates.com">Lynette@LynetteBates.com</A>');

}

function copy_r( agency )
{

   document.write('Listing courtesy of a participating member Southeast Minnesota Association of REALTORS. ');
   document.write('<P>This property is provided through of the Southeast ');
   document.write('Minnesota Association of REALTORS, ');
   document.write('Inc. Multiple Listing Services, Broker Reciprocity database ' );
   document.write('courtesy of <B>' + agency + '</B> Property information is deemed reliable but not ');
   document.write('guaranteed. Although listing data is updated regularly, data may not be ');
   document.write('current. Any use of search facilities of data ' );
   document.write('on this site, other than by a consumer looking to purchase real estate, ');
   document.write('is prohibited. The site is for personal, not commercial, use only. &copy;2008 Southeast Minnesota Association of REALTORS. ' );
   document.write('All rights reserved.');
}


function calc_b( value, down, tax )
{

   document.write('<table cellpadding=3 border=2 width=175>');
   document.write('<tr><td colspan=2><center><font size=1 face=gillsans,helvetica,arial>');
   document.write('<b>Estimate Your Mortgage</b>');
   document.write('</td></tr>');
   document.write('<tr><td align=right bgcolor=#8376FF><b><font size=1 face=gillsans,helvetica,arial color=ffffff>House Price</td>');
   document.write('<td bgcolor=#3366FF align=right><font size=1 face=gillsans,helvetica,arial color=ffffff><b>$ <input type=text name=loan value="' + value +'" size=7></td></tr>');
   document.write('<tr><td align=right bgcolor=#8376FF><b><font size=1 face=gillsans,helvetica,arial color=ffffff>Down Payment</td>');
   document.write('<td bgcolor=#3366FF align=right><font size=1 face=gillsans,helvetica,arial color=ffffff><b>$ <input type=text name=down value="' + down + '" size=7></td></tr>');
   document.write('<tr><td align=right bgcolor=#8376FF><b><font size=1 face=gillsans,helvetica,arial color=ffffff>Interest Rate</td>');
   document.write('<td bgcolor=#3366FF align=right><font size=1 face=gillsans,helvetica,arial color=ffffff><input type=text name=interest value="6" size=7></td></tr>');
   document.write('<tr><td align=right bgcolor=#8376FF color=ffffff><b><font size=1 face=gillsans,helvetica,arial color=ffffff>Term (years)</td>');
   document.write('<td bgcolor=#3366FF align=right><font size=1 face=gillsans,helvetica,arial color=ffffff><input type=text name=term value="30" size=7></td></tr>');
   document.write('<tr><td align=right bgcolor=#8376FF color=ffffff><b><font size=1 face=gillsans,helvetica,arial color=ffffff>Property Taxes</td>');
   document.write('<td bgcolor=#3366FF align=right><font size=1 face=gillsans,helvetica,arial color=ffffff><input type=text name=taxes value="' + tax + '" size=7></td></tr>');
   document.write('<tr><td colspan=2><center><hr>');
   document.write('<INPUT type="button" value="Calculate" onClick="calculateLoan(this.form)">');
   document.write('<hr>');
   document.write('</td></tr>');
   document.write('<tr><td align=right bgcolor=#FFEB83><font size=1 face=gillsans,helvetica,arial color=000000><b>Monthly Payment</b></td>');
   document.write('<td bgcolor=FFEB83 align=right><font size=1 face=gillsans,helvetica,arial color=000000>$ <input type=text name=total value="" size=7></td></tr>');
   document.write('<tr><td align=right bgcolor=#FFEB83><font size=1 face=gillsans,helvetica,arial color=00000><c>');
   document.write('Necessary Income</b></td>');
   document.write('<td align=right bgcolor=#FFEB83><font size=1 face=gillsans,helvetica,arial color="000000">$ <input type=text name=income value="" size=7></td></tr>');
   document.write('<tr><td colspan=2><font size=1 face=gillsans,helvetica,arial color="#006699">');
   document.write('The results are only an estimate and different mortgage companies may have different calculations and terms.<br><br>');
   document.write('</td></tr>');
}
