isFinite() method in JavaScript

function checkNum(){
        var n = document.form1.text1.value;
        if(isFinite(n) == true){
           alert("Your entry had finite bounds");
        }else{
           alert("Your entry had no finite bounds");
        }
    }