function checkcalcpaymentvalues(){if(document.calcpayment.amount.value.length==0){alert("Please enter a loan amount");return false;}else if(isNaN(document.calcpayment.amount.value.replace(",",''))==true){alert("Please enter a numeric loan amount.");return false;}else if(document.calcpayment.yrrate.value.length==0){alert("Please enter an interest rate");return false;}else if(isNaN(document.calcpayment.yrrate.value.replace(",",''))==true){alert("Please enter a numeric interest rate");return false;}else if(document.calcpayment.yrs.value.length==0){alert("Please enter a term in years");return false;}else if(isNaN(document.calcpayment.yrs.value.replace(",",''))==true){alert("Please enter a numeric term in years");return false;}else if(document.calcpayment.propertyvalue.value.length==0){alert("Please enter a property value");return false;}else if(isNaN(document.calcpayment.propertyvalue.value.replace(',',''))==true){alert("Please enter a numeric property value.");return false;}else{return true;}}document.write("
");