function checkvalues5(){var int_pattern = /^[0-9]+$/i;if(document.smcalc.amount.value.length==0){alert("Please enter an amount to calculate your monthly mortgage payment.");return false;}if(!int_pattern.test(document.smcalc.zipcode.value)){alert("Amount must be a number.");return false;}if(document.smcalc.zipcode.value.length==0){alert("Please enter your zip code to calculate your monthly mortgage payment.");return false;}else{return true;}}document.write("
");document.write("Mortgage Payment");document.write("");document.write("
Calculate your monthly mortgage payment
Loan Amount
");document.write("
Rate
");document.write("");document.write("
Zip Code
");document.write("
");document.write("
Add this tool to your website
");