<!-- UNAUTHORIZED COPYING OF THIS DOCUMENT, AND/OR COPYRIGHT INFRINGEMENT IS PROHIBITED BY LAW. WE WILL VIGOROUSLY PROSECUTE THE OFFENDERS.-->
var ct = new Object;function recalc_onclick(ctl) {if  (document.privatemoney.easycalc.checked || ctl==''){ct.t_sq_ft=eeparseFloatTh(document.privatemoney.t_sq_ft.value);ct.fair_val=eeparseFloatTh(document.privatemoney.fair_val.value);ct.ex_first=eeparseFloatTh(document.privatemoney.ex_first.value);ct.down_pay=eeparseFloatTh(document.privatemoney.down_pay.value);ct.credit_rate=eeparseFloatTh(document.privatemoney.credit_rate.value);ct.amort_per=eeparseFloatTh(document.privatemoney.amort_per.value);ct.pay_off=eeparseFloatTh(document.privatemoney.pay_off.value);ct.base_ltv=eeparseFloatTh(document.privatemoney.base_ltv.value);ct.ltv_multi=eeparseFloatTh(document.privatemoney.ltv_multi.value);ct.second_mult=eeparseFloatTh(document.privatemoney.second_mult.value);ct.ln_point=eeparsePercent(document.privatemoney.ln_point.value);ct.misc_fee=eeparseFloatTh(document.privatemoney.misc_fee.value);ct.prop_survey=eeparseFloatTh(document.privatemoney.prop_survey.value);ct.ap_praisal=eeparseFloatTh(document.privatemoney.ap_praisal.value);ct.int_base=eeparsePercent(document.privatemoney.int_base.value);ct.int_mult=eeparseFloat(document.privatemoney.int_mult.value);ct.down_mult=eeparseFloat(document.privatemoney.down_mult.value);calc(ct);document.privatemoney.fair_val_min.value=eedisplayFloatNDTh(ct.fair_val_min,0);document.privatemoney.invprincipal_min.value=eedisplayFloatNDTh(ct.invprincipal_min,0);document.privatemoney.invprincipal.value=eedisplayFloatNDTh(ct.invprincipal,0);document.privatemoney.dp_per_cent_min.value=eedisplayPercentND(ct.dp_per_cent_min,0);document.privatemoney.dp_per_cent.value=eedisplayPercentND(ct.dp_per_cent,0);document.privatemoney.dp_percent_min.value=eedisplayPercentND(ct.dp_percent_min,0);document.privatemoney.dp_percent.value=eedisplayPercentND(ct.dp_percent,0);document.privatemoney.down_pay_min.value=eedisplayFloatNDTh(ct.down_pay_min,0);document.privatemoney.p_sq_ft_min.value=eedisplayFloatNDTh(ct.p_sq_ft_min,2);document.privatemoney.p_sq_ft.value=eedisplayFloatNDTh(ct.p_sq_ft,2);document.privatemoney.inv_cost_min.value=eedisplayFloatNDTh(ct.inv_cost_min,0);document.privatemoney.inv_cost.value=eedisplayFloatNDTh(ct.inv_cost,0);document.privatemoney.annual_pymt_min.value=eedisplayFloatNDTh(ct.annual_pymt_min,0);document.privatemoney.annual_pymt.value=eedisplayFloatNDTh(ct.annual_pymt,0);document.privatemoney.new_mtg_amt_min.value=eedisplayFloatNDTh(ct.new_mtg_amt_min,0);document.privatemoney.new_mtg_amt.value=eedisplayFloatNDTh(ct.new_mtg_amt,0);document.privatemoney.ln_point_amt.value=eedisplayFloatNDTh(ct.ln_point_amt,0);document.privatemoney.title_fees.value=eedisplayFloatNDTh(ct.title_fees,0);document.privatemoney.record_fees.value=eedisplayFloatNDTh(ct.record_fees,0);document.privatemoney.mtg_charges.value=eedisplayFloatNDTh(ct.mtg_charges,0);document.privatemoney.bor_net_min.value=eedisplayFloatNDTh(ct.bor_net_min,0);document.privatemoney.bor_net.value=eedisplayFloatNDTh(ct.bor_net,0);document.privatemoney.act_int_rate.value=eedisplayPercentND(ct.act_int_rate,2);document.privatemoney.mon_payments.value=eedisplayFloatNDTh(ct.mon_payments,2);document.privatemoney.mon_payments_min.value=eedisplayFloatNDTh(ct.mon_payments_min,2);document.privatemoney.bal_amt_min.value=eedisplayFloatNDTh(ct.bal_amt_min,0);document.privatemoney.bal_amt.value=eedisplayFloatNDTh(ct.bal_amt,0);document.privatemoney.amt_financed_min.value=eedisplayFloatNDTh(ct.amt_financed_min,0);document.privatemoney.amt_financed.value=eedisplayFloatNDTh(ct.amt_financed,0);document.privatemoney.tot_payments_min.value=eedisplayFloatNDTh(ct.tot_payments_min,0);document.privatemoney.tot_payments.value=eedisplayFloatNDTh(ct.tot_payments,0);document.privatemoney.fin_charge.value=eedisplayFloatNDTh(ct.fin_charge,0);document.privatemoney.fin_charge_min.value=eedisplayFloatNDTh(ct.fin_charge_min,0);document.privatemoney.apr_rate.value=eedisplayPercentND(ct.apr_rate,2);};};var eeisus=1;var eetrue="TRUE";var eefalse="FALSE";var eedec=".";var eeth=",";var eedecreg=new RegExp("[.]","g");var eethreg=new RegExp(",","g");var fee_var=new Array(6);for(var ii=0;ii<6;ii++){fee_var[ii]=new Array(1);for(var ttt=0;ttt<1;ttt++){fee_var[ii][ttt]=0}};var gen=new Array(new Array(fee_var,0,0,5,0));function calc(data){var t_sq_ft_var=data.t_sq_ft;var fair_val_var=data.fair_val;var ex_first_var=data.ex_first;var down_pay_var=data.down_pay;var credit_rate_var=data.credit_rate;var amort_per_var=data.amort_per;var pay_off_var=data.pay_off;var base_ltv_var=data.base_ltv;var ltv_multi_var=data.ltv_multi;var second_mult_var=data.second_mult;var ln_point_var=data.ln_point;fee_var[3][0]=data.misc_fee;fee_var[4][0]=data.prop_survey;fee_var[5][0]=data.ap_praisal;var int_base_var=data.int_base;var int_mult_var=data.int_mult;var down_mult_var=data.down_mult;var fair_val_min=(((fair_val_var)-(5000)));var dp_per_cent_var=(((down_pay_var)/(fair_val_var)));var dp_percent_var=(((((down_pay_var)/(fair_val_var)))*(100)));var down_pay_min=(down_pay_var)>(0)?(down_pay_var)/(2):(down_pay_var);var dp_per_cent_min=(((down_pay_min)/(fair_val_var)));var dp_percent_min=(((((down_pay_min)/(fair_val_var)))*(100)));var new_mtg_amt_var=(((((((((fair_val_var)*(((((base_ltv_var)+(dp_percent_var)))+(((credit_rate_var)*(ltv_multi_var)))))))/(100)))-(((ex_first_var)*(second_mult_var)))))-(down_pay_var)));var new_mtg_amt_min=(((((((((fair_val_min)*(((((base_ltv_var)+(dp_percent_var)))+(((credit_rate_var)*(ltv_multi_var)))))))/(100)))-(((ex_first_var)*(second_mult_var)))))-(down_pay_var)));fee_var[0][0]=(((new_mtg_amt_var)*(ln_point_var)));var act_int_rate_var=(((((ex_first_var)>(0)))?(((((((int_base_var)-(((((credit_rate_var)/(int_mult_var)))/(100)))))-(((((dp_percent_var)/(down_mult_var)))/(400)))))*(second_mult_var))):(((((int_base_var)-(((((credit_rate_var)/(int_mult_var)))/(100)))))-(((((dp_percent_var)/(down_mult_var)))/(200)))))));var mon_payments_var=(pmt((((act_int_rate_var)/(12))),(amort_per_var),(new_mtg_amt_var),(0),(0)));var mon_payments_min=(pmt((((act_int_rate_var)/(12))),(amort_per_var),(new_mtg_amt_min),(0),(0)));var bal_amt_var=(((fv((((act_int_rate_var)/(12))),(pay_off_var),(mon_payments_var),(new_mtg_amt_var),(0)))*(-1)));var bal_amt_min=(((fv((((act_int_rate_var)/(12))),(pay_off_var),(mon_payments_min),(new_mtg_amt_min),(0)))*(-1)));var amt_financed_var=(((((new_mtg_amt_var)-(fee_var[0][0])))-(fee_var[3][0])));var amt_financed_min=(((((new_mtg_amt_min)-(fee_var[0][0])))-(fee_var[3][0])));var tot_payments_var=(((((((mon_payments_var)*(-1)))*(pay_off_var)))+(bal_amt_var)));var tot_payments_min=(((((((mon_payments_min)*(-1)))*(pay_off_var)))+(bal_amt_min)));var annual_pymt_var=(((mon_payments_var)*(12)));var annual_pymt_min=(((mon_payments_min)*(12)));var apr_rate_var=(((rate((pay_off_var),(mon_payments_var),(amt_financed_var),(((bal_amt_var)*(-1))),(0),(0.1)))*(12)));fee_var[1][0]=(((new_mtg_amt_var)*(0.02)));fee_var[2][0]=(((new_mtg_amt_var)*(0.008)));var mtg_charges_var=(sumgeneral(6,0,0,gen));var bor_net_var=(((new_mtg_amt_var)-(mtg_charges_var)));var bor_net_min=(((new_mtg_amt_min)-(mtg_charges_var)));var fin_charge_var=(((tot_payments_var)-(amt_financed_var)));var fin_charge_min=(((tot_payments_min)-(amt_financed_min)));var inv_cost_var=(fair_val_var)+(mtg_charges_var)+(down_pay_var);var inv_cost_min=(fair_val_min)+(mtg_charges_var)+(down_pay_var);var p_sq_ft_var=(((inv_cost_var)/(t_sq_ft_var)));var p_sq_ft_min=(((inv_cost_min)/(t_sq_ft_var)));var invprincipal_var=(((down_pay_var)+(mtg_charges_var)));var invprincipal_min=(((down_pay_min)+(mtg_charges_var)));data.fair_val_min=fair_val_min;data.invprincipal_min=invprincipal_min;data.invprincipal=invprincipal_var;data.down_pay_min=down_pay_min;data.dp_per_cent=dp_per_cent_var;data.dp_per_cent_min=dp_per_cent_min;data.dp_percent=dp_percent_var;data.dp_percent_min=dp_percent_min;data.p_sq_ft=p_sq_ft_var;data.p_sq_ft_min=p_sq_ft_min;data.inv_cost_min=inv_cost_min;data.inv_cost=inv_cost_var;data.annual_pymt_min=annual_pymt_min;data.annual_pymt=annual_pymt_var;data.new_mtg_amt_min=new_mtg_amt_min;data.new_mtg_amt=new_mtg_amt_var;data.ln_point_amt=fee_var[0][0];data.title_fees=fee_var[1][0];data.record_fees=fee_var[2][0];data.mtg_charges=mtg_charges_var;data.bor_net_min=bor_net_min;data.bor_net=bor_net_var;data.act_int_rate=act_int_rate_var;data.mon_payments=mon_payments_var;data.mon_payments_min=mon_payments_min;data.bal_amt=bal_amt_var;data.bal_amt_min=bal_amt_min;data.amt_financed=amt_financed_var;data.amt_financed_min=amt_financed_min;data.tot_payments_min=tot_payments_min;data.tot_payments=tot_payments_var;data.fin_charge=fin_charge_var;data.fin_charge_min=fin_charge_min;data.apr_rate=apr_rate_var;};function myIsNaN(x){return(isNaN(x)||(typeof x=='number'&&!isFinite(x)));};function round(n,nd){if(isFinite(n)&&isFinite(nd)){var sign_n=(n<0)?-1:1;var abs_n=Math.abs(n);var factor=Math.pow(10,nd);return sign_n*Math.round(abs_n*factor)/factor;}else{return NaN;}};function sum2(cap_amt,inrat,caj){var sum=0;for(var ii=inrat;ii<=caj;ii++){sum+=cap_amt[ii]};return sum};function sum3(cap_amt,inrat,tba,caj,beec){var sum=0;for(var ii=inrat;ii<=caj;ii++){for(var ttt=tba;ttt<=beec;ttt++){sum+=cap_amt[ii][ttt]}};return sum};function sumgeneral(cnt,vsum,vcnt,x){var sum=vsum;for(var ii=0;ii<x.length;ii++){sum+=sum3(x[ii][0],x[ii][1],x[ii][2],x[ii][3],x[ii][4]);};return sum;};function eeparseFloat(str){str=String(str).replace(eedecreg,".");var res=parseFloat(str);if(isNaN(res)){return 0;}else{return res;}};function eeparsePercent(str){var parts=String(str).split('%');var tmp=String(parts[0]).replace(eedecreg,".");var res=parseFloat(tmp)/100;if(isNaN(res)){return 0;}else{return res;}};function eedisplayFloat(x){if(myIsNaN(x)){return Number.NaN;}else{return String(x).replace(/\./g,eedec);}};function eedisplayFloatND(x,nd){if(myIsNaN(x)){return Number.NaN;}else{var res=round(x,nd);if(nd>0){var str=String(res);if(str.indexOf('e')!=-1)return str;if(str.indexOf('E')!=-1)return str;var parts=str.split('.');if(parts.length<2){var decimals=('0000000000000').substring(0,nd);return(parts[0]).toString()+eedec+decimals;}else{var decimals=((parts[1]).toString()+'0000000000000').substring(0,nd);return(parts[0]).toString()+eedec+decimals;}}else{return res;}}};function eedisplayPercentND(x,nd){if(myIsNaN(x)){return Number.NaN;}else{return eedisplayFloatND(x*100,nd)+'%';}}function eeparseFloatTh(str){str=String(str).replace(eethreg,"");str=String(str).replace(eedecreg,".");var res=parseFloat(str);if(isNaN(res)){return 0;}else{return res;}};function eedisplayFloatNDTh(x,nd){if(myIsNaN(x)){return Number.NaN;}else{var res=round(x,nd);if(nd>0){var str=String(res);if(str.indexOf('e')!=-1)return str;if(str.indexOf('E')!=-1)return str;var parts=str.split('.');var res2=eeinsertThousand(parts[0].toString());if(parts.length<2){var decimals=('0000000000000').substring(0,nd);return(res2+eedec+decimals);}else{var decimals=((parts[1]).toString()+'0000000000000').substring(0,nd);return(res2+eedec+decimals);}}else{return(eeinsertThousand(res.toString()));}}};function eeinsertThousand(whole){if(whole==""||whole.indexOf("e")>=0){return whole;}else{var neg_si="";if(whole.charAt(0)=="-"){neg_si="-";whole=whole.substring(1);};var res="";var str_length=whole.length-1;for(var ii=0;ii<=str_length;ii++){if(ii>0&&ii%3==0){res=eeth+res;};res=whole.charAt(str_length-ii)+res;};return neg_si+res;}};function fv(rate,nper,pmt,pv,type){if(!isFinite(type)||!isFinite(pv)||!isFinite(pmt)||!isFinite(nper)||!isFinite(rate))return Number.NaN;if(rate==0)return-(pv+nper*pmt);var type1=(type!=0)?1:0;var prin_val_ifa=Math.pow(1+rate,nper);var fvifa=(Math.pow(1+rate,nper)-1)/rate;return(-((pv*prin_val_ifa)+pmt*(1+rate*type1)*fvifa));};function pmt(rate,nper,pv,fv,type){var prin_val_ifa=Math.pow(1+rate,nper);var fvifa=(Math.pow(1+rate,nper)-1)/rate;var type1=(type!=0)?1:0;return((-pv*prin_val_ifa-fv)/((1+rate*type1)*fvifa));};function rate(nper,pmt,pv,fv,type,est_imate){if(!isFinite(est_imate)||!isFinite(type)||!isFinite(fv)||!isFinite(pv)||!isFinite(pmt)||!isFinite(nper))return Number.NaN;var type2=(type)?1:0;var ex_act=0.00000001;var changw=Number.MAX_VALUE;var x,x_x,y,z;if(est_imate==0)x=0.1;else x=est_imate;var com_p_num=100;var com_p=0;while(changw>ex_act&&com_p<com_p_num){if(x==0)x_x=x-(pv+pmt*nper+fv)/(pv*nper+pmt*(nper*(nper-1)+2*type2*nper)/2);else{y=Math.pow(1+x,nper-1);z=y*(1+x);x_x=x*(1-(x*pv*z+pmt*(1+x*type2)*(z-1)+x*fv)/(x*x*nper*pv*y-pmt*(z-1)+x*pmt*(1+x*type2)*nper*y));}com_p++;changw=Math.abs(x_x-x);x=x_x;}if(est_imate==0&&Math.abs(x)<ex_act)x=0;if(changw>=ex_act){return Number.NaN;}else{return x;};};function de_tail(form){recalc_onclick(form);var part1 = ("<head><title>Hard Money Investment Property Analysis</title><link rel='stylesheet' type='text/css' href='../hard_money.css'></head>" + "<body bgcolor = '#FFFFFF'>");var part2 = ("<div align=center class='whitebackground' id='kt'><table width=540 border=0 cellspacing=0 cellpadding=0><tr><td><img src=../media/box_top_left.gif width=11 height=11 border=0></td><td background=../media/top.gif><img src=../media/spacer.gif width='1' height='11' border='0' alt=''></td><td><img src=../media/box_top_right.gif width='11' height='11' border='0' alt=''></td></tr><tr><td align='right' background=../media/left.gif><img src=../media/spacer.gif width='11' height='0' border='0' alt=''></td><td align='center'><center><table border=0 cellspacing=0 cellpadding=0>");var row1 = "<tr><td colspan=5><br><center><div class='kt_header'><font face='arial'><big><b>Hard Money Investment Property Analysis</b></big></font></div></font></center></td></tr>";var row2 = "<tr><td></td><td></td><td>&nbsp;</td><td></td><td></td></tr>";var row3 = "<tr><td><font face='arial'><small>2nd Mortgage Adjustment</small></font></td><td align=right><font face='arial'><small>" + (form.second_mult.value) + "</small></font></td><td> </td><td><font face='arial'><small>Down Payment %</small></font></td><td align=right><font face='arial'><small>" + (form.dp_per_cent.value) + "</small></font></td></tr>";var row4 = "<tr><td><font face='arial'><small>Down Payment Adjustment</small></font></td><td align=right><font face='arial'><small>" + (form.down_mult.value) + "</small></font></td><td> </td><td><font face='arial'><small>Interest Rate Base</small></font></td><td align=right><font face='arial'><small>" + (form.int_base.value) + "</small></font></td></tr>";var row5 = "<tr><td><font face='arial'><small>Loan To Value Adjustment</small></font></td><td align=right><font face='arial'><small>" + (form.ltv_multi.value) + "</small></font></td><td> </td><td><font face='arial'><small>Base Loan To Value</small></font></td><td align=right><font face='arial'><small>" + (form.base_ltv.value) + "</small></font></td></tr>";var row6 = "<tr><td><font face='arial'><small>Interest Rate Adjustment</small></font></td><td align=right><font face='arial'><small>" + (form.int_mult.value) + "</small></font></td><td> </td><td><font face='arial'><small>Months to Pay Off</small></font></td><td align=right><font face='arial'><small>" + (form.pay_off.value) + "</small></font></td></tr>";var row7 = "<tr><td><font face='arial'><small>Borrower Credit Adjustment</small></font></td><td align=right><font face='arial'><small>" + (form.credit_rate.value) + "</small></font></td><td> </td><td><font face='arial'><small>Amortization Period</small></font></td><td align=right><font face='arial'><small>" + (form.amort_per.value) + "</small></font></td></tr>";var row8 = "<tr><td><font face='arial'><small>Existing First Mortgage</small></font></td><td align=right><font face='arial'><small>$" + (form.ex_first.value) + "</small></font></td><td> </td><td><font face='arial'><small>Down Payment</small></font></td><td align=right><font face='arial'><small>$" + (form.down_pay.value) + "</small></font></td></tr>";var row9 = "<tr><td><font face='arial'><small>Invested Principal</small></font></td><td align=right><font face='arial'><small>$" + (form.invprincipal.value) + "</small></font></td><td> </td><td><font face='arial'><small>Actual Interest Rate</small></font></td><td align=right><font face='arial'><small>" + (form.act_int_rate.value) + "</small></font></td></tr>";var row10 = "<tr><td><font face='arial'><small>Loan Charges</small></font></td><td align=right><font face='arial'><small>$" + (form.mtg_char.value) + "</small></font></td><td> </td><td><font face='arial'><small>Annual Percentage Rate</small></font></td><td align=right><font face='arial'><small>" + (form.apr_rate.value) + "</small></font></td></tr>";var spacer1 = "<tr><td height='12' align=right> </td><td> </td><td> </td><td> </td><td align=right></td></tr>";var row11 = "<tr><td><div align='left' class='kt_header5'><font face='arial'><small><b>Property Value</b></small></font></div></td><td><div align='right' class='kt_header5'><font face='arial'><small>$" + (form.fair_val.value) + "</small></font></div></td><td><div class='kt_header5'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td><td><font face='arial'><div align='left' class='kt_header5'><small><b>Property Value</b></small></font></div></td><td><div align='right' class='kt_header5'><font face='arial'><small>$" + (form.fair_val_min.value) + "</small></font></div></td></tr>";var row12 = "<tr><td><font face='arial'><small>Balloon Amount</small></font></td><td align=right><font face='arial'><small>$" + (form.bal_amt.value) + "</small></font></td><td> </td><td><font face='arial'><small>Balloon Amount</small></font></td><td align=right><font face='arial'><small>$" + (form.bal_amt_min.value) + "</small></font></td></tr>";var row13 = "<tr><td><font face='arial'><small>Net Cash to Borrower</small></font></td><td align=right><font face='arial'><small>$" + (form.bor_net.value) + "</small></font></td><td> </td><td><font face='arial'><small>Net Cash to Borrower</small></font></td><td align=right><font face='arial'><small>$" + (form.bor_net_min.value) + "</small></font></td></tr>";var row14 = "<tr><td align=left><font face='arial'><small>Amount Financed</small></font></td><td align=right><font face='arial'><small>$" + (form.amt_financed.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Amount Financed</small></font></td><td align=right><font face='arial'><small>$" + (form.amt_financed_min.value) + "</small></font></td></tr>";var row15 = "<tr><td align=left><font face='arial'><small>New Mortgage</small></font></td><td align=right><font face='arial'><small>$" + (form.new_mtg_amt.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>New Mortgage</small></font></td><td align=right><font face='arial'><small>$" + (form.new_mtg_amt_min.value) + "</small></font></td></tr>";var row16 = "<tr><td align=left><font face='arial'><small>Finance Charge</small></font></td><td align=right><font face='arial'><small>$" + (form.fin_charge.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Finance Charge</small></font></td><td align=right><font face='arial'><small>$" + (form.fin_charge_min.value) + "</small></font></td></tr>";var row17 = "<tr><td align=left><font face='arial'><small>Monthly Payments</small></font></td><td align=right><font face='arial'><small>$" + (form.mon_payments.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Monthly Payments</small></font></td><td align=right><font face='arial'><small>$" + (form.mon_payments_min.value) + "</small></font></td></tr>";var row18 = "<tr><td align=left><font face='arial'><small>Annual Payments</small></font></td><td align=right><font face='arial'><small>$" + (form.annual_pymt.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Annual Payments</small></font></td><td align=right><font face='arial'><small>$" + (form.annual_pymt_min.value) + "</small></font></td></tr>";var row19 = "<tr><td align=left><font face='arial'><small>Total of Payments</small></font></td><td align=right><font face='arial'><small>$" + (form.tot_payments.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Total of Payments</small></font></td><td align=right><font face='arial'><small>$" + (form.tot_payments_min.value) + "</small></font></td></tr>";var row20 = "<tr><td align=left><font face='arial'><small>Investment Costs</small></font></td><td align=right><font face='arial'><small>$" + (form.inv_cost.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Investment Costs</small></font></td><td align=right><font face='arial'><small>$" + (form.inv_cost_min.value) + "</small></font></td></tr>";var row21 = "<tr><td align=left><font face='arial'><small>Price Per Sq. Ft.</small></font></td><td align=right><font face='arial'><small>$" + (form.p_sq_ft.value) + "</small></font></td><td> </td><td align=left><font face='arial'><small>Price Per Sq. Ft.</small></font></td><td align=right><font face='arial'><small>$" + (form.p_sq_ft_min.value) + "</small></font></td></tr>";var row22 = "<tr><td></td><td></td><td>&nbsp;&nbsp;&nbsp;</td><td></td><td></td></tr>";var summary = "<tr><td colspan=5><div align='center' class='kt_header5'><font face='arial'><small><small>Please allow for slight rounding differences.</small></small></font></div></td></tr>";var part4 = ("</table><br><center><form method='post'><input type=\'button\' value=\'Close\' onclick=\'window.close()\'></form></center></td><td background=../media/right.gif><img src=../media/spacer.gif width=1 height=1 border=0 alt=''></td></tr><tr><td><img src=../media/box_bottom_left.gif width=11 height=11 border=0 alt=''></td><td background=../media/bottom.gif><img src=../media/spacer.gif width=1 height=11 border=0 alt=''></td><td><img src=../media/box_bottom_right.gif width=11 height=11 border=0 alt=''></td></tr></table></div></body></html>");var schedule = (part1 + "" + part2 + "" + row1 + "" + row2 + "" + row3 + "" + row4 + "" + row5 + "" + row6 + "" + row7 + "" + row8 + "" + row9 + "" + row10 + "" + spacer1 + "" + row11 + "" + row12 + "" + row13 + "" + row14 + "" + row15 + "" + row16 + "" + row17 + "" + row18 + "" + row19 + "" + row20 + "" + row21 + "" + row22 + "" + summary + "" + part4 + "");reportWin = window.open("","","width=600,height=540,toolbar=no,menubar=yes,scrollbars=yes");reportWin.document.write(schedule);reportWin.document.close();}function reCalculateKt(changedObj) {ktArray = new Array();refreshVariables();displayValues();}function displayValues(){for (var fieldId in ktArray["summary"]) {var fieldObj = document.getElementById(fieldId);}}var helpTexts = new Array();helpTexts["fm_val"] = "The property value is the fair market value price at which the property would change hands between a willing buyer and a willing seller, neither being under any compulsion to buy or to sell and both having reasonable knowledge of relevant facts.";helpTexts["ex_mtg"] = "Do not include mortgages that will be paid off with this new loan. Learn how to use this calculator by starting with a 0 existing first mortgage (you are then loaning a first mortgage), keep the minimum base LTV at 60%, borrower credit adjustment at 0 and the loan to value adjustment as they are set. Then see the effect of having a first mortgage balance and of changing the credit rating of the borrower. Then try different adjustments and see the effect they have.";helpTexts["d_p"] = "Cash buyer will be putting down. The main purpose of a down payment is to ensure that the lender can recover the balance due on the loan in the event that the borrower defaults. By requiring a down payment in advance, the lender greatly increases the chance that any such future sale would be able to cover the full amount of the loan, because such a sale only requires the lender to recover the difference between the original selling price and the amount of the down payment.";helpTexts["am_per"] = "How many months to amortize the loan (enter 2,000 for interest only)";helpTexts["mtg_mon"] = "This is the number of months you are financing the property for.";helpTexts["min_ltv"] = "We allow a safe LTV for terrible credit of 60%. You can increase or reduce this as you wish. Want to be more or less conservative about the LTV, perhaps this is commercial or vacant land? Just change the number. We increase the safe LTV by adding on the 0 to 10 credit rating. You can increase or reduce that if you wish. For example: If the borrower has a credit rating of 5 we increase the maximum LTV allowed from 60 to 65%. Want to be more or less conservative about the effect of the credit rating on the LTV? Just change the adjustment from 1. Example: If you set this adjustment at 1.5 then in the above secario you would allow an LTV of 60 + 7.5 = 67.5%. If you set this adjustment at 0.5 then in the above scenario you would allow an LTV of 60 + 2.5 = 62.5%.";helpTexts["point_s"] = "Discount points are paid up front in order to reduce the interest rate of your mortgage. Origination points are what a lending institution charges for processing and originating a loan. Each point represents 1% of your mortgage balance.";helpTexts["app_rais"] = " Charges payable to a qualified appraiser for estimating the market value of a property, as a fixed fee or one based on a percentage of the estimated value.";helpTexts["sur_vey"] = "Most lenders require a survey. The survey determines that there are no encroachments within the property lines and shows where the house is located on the property. The survey can also determine whether the location is under the threat of any natural calamity. Depending on the size of the property and state, the fees can vary from $225 to $400.";helpTexts["mi_sc"] = "Miscellaneous fees such as document preperation, pest inspection, notary, attorney, credit report, etc.";helpTexts["cred_rat"] = "You can increase the minimum LTV by adding on the 0 to 10 borrow credit rating. For example: If the borrower has a credit rating of 5 we increase the maximum LTV allowed from 60 to 65%. Want to be more or less conservative about the effect of the credit rating on the LTV? Just change the adjustment from 1 to 1.5.";helpTexts["sec_mult"] = "Sophisticated investors may want to change the 2nd mortgage adjustment, but it is perfectly fine to leave alone. To calculate the total mortgage you would give on this property then you need to subtract the amount of the first mortgage. Being a little more conservative, you can multiply the first mortgage amount by 1.3 to provide a safety zone if you have to make the first mortgages payments whle foreclosing the mortgage. Want to be more conservative about writing behind a first mortgage? Then increase the adjustment to 1.5. Want to be less conservative, then reduce the adjustment to 1.0.";helpTexts["rate_mult"] = "You can reduce the base interest rate from 15% by an adjustment of the credit rating. You can change the base interest rate and this adjustment. For this example: if the borrower has perfect credit (10) then we reduce the interest rate from 15% to 10%. If however you change the interest rate adjustment to 10 then under the same circumstances the interest rate would only go down from 15% to 14%. Likewise, if you change the interest rate adjustment to 1, then, under the same circumstances the interest rate would go down from 15% to 5%. The interest rate will also go down if the down payment goes up due to the reduced risk to the lender. The interest rate and down payment adjustment will control the effect of this. Second mortgages should have a higher interest rates than first mortgages.";helpTexts["ltv_mult"] = "Loan to value adjustment for good credit rating (0 for more conservative up to 2 for riskier).";helpTexts["dp_mult"] = "You can increase the LTV based on the percentage cash down payment made by the borrower. Someone who has put down, say 20% cash, is much less likely to walk away from the loan than someone with no cash invested. So if you would loan 65% with zero cash down, we think you should lend 75% with 10% cash down, other things being equal. Never loan more than the value of the property.";helpTexts["rate_base"] = "Nominal base interest rate for terrible credit. Set from 8 to 20% (be aware of usury laws)";helpTexts["tot_sq_ft"] = "The property's total square feet is the property's living space and not garages, patios, sheds, etc.";helpTexts["act_rate"] = "Actual interest rate that you will ask for as a lender.";helpTexts["a_p_r"] = "Annual percentage rate (APR). This rate is always higher than your note rate. (In fact, the only way to have this rate the same as your note rate would be to pay all your associated loan costs in cash.) The APR simply represents the cost of the loan, including all costs financed into the loan. This rate is not the rate that your payments are based on.";helpTexts["dp_per"] = "Down Payment Percent is equal to the purchase price minus the down payment divided by 100.";helpTexts["inv_principal"] = "The invested principal equals the down payment and loan charges.";helpTexts["tit_fee"] = "Title insurance and escrow fees vary slightly from one company to another.";helpTexts["point_amt"] = "The cost of buying is total principal, interest, closing cost, property taxes, homeowners insurance, mortgage insurance, association fees, maintenance fees and expenses minus the home buyer tax credit, appreciation and propety tax benefits over the number of years specified.";helpTexts["rec_fee"] = "Mortgage and deed filing fees vary slightly from one company to another.";helpTexts["mtg_char"] = "These are the loan expenses. Points, title, recording, survey, appraisal and miscellaneous fees.";helpTexts["bal_loon"] = "Balloon mortgage amount (if any).";helpTexts["net_cash"] = "Net cash loan to the borrower.";helpTexts["amt_fin"] = "Borrower's loan amount financed.";helpTexts["fin_char"] = "Combined finance charges for the loan.";helpTexts["new_mtg"] = "New mortgage that would be safe to give, the money you should loan.";helpTexts["mon_pmt"] = "Monthly payment amount for the loan.";helpTexts["annual_mort"] = "The annual payments are equal to the monthly principal and interest payments times twelve.";helpTexts["tot_pmts"] = "Total combined payments for the loan.";helpTexts["pr_sq_ft"] = "The price per square foot of the property. This amount is determined by dividing the investment cost by the total square feet.";var ktArray = new Array();function kt_init() {var kt = document.getElementById("kt");if (kt) {var inputs=kt.getElementsByTagName("input"), selects=kt.getElementsByTagName("select"), el, int=0;while (el = inputs[int++]) {el.onchange = function () {reCalculateKt(this);}}int = 0;while (el = selects[int++]) {el.onchange = function () {reCalculateKt(this);}}}refreshVariables();reCalculateKt();applyHelpPopups();}function refreshVariables() {var kt = document.getElementById("kt");if (kt) {var inputs=kt.getElementsByTagName("input"), selects=kt.getElementsByTagName("select"), el, int=0;ktArray["vars"] = new Array();while (el = inputs[int++]) {if (el.id) {ktArray["vars"][el.id] = $(el.id, el.getAttribute("valuetype"));if (el.getAttribute("valuetype")!="raw") {el.value = numberFormat(ktArray["vars"][el.id], el.getAttribute("valuetype"), el.getAttribute("valueformat"));}}}int = 0;while (el = selects[int++]) {if (el.id) ktArray["vars"][el.id] = $(el.id, el.getAttribute("valuetype"));}}}function numberFormat(value, valuetype, valueformat) {if (value || value==0) {var formatparts = new Array();if (valueformat) formatparts = valueformat.split(".");var decimals = formatparts[1] ? formatparts[1] : 2;switch(valuetype) {case "money":if (value===0) {value = "";for (iii=0; iii<decimals; iii++) {if (!value) value += ".";value += "0";}value = "$0"+value;} else {value = value.toFixed(decimals);value = addCommas(value);value = "$"+value;}break;case "percent":value = value.toFixed(decimals)+"%";break;case "number":if (value===0) {value = "";for (iii=0; iii<decimals; iii++) {if (!value) value += ".";value += "0";}value = "0"+value;} else {value = value.toFixed(decimals);value = value;}break;}} else {value = "";}return value;}function $(id, type) {if (!type) type = "number";var returnVar = document.getElementById(id).value;if (type!="raw") {returnVar = returnVar.replace("$", "");returnVar = returnVar.replace("%", "");returnVar = returnVar.replace(/,/g, "");}if (type!="date" && type!="raw") returnVar = parseFloat(returnVar);return returnVar;}function addCommas(nStr){nStr += '';z = nStr.split('.');x1 = z[0];x2 = z.length > 1 ? '.' + z[1] : '';var rgx = /(\d+)(\d{3})/;while (rgx.test(x1)) {x1 = x1.replace(rgx, '$1' + ',' + '$2');}return x1 + x2;}function applyHelpPopups() {if (!helpTexts) return 0;for (var fieldId in helpTexts) {var fieldObj = document.getElementById(fieldId);fieldObj.onmouseover = function () {hideHelp();};if (!fieldObj) continue;if (fieldId.indexOf("help_")==0) {var prevSibling = fieldObj;} else {if (fieldObj.tagName=="INPUT" || fieldObj.tagName=="SELECT") {var fieldParent = fieldObj.parentNode;} else {var fieldParent = fieldObj;}if (!fieldParent) continue;var prevSibling = fieldParent.previousSibling;if (!prevSibling) continue;if (prevSibling.tagName!="DIV") prevSibling = prevSibling.previousSibling;if (!prevSibling) continue;}prevSibling.style.position = "relative";if (fieldId.indexOf("help_")==0) {var reddot = document.createElement("img");reddot.src="../media/question_icon.gif";reddot.className = "kt_reddot_img";} else {var reddot = document.createElement("div");reddot.className = "kt_reddot";}prevSibling.appendChild(reddot);prevSibling.setAttribute("help_id", fieldId);prevSibling.onclick = function () {showHelp(this, this.getAttribute("help_id"));};prevSibling.onmouseout = function () {setTimeout("hideHelp('"+this.getAttribute('help_id')+"')", 500);}}return 1;}var overHelp = 0;function showHelp(fieldObj, help_id) {if (!fieldObj || !help_id || !helpTexts[help_id]) return 0;var help_box = document.getElementById("help_box");if (!help_box) {help_box = document.createElement("div");help_box.id = "help_box";help_box.className = "help_box";help_box.onmouseover = function () {overHelp = 1;};help_box.onmouseout = function () {overHelp = 0;};document.body.appendChild(help_box);help_box = document.getElementById("help_box");}var field_top = findPosY(fieldObj);var field_left = findPosX(fieldObj);help_box.innerHTML = helpTexts[help_id];help_box.style.top = (field_top+10)+"px";help_box.style.left = (field_left+0)+"px";help_box.style.display = "block";help_box.setAttribute("help_id", help_id);}function hideHelp(help_id) {if (overHelp) return 1;var help_box = document.getElementById("help_box");if (help_box) {if (help_id && help_box.getAttribute("help_id")!=help_id) return 0;help_box.style.display = "none";}return 1;}function findPosX(obj) {var curleft = 0;if (obj.offsetParent) {while (obj.offsetParent) {curleft += obj.offsetLeft;obj = obj.offsetParent;}} else if (obj.z) curleft += obj.z;return curleft;}function findPosY(obj) {var curtop = 0;if (obj.offsetParent) {while (obj.offsetParent) {curtop += obj.offsetTop;obj = obj.offsetParent;}} else if (obj.x) curtop += obj.x;return curtop;}
