月々の支払額から借入額を調べる

Loan simulation

月々の支払額

ボーナス支払い額

返済年数

返済年数

※目安の金利です。ご自由に書き換え可能です。

万円

計算機計算結果 借入金額

※試算結果はおおよその目安であり、確定した金額をお約束するものではございません。 あらかじめご了承ください。

"; w.document.write(html_str); } */ // function m_risoku_calc(zandaka,loan){ zandaka = 100 * Math.floor(zandaka / 100); m_risoku = Math.floor(zandaka * (loan.kinri.value) / 100 / 12); return(m_risoku); } // function b_risoku_calc(zandaka,loan){ zandaka = 100 * Math.floor(zandaka / 100); b_risoku = Math.floor(zandaka * (loan.kinri.value) / 100 / 2); return(b_risoku); } // function com_num_chk(n) { for(i = 0; i < n.length; i++){ t = n.substring(i,i+1); if (t == "0" || t == "1" || t == "2" || t == "3" || t == "4" || t == "5" || t == "6" || t == "7" || t == "8" || t == "9" || t == "-" || t == "."){ continue; } else{ return false; } } return true; } // function k_hensyu(n) { cnt = 0; ans = ""; len = n.length; for(i = 0; i < n.length; i++){ t = n.substring(i,i+1); ans = ans + t; cnt = cnt + 1; if(n.length - cnt == 9 || n.length - cnt == 6 || n.length - cnt == 3){ ans = ans + ","; } } return(ans); } // function kounyu_chk(loan) { wk = eval(loan.kounyu.value); if (wk == ""){ alert("ケリニカ箋ロ、ャニホマ、オ、・ニ、、、゙、サ、」"); loan.kounyu.focus(); return false; } if (!com_num_chk(wk)){ alert ("ケリニカ箋ロ、マネセウムソ妤ヌニホマ、キ、ニ、ッ、タ、オ、、。」"); loan.kounyu.focus(); return false; } /*if(wk < 10 || wk > 1){ alert ("ケリニカ箋ロ、マ」ア」ーヒ・゚。チ」オ」ー」ー」ーヒ・゚、ホエヨ、ヌニホマ、キ、ニイシ、オ、、。」"); loan.kounyu.focus(); return false; }*/ return true; } // function b_kari_chk(loan) { wk_n = loan.kounyu.value; wk_b = loan.bkari.value; wk_k = loan.kikan.value; // add if (wk_b == ""){ loan.bkari.value = "0"; return true; } if (!com_num_chk(wk_b)){ alert ("・ワ。シ・ハ・ケハヨコムウロ、マネセウムソ妤ヌニホマ、キ、ニ、ッ、タ、オ、、。」"); loan.bkari.focus(); return false; } //if((wk_b * 2) > wk_n){ if(((wk_b * wk_k * 2) * 2) > wk_n){ // add alert ("・ワ。シ・ハ・ケハヨコムケ邱ラウロ、ャ、ェシレニウロ、ホネセハャーハイシ、ヒ、ハ、・隍ヲ。「・ワ。シ・ハ・ケハヨコムウロ、エターイシ、オ、、。」"); loan.bkari.focus(); return false; } return true; } // function kikan_chk(loan) { wk = loan.kikan.value; if (wk == ""){ alert("ハヨコムエ・ヨ、ャニホマ、オ、・ニ、、、゙、サ、」"); loan.kikan.focus(); return false; } if (!com_num_chk(wk)){ alert ("ハヨコムエ・ヨ、マネセウムソ妤ヌニホマ、キ、ニ、ッ、タ、オ、、。」"); loan.kikan.focus(); return false; } if(wk < 1 || wk > 35){ alert ("ハヨコムエ・ヨ、マ」ア。チ」ウ」オヌッ、ホエヨ、ヌニホマ、キ、ニイシ、オ、、。」"); loan.kikan.focus(); return false; } return true; } // function kinri_chk(loan) { wk = loan.kinri.value; if (wk == ""){ alert("カ簣ャニホマ、オ、・ニ、、、゙、サ、」"); loan.kinri.focus(); return false; } if (!com_num_chk(wk)){ alert ("カ簣マネセウムソ妤ヌニホマ、キ、ニ、ッ、タ、オ、、。」"); loan.kinri.focus(); return false; } //if(wk < 0.001 || wk > 99.999){} if(wk > 99.999){ // alert ("カ簣マ0.001。チ99.999%、ホエヨ、ヌニホマ、キ、ニイシ、オ、、。」"); alert ("カ簣マ99.999%ーハイシ、ヌニホマ、キ、ニイシ、オ、、。」"); loan.kinri.focus(); return false; } return true; } // function jiko_chk(loan) { if (loan.jiko.value == ""){ loan.jiko.value = "0"; return; } if (!com_num_chk(loan.jiko.value)){ alert ("シォクハサ筅マネセウムソ妤ヌニホマ、キ、ニ、ッ、タ、オ、、。」"); loan.jiko.focus(); return false; } } // function br_chk(m){ e_lit = ""; ee_lit = ""; msg = ""; e_msg = ""; ee_msg = ""; flg = "off"; if(navigator.appName == "Netscape" && navigator.appVersion.substring(0,3) == "3.0"){ for(i=0; i