<!-- Dit script is het intellectuele eigendom van DenK Internet Services te Tiel, dé internetspecialist voor het financiële intermediair. -->
<!-- Het is derden niet toegestaan dit script of gedeelten daarvan te koppelen, kopieëren of op welke wijze dan ook te gebruiken zonder uitdrukkelijke schriftelijke toestemming van DenK Internet Services. -->
<!-- mail: info@denk.biz | website: www.denk.biz -->

var hypmax = new Object; function Calculator()
   {
var valid = "0123456789.,";
var ok = "yes";
var temp;
for (var i=0; i<theForm.inkomen1.value.length; i++) {
temp = "" + theForm.inkomen1.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
   }
if (ok == "no")
   {
alert("U kunt hier uitsluitend cijfers invullen!");
  theForm.inkomen1.focus();
  theForm.inkomen1.select();
   return false;
  }
theForm.inkomen1.value = parseFloat(theForm.inkomen1.value.replace(",","."));
var valid = "0123456789.,";
var ok = "yes";
var temp;
for (var i=0; i<theForm.inkomen2.value.length; i++) {
temp = "" + theForm.inkomen2.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
   }
if (ok == "no")
   {
alert("U kunt hier uitsluitend cijfers invullen!)");
  theForm.inkomen2.focus();
  theForm.inkomen2.select();
   return false;
  }
theForm.inkomen2.value = parseFloat(theForm.inkomen2.value.replace(",","."));
var valid = "0123456789.,";
var ok = "yes";
var temp;
for (var i=0; i<theForm.rente.value.length; i++) {
temp = "" + theForm.rente.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
   }
if (ok == "no")
   {
alert("U kunt hier uitsluitend cijfers invullen!");
  theForm.rente.focus();
  theForm.rente.select();
   return false;
  }
theForm.rente.value = parseFloat(theForm.rente.value.replace(",","."));
var a = eval(theForm.rente.value);
var x = 0.071946;
var y= Math.pow((1+a/1200), 360);
   x=(y*(a/1200)*12)/(y-1);
   var i1 = eval(theForm.inkomen1.value);
   var i2 = eval(theForm.inkomen2.value);
   var itot = i1 + i2 ;
if(itot<52185) {
      if(itot<45378) { 
         if(itot<39933) {
            if(itot<36756) {
               if(itot<35395) {
                  if(itot<33580) {
                     if(itot<31311) {
                        if(itot<27227) {
                           if(itot<17697) {
                              if(itot<17244) {
                                 if(itot<16366) {
                                    if(itot<15882) {
                                       if(itot<15429) {
                                          if(itot<14975) {
                                             if(itot<14521) {
                                                if(itot<14067) {
                                                   if(itot<13613) {
                                                      if(itot<12706) {
                                                         theForm.totaal.value=("niet mogelijk")
                                                      }
                                                      else {
                                                         
theForm.totaal.value=(Math.round(eval((itot)*0.215*(1/x)))) 
                                                      }
                                                   }
                                                   else {
                                                      theForm.totaal.value=(Math.round(eval((itot)*0.244*(1/x)))) 
                                                   }
                                                }
                                                else {
                                                   theForm.totaal.value=(Math.round(eval((itot)*0.256*(1/x)))) 
                                                }
                                             } 
                                             else {
                                                theForm.totaal.value=(Math.round(eval((itot)*0.265*(1/x)))) 
                                             }
                                          } 
                                          else {
                                             theForm.totaal.value=(Math.round(eval((itot)*0.276*(1/x)))) 
                                          }
                                       } 
                                       else {
                                          theForm.totaal.value=(Math.round(eval((itot)*0.284*(1/x)))) 
                                       }
                                    } 
                                    else {
                                       theForm.totaal.value=(Math.round(eval((itot)*0.285*(1/x)))) 
                                    }
                                 } 
                                 else {
                                    theForm.totaal.value=(Math.round(eval((itot)*0.288*(1/x)))) 
                                 }
                              } 
                              else {
                                 theForm.totaal.value=(Math.round(eval((itot)*0.289*(1/x)))) 
                              }
                           } 
                           else {
                              theForm.totaal.value=(Math.round(eval((itot)*0.296*(1/x)))) 
                           }
                        } 
                        else {
                           theForm.totaal.value=(Math.round(eval((itot)*0.299*(1/x)))) 
                        }
                     } 
                     else {
                        theForm.totaal.value=(Math.round(eval((itot)*0.304*(1/x)))) 
                     }
                  } 
                  else {
                     theForm.totaal.value=(Math.round(eval((itot)*0.314*(1/x)))) 
                  }
               } 
               else {
                  theForm.totaal.value=(Math.round(eval((itot)*0.324*(1/x)))) 
               }
            } 
            else {
               theForm.totaal.value=(Math.round(eval((itot)*0.346*(1/x)))) 
            }
         } 
         else {
            theForm.totaal.value=(Math.round(eval((itot)*0.35*(1/x)))) 
         }
      } 
      else {
         theForm.totaal.value=(Math.round(eval((itot)*0.36*(1/x)))) 
      }
   } 
   else {
      theForm.totaal.value=(Math.round(eval((itot)*0.37*(1/x)))) 
   }
}